fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bab0a97
)
honor the dont-repackage option in republish
author
Jan Szejko
<janek37@gmail.com>
Fri, 8 Dec 2017 15:52:57 +0000
(16:52 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 8 Dec 2017 15:52:57 +0000
(16:52 +0100)
catalogue/management/commands/republish.py
patch
|
blob
|
history
diff --git
a/catalogue/management/commands/republish.py
b/catalogue/management/commands/republish.py
index
12ee480
..
48f9345
100644
(file)
--- a/
catalogue/management/commands/republish.py
+++ b/
catalogue/management/commands/republish.py
@@
-39,7
+39,8
@@
class Command(BaseCommand):
print '!!!!!! PARSE ERROR !!!!!!'
print e
- print 'Rebuilding levels...'
- for level in Level.objects.all():
- print level.name
- level.build_packages()
+ if options.get('repackage'):
+ print 'Rebuilding levels...'
+ for level in Level.objects.all():
+ print level.name
+ level.build_packages()