comparison contrib/bin/delete-old-debs.py @ 537:aeccb5774939

contrib: Small bug fixes in delete-old-debs.py.
author Sascha Teichmann <teichmann@intevation.de>
date Mon, 10 Jan 2011 11:36:55 +0000
parents 8a61185a3357
children 6fb5e8b74414
comparison
equal deleted inserted replaced
536:8a61185a3357 537:aeccb5774939
124 if not os.path.isdir(deb_dir): 124 if not os.path.isdir(deb_dir):
125 log.warn("'%s' is not a directory" % deb_dir) 125 log.warn("'%s' is not a directory" % deb_dir)
126 continue 126 continue
127 127
128 for deb in oldest_debs(deb_dir, keep): 128 for deb in oldest_debs(deb_dir, keep):
129 log.debug("remove '%s'" % deb) 129 log.info("remove '%s'" % deb)
130 remove(deb) 130 remove(deb)
131 changes = deb.path[:-3] + "changes" 131 changes = deb[:-3] + "changes"
132 if os.path.isfile(changes): 132 if os.path.isfile(changes):
133 log.info("remove '%s'" % changes) 133 log.info("remove '%s'" % changes)
134 remove(changes) 134 remove(changes)
135 135
136 136
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)