Skip to content

Commit

Permalink
push: Use the appropriate lock path when resuming pushes in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
lmacken committed Mar 10, 2016
1 parent 694c47f commit 8bb4f53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bodhi/push.py
Expand Up @@ -52,7 +52,11 @@ def push(username, password, cert_prefix, **kwargs):
# If we're resuming a push
if resume:
updates = []
for lockfile in glob.glob('/mnt/koji/mash/updates/MASHING-*'):
if staging:
locks = '/var/cache/bodhi/mashing/MASHING-*'
else:
locks = '/mnt/koji/mash/updates/MASHING-*'
for lockfile in glob.glob(locks):
doit = raw_input('Resume %s? (y/n)' % lockfile).strip().lower()
if doit == 'n':
continue
Expand Down
File renamed without changes.

0 comments on commit 8bb4f53

Please sign in to comment.