Lines 400-406
Link Here
|
400 |
|
400 |
|
401 |
def set_cleanables(self): |
401 |
def set_cleanables(self): |
402 |
self.settings["cleanables"]=["/etc/resolv.conf","/var/tmp/*","/tmp/*",\ |
402 |
self.settings["cleanables"]=["/etc/resolv.conf","/var/tmp/*","/tmp/*",\ |
403 |
"/root/*","/usr/portage"] |
403 |
"/root/*","/usr/portage","/etc/portage/make.conf.catalyst"] |
404 |
|
404 |
|
405 |
def set_snapshot_path(self): |
405 |
def set_snapshot_path(self): |
406 |
self.settings["snapshot_path"]=normpath(self.settings["storedir"]+\ |
406 |
self.settings["snapshot_path"]=normpath(self.settings["storedir"]+\ |
Lines 1083-1091
Link Here
|
1083 |
if os.path.exists(self.settings["chroot_path"]+"/usr/local/portage"): |
1083 |
if os.path.exists(self.settings["chroot_path"]+"/usr/local/portage"): |
1084 |
cmd("rm -rf "+self.settings["chroot_path"]+"/usr/local/portage",\ |
1084 |
cmd("rm -rf "+self.settings["chroot_path"]+"/usr/local/portage",\ |
1085 |
"Could not remove /usr/local/portage",env=self.env) |
1085 |
"Could not remove /usr/local/portage",env=self.env) |
1086 |
cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\ |
1086 |
if os.path.exists(self.settings["chroot_path"]+"/etc/portage/make.conf"): |
1087 |
"/etc/portage/make.conf",\ |
1087 |
if os.path.exists("/usr/bin/gsed"): |
1088 |
"Could not remove PORTDIR_OVERLAY from make.conf",env=self.env) |
1088 |
cmd("gsed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\ |
|
|
1089 |
"/etc/portage/make.conf",\ |
1090 |
"Could not remove PORTDIR_OVERLAY from make.conf",env=self.env) |
1091 |
else: |
1092 |
cmd("sed -i '/^PORTDIR_OVERLAY/d' "+self.settings["chroot_path"]+\ |
1093 |
"/etc/portage/make.conf",\ |
1094 |
"Could not remove PORTDIR_OVERLAY from make.conf",env=self.env) |
1089 |
|
1095 |
|
1090 |
""" Clean up old and obsoleted files in /etc """ |
1096 |
""" Clean up old and obsoleted files in /etc """ |
1091 |
if os.path.exists(self.settings["stage_path"]+"/etc"): |
1097 |
if os.path.exists(self.settings["stage_path"]+"/etc"): |