-def remove (file):
- if os.access(file, os.R_OK):
- dest_filename = del_dir + '/' + os.path.basename(file)
+def remove (f):
+ if os.access(f, os.R_OK):
+ dest_filename = del_dir + '/' + os.path.basename(f)
# If the destination file exists; try to find another filename to use
if os.path.exists(dest_filename):
dest_filename = daklib.utils.find_next_free(dest_filename, 10)
# If the destination file exists; try to find another filename to use
if os.path.exists(dest_filename):
dest_filename = daklib.utils.find_next_free(dest_filename, 10)
- for file in os.listdir('.'):
- if os.path.isfile(file):
- if os.stat(file)[stat.ST_MTIME] < delete_date:
+ for f in os.listdir('.'):
+ if os.path.isfile(f):
+ if os.stat(f)[stat.ST_MTIME] < delete_date:
# Anthing left at this stage is not referenced by a .changes (or
# a .dsc) and should be deleted if old enough.
# Anthing left at this stage is not referenced by a .changes (or
# a .dsc) and should be deleted if old enough.