OPERATIONS = ["merge", "unmerge"]
DEFAULT_SETS = ["world", "system", "everything", "security"] \
+["package_"+x for x in ["mask", "unmask", "use", "keywords"]]
+del x
class PackageSet(object):
# Set this to operations that are supported by your subclass. While
for myname in mysets:
if myname in DEFAULT_SETS:
continue
- rValue.add(StaticFileSet(fname, os.path.join(mydir, myname)))
+ rValue.add(StaticFileSet(myname, os.path.join(mydir, myname)))
return rValue
def make_category_sets(portdbapi, settings, only_visible=True):
for s in sys.argv[1:]:
if s.startswith("category_"):
c = s[9:]
- l.add(CategorySet("category_%s" % c, c, portdbapi, only_visible=only_visible))
+ l.add(CategorySet("category_%s" % c, c, portage.db['/']['porttree'].dbapi, only_visible=False))
elif os.path.exists(s):
l.add(StaticFileSet(os.path.basename(s), s))
elif s != "*":
if mydat[-8:]!="XPAKSTOP":
return None
indexsize=decodeint(mydat[8:12])
- datasize=decodeint(mydat[12:16])
return (mydat[16:indexsize+16], mydat[indexsize+16:-8])
def getindex(infile):
return self.unpackinfo(datadir)
def compose(self,datadir,cleanup=0):
"""Alias for recompose()."""
- return recompose(datadir,cleanup)
+ return self.recompose(datadir,cleanup)
def recompose(self,datadir,cleanup=0):
"""Creates an xpak segment from the datadir provided, truncates the tbz2
to the end of regular data if an xpak segment already exists, and adds