예제 #1
0
 def __init__(self, filename, filelistsname, baseurl):
     Loader.__init__(self)
     self._filename = filename
     self._filelistsname = filelistsname
     self._baseurl = baseurl
     self._fileprovides = {}
     self._pkgids = {}
예제 #2
0
 def __init__(self, filename, filelistsname, baseurl):
     Loader.__init__(self)
     self._filename = filename
     self._filelistsname = filelistsname
     self._baseurl = baseurl
     self._fileprovides = {}
     self._pkgids = {}
예제 #3
0
 def __init__(self, filename, baseurl, listfile, infofile=None):
     Loader.__init__(self)
     self._filename = filename
     self._baseurl = baseurl
     self._prefix = {}
     self._infofile = infofile
     self._flagdict = None
예제 #4
0
 def __init__(self, filename, baseurl, listfile, infofile=None):
     Loader.__init__(self)
     self._filename = filename
     self._baseurl = baseurl
     self._prefix = {}
     self._infofile = infofile
     self._flagdict = None
예제 #5
0
 def __init__(self, filename, baseurl, listfile):
     Loader.__init__(self)
     self._filename = filename
     self._baseurl = baseurl
     self._prefix = {}
     if listfile:
         for entry in open(listfile):
             if entry[:2] == "./":
                 entry = entry[2:]
             dirname, basename = os.path.split(entry.rstrip())
             self._prefix[basename] = dirname
예제 #6
0
 def buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs):
     pkg = Loader.buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs)
     name = pkgargs[1]
     if hasattr(self, '_flagdict') and self._flagdict and name in self._flagdict:
         if not sysconf.getReadOnly():
             pkgconf.setFlag(self._flagdict[name], name, "=", pkgargs[2])
     return pkg
예제 #7
0
 def buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs, recargs):
     pkg = Loader.buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs, recargs)
     name = pkgargs[1]
     if hasattr(self, '_flagdict') and self._flagdict and name in self._flagdict:
         if sysconf.getReadOnly():
             pkgconf.setFlag(self._flagdict[name], name, "=", pkgargs[2])
     return pkg
예제 #8
0
 def __init__(self, baseurl=None):
     Loader.__init__(self)
     self._md5sums = {}
     self._baseurl = baseurl
예제 #9
0
 def __init__(self, filename, baseurl, filelistname):
     Loader.__init__(self)
     self._filename = filename
     self._baseurl = baseurl
     self._filelistname = filelistname
예제 #10
0
 def reset(self):
     Loader.reset(self)
     self._fileprovides.clear()
예제 #11
0
 def __init__(self):
     Loader.__init__(self)
예제 #12
0
 def __init__(self, baseurl=None):
     Loader.__init__(self)
     self._baseurl = baseurl
예제 #13
0
 def __init__(self, baseurl=None):
     Loader.__init__(self)
     self._baseurl = baseurl
     self._sections = {}
예제 #14
0
 def fetch(self, fetcher, progress):
     self._loaders.append(Loader())
예제 #15
0
 def reset(self):
     Loader.reset(self)
     self._fileprovides.clear()
     self._parsedflist = False
     self._pkgids.clear()
예제 #16
0
 def reset(self):
     Loader.reset(self)
     self._fileprovides.clear()
예제 #17
0
 def __init__(self, baseurl=None):
     Loader.__init__(self)
     self._baseurl = baseurl
예제 #18
0
 def reset(self):
     Loader.reset(self)
     self._offsets.clear()
     self._groups.clear()
예제 #19
0
 def __init__(self):
     Loader.__init__(self)
     self._infoorder = 0
     self._offsets = {}
     self._groups = {}
예제 #20
0
 def __init__(self, baseurl=None):
     Loader.__init__(self)
     self._baseurl = baseurl
     self._sections = {}
예제 #21
0
 def reset(self):
     Loader.reset(self)
예제 #22
0
 def __init__(self, filename, baseurl, filelistname):
     Loader.__init__(self)
     self._filename = filename
     self._baseurl = baseurl
     self._filelistname = filelistname
예제 #23
0
 def reset(self):
     Loader.reset(self)
예제 #24
0
 def __init__(self):
     Loader.__init__(self)
     self._infoorder = 0
     self._offsets = {}
     self._groups = {}
예제 #25
0
 def __init__(self, baseurl, datadir, pkginfofile, pkgdescfile=None):
     Loader.__init__(self)
     self._baseurl = baseurl
     self._datadir = datadir
     self._pkginfofile = pkginfofile
     self._pkgdescfile = pkgdescfile
예제 #26
0
 def reset(self):
     Loader.reset(self)
     self._offsets.clear()
     self._groups.clear()