Lines 7877-7882
Link Here
|
7877 |
noiselevel=-1) |
7877 |
noiselevel=-1) |
7878 |
return 1 |
7878 |
return 1 |
7879 |
|
7879 |
|
|
|
7880 |
inforoot_slot_file = os.path.join(inforoot, "SLOT") |
7881 |
try: |
7882 |
f = open(inforoot_slot_file) |
7883 |
try: |
7884 |
slot = f.read().strip() |
7885 |
finally: |
7886 |
f.close() |
7887 |
except OSError, e: |
7888 |
writemsg("!!! Error reading '%s': %s\n" % (inforoot_slot_file, e), |
7889 |
noiselevel=-1) |
7890 |
return 1 |
7891 |
|
7892 |
if slot != self.settings["SLOT"]: |
7893 |
writemsg("!!! WARNING: Expected SLOT='%s', got '%s'\n" % \ |
7894 |
(self.settings["SLOT"], slot)) |
7895 |
|
7880 |
if not os.path.exists(self.dbcatdir): |
7896 |
if not os.path.exists(self.dbcatdir): |
7881 |
os.makedirs(self.dbcatdir) |
7897 |
os.makedirs(self.dbcatdir) |
7882 |
|
7898 |
|
Lines 7885-7891
Link Here
|
7885 |
otherversions.append(v.split("/")[1]) |
7901 |
otherversions.append(v.split("/")[1]) |
7886 |
|
7902 |
|
7887 |
slot_matches = self.vartree.dbapi.match( |
7903 |
slot_matches = self.vartree.dbapi.match( |
7888 |
"%s:%s" % (self.mysplit[0], self.settings["SLOT"])) |
7904 |
"%s:%s" % (self.mysplit[0], slot)) |
7889 |
if self.mycpv not in slot_matches and \ |
7905 |
if self.mycpv not in slot_matches and \ |
7890 |
self.vartree.dbapi.cpv_exists(self.mycpv): |
7906 |
self.vartree.dbapi.cpv_exists(self.mycpv): |
7891 |
# handle multislot or unapplied slotmove |
7907 |
# handle multislot or unapplied slotmove |