Downloads is now a constant parameter.
This commit is contained in:
parent
cb74d62875
commit
75b211ff5a
@ -38,6 +38,9 @@ sys.path.append(_plugin_dir)
|
||||
from osclib.graph import Graph
|
||||
from osclib.stagingapi import StagingAPI
|
||||
|
||||
# Directory where download binary packages.
|
||||
DOWNLOADS = os.path.expanduser('~/co/downloads')
|
||||
|
||||
#
|
||||
# XXX - Ugly Hack. Because the way that osc import plugings we need to
|
||||
# declare some functions and objects used in the decorator as global
|
||||
@ -659,7 +662,7 @@ def _check_repo_download(self, p, opts):
|
||||
|
||||
p.downloads[repo] = []
|
||||
for arch, fn, mt in todownload:
|
||||
repodir = os.path.join(opts.downloads, p.spackage, repo)
|
||||
repodir = os.path.join(DOWNLOADS, p.spackage, repo)
|
||||
if not os.path.exists(repodir):
|
||||
os.makedirs(repodir)
|
||||
t = os.path.join(repodir, fn)
|
||||
@ -1001,8 +1004,6 @@ def do_check_repo(self, subcmd, opts, *args):
|
||||
group.append(req)
|
||||
opts.groups[prj] = group
|
||||
|
||||
opts.downloads = os.path.expanduser('~/co/downloads')
|
||||
|
||||
if opts.skip:
|
||||
if not len(args):
|
||||
raise oscerr.WrongArgs('Please give, if you want to skip a review specify a SRID')
|
||||
|
Loading…
x
Reference in New Issue
Block a user