[copr] skvidal-backend: basename not dirname (3d0d368)

skvidal at fedoraproject.org skvidal at fedoraproject.org
Fri Nov 30 16:10:29 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 3d0d368615ea4fee2c4d41a3c140f1aef8ef7a91
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Fri Nov 30 11:08:32 2012 -0500

    basename not dirname


>---------------------------------------------------------------

 backend/dispatcher.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/backend/dispatcher.py b/backend/dispatcher.py
index c9b34e9..8b47c70 100644
--- a/backend/dispatcher.py
+++ b/backend/dispatcher.py
@@ -155,7 +155,7 @@ class Worker(multiprocessing.Process):
 
     def return_results(self, job):
         self.callback.log('%s status %s. Took %s seconds' % (job.build_id, job.status, job.ended_on - job.started_on))
-        jobfilename = os.path.dirname(job.jobfile)
+        jobfilename = os.path.basename(job.jobfile)
         os.rename(job.jobfile, job.destdir + '/' + jobfilename)
         #FIXME - this should either return job status/results 
         # into a queue or it should submit results directly to the frontend



More information about the copr-devel mailing list