Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 0f2ecfe3d3916a0e407300ea2e51deaa576b3821
Author: clime <clime(a)redhat.com>
Date: Mon Jan 25 11:35:00 2016 +0100
[prunerepo] bugfix for --cleancopr when a log for the respective dir does not exist
(e.g. copr repos with old dir naming)
---------------------------------------------------------------
prunerepo/prunerepo | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/prunerepo/prunerepo b/prunerepo/prunerepo
index 671e2f7..86f6bd6 100755
--- a/prunerepo/prunerepo
+++ b/prunerepo/prunerepo
@@ -152,7 +152,7 @@ def clean_copr():
buildlog_path = os.path.abspath(os.path.join(args.path, buildlog_name))
if args.verbose:
log_info('Removing: '+buildlog_path)
- os.remove(os.path.join(args.path, buildlog_path))
+ rm_file(os.path.join(args.path, buildlog_path))
if __name__ == '__main__':