]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- finished
authorMariusz Mazur <mmazur@pld-linux.org>
Sun, 20 Feb 2005 14:08:31 +0000 (14:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/maintainer.py -> 1.3

PLD_Builder/maintainer.py

index 8eb3869feca918d7fb04b334a36008ba6361ebb3..0995202f1118a09bdf6c2526ba4057bdaf06fab7 100644 (file)
@@ -12,9 +12,9 @@ def clean_dir(path, max):
     for i in os.listdir(path):
         if curtime - os.path.getmtime(path+'/'+i) > max:
             if os.path.isdir(path+'/'+i):
-                print "rmdir: %s" % path+'/'+i
+                util.clean_tmp(path+'/'+i)
             else:
-                print "rmfile: %s" % path+'/'+i
+                os.unlink(path+'/'+i)
 
 def handle_src():
     clean_dir(path.www_dir+'srpms', 2592000) # a month
@@ -32,7 +32,7 @@ def handle_bin():
         if curtime - mtime > config.max_keep_time:
             rmpkgs.append(pkgname)
     if rmpkgs:
-        print ' '.join(rmpkgs)
+        chroot.run("cd /spools/ready; rm %s" % ' '.join(rmpkgs))
     f.close()
 
 if __name__ == '__main__':
This page took 0.171038 seconds and 4 git commands to generate.