Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 60b162dd18b1f56d09b3956a3a64db04a927ee02
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Apr 23 17:16:09 2014 +0200
if directory does not exist, do not try to delete it
addressing:
Process jobgrab:
Traceback (most recent call last):
File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in
_bootstrap
self.run()
File "/usr/share/copr/copr-be.py", line 104, in run
self.fetch_jobs()
File "/usr/share/copr/copr-be.py", line 97, in fetch_jobs
ao.run()
File "/usr/share/copr/backend/actions.py", line 51, in run
for chroot in os.listdir(path):
OSError: [Errno 2] No such file or directory:
'/var/lib/copr/public_html/results/asamalik/test-project'
---------------------------------------------------------------
backend/backend/actions.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/backend/backend/actions.py b/backend/backend/actions.py
index 63dafed..db4ae7b 100644
--- a/backend/backend/actions.py
+++ b/backend/backend/actions.py
@@ -48,7 +48,12 @@ class Action(object):
self.event("Packages to delete {0}".format('
'.join(packages)))
self.event("Copr path {0}".format(path))
- for chroot in os.listdir(path):
+ try:
+ chroot_list = os.listdir(path)
+ except OSError:
+ # already deleted
+ chroot_list = []
+ for chroot in chroot_list:
self.event("In chroot {0}".format(chroot))
altered = False