aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/commands/sync.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-05-29 14:44:38 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-05-29 14:44:38 +0200
commit26f45c6548d4671b1792dbcf8411929f8ec145ae (patch)
tree0b758f801cbb41a998b61ab6635794f0ac5035a9 /MgaRepo/commands/sync.py
parent62adf7a95c70bf83890587f3d7d6f58e86ae12a3 (diff)
parent3e3e90e699192df60eeafb2ec7a9e087aff97195 (diff)
downloadmgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar
mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.gz
mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.bz2
mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.xz
mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.zip
Add commits before python3 divergence
Merge commit '3e3e90e699192df60eeafb2ec7a9e087aff97195' into topic/python2
Diffstat (limited to 'MgaRepo/commands/sync.py')
-rw-r--r--MgaRepo/commands/sync.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/MgaRepo/commands/sync.py b/MgaRepo/commands/sync.py
index 71f5510..54f5635 100644
--- a/MgaRepo/commands/sync.py
+++ b/MgaRepo/commands/sync.py
@@ -11,7 +11,6 @@ in the spec file.
It will not commit the changes.
Options:
- -c Commit the changes, as in ci
--dry-run Print results without changing the working copy
--download -d
Try to download the source files not found
@@ -25,11 +24,17 @@ def parse_options():
parser = OptionParser(help=HELP)
parser.add_option("--dry-run", dest="dryrun", default=False,
action="store_true")
+ # TODO:
+ # Completely remove -c switch from code
parser.add_option("-c", dest="commit", default=False,
action="store_true")
parser.add_option("-d", "--download", dest="download", default=False,
action="store_true")
opts, args = parser.parse_args()
+ # TODO:
+ # Completely remove -c switch from code
+ if opts.commit:
+ parser.error("Option -c is deprecated and should not be used anymore!")
if len(args):
opts.target = args[0]
return opts