commit: 04f01e9c5211fd5eab96dfe03d0494e0cdc9806f
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 8 15:47:29 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 8 15:47:29 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=04f01e9c
grs/Populate.py: remove the clean build directive.
grs/Interpret.py | 5 -----
grs/Populate.py | 21 ---------------------
2 files changed, 26 deletions(-)
diff --git a/grs/Interpret.py b/grs/Interpret.py
index b813766..bea0bf2 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -185,11 +185,6 @@ class Interpret(Daemon):
stampit(progress)
continue
pc.pivot(obj, md)
- elif verb == 'clean':
- if smartlog(l, obj, False):
- stampit(progress)
- continue
- po.clean()
elif verb == 'kernel':
if smartlog(l, obj, False):
stampit(progress)
diff --git a/grs/Populate.py b/grs/Populate.py
index 620eaba..8511c53 100644
--- a/grs/Populate.py
+++ b/grs/Populate.py
@@ -65,24 +65,3 @@ class Populate():
os.rename(old_file, new_file)
else:
os.remove(old_file)
-
- def clean_subdirs(self, reldir):
- absdir = os.path.join(self.portage_configroot, reldir)
- if not os.path.isdir(absdir):
- return
- uid = os.stat(absdir).st_uid
- gid = os.stat(absdir).st_gid
- mode = os.stat(absdir).st_mode
- shutil.rmtree(absdir)
- os.mkdir(absdir)
- os.chown(absdir, uid, gid)
- os.chmod(absdir, mode)
- open(os.path.join(absdir, '.keep'),'w').close()
-
-
- def clean(self):
- self.clean_subdirs('tmp')
- self.clean_subdirs('var/tmp')
- self.clean_subdirs('var/log')
- if os.path.isfile(self.resolv_conf):
- os.unlink(self.resolv_conf)