koji-shadow: use workpath consistently

This commit is contained in:
Dan Horák 2015-09-29 10:48:47 +02:00 committed by Mike McLean
parent 880a57730f
commit 3d06f7a805

View file

@ -436,7 +436,7 @@ class TrackedBuild(object):
print "Downloading %s" % url
#XXX - this is not really the right place for this
fsrc = urllib2.urlopen(url)
fn = "/tmp/koji-shadow/%s.src.rpm" % self.nvr
fn = "%s/%s.src.rpm" % (options.workpath, self.nvr)
koji.ensuredir(os.path.dirname(fn))
fdst = file(fn, 'w')
shutil.copyfileobj(fsrc, fdst)