aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/commands
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2023-04-07 00:13:03 -0700
committerDan Fandrich <danf@mageia.org>2023-04-07 00:13:03 -0700
commitf6f05822b727d42b85ea03b23d4e2d4240b24215 (patch)
treecefed4483998edbd2d8db0deb8bd181e82c75eb0 /MgaRepo/commands
parent948a398f44b74b562cff0468a2233e0c7fa2acdd (diff)
downloadmgarepo-f6f05822b727d42b85ea03b23d4e2d4240b24215.tar
mgarepo-f6f05822b727d42b85ea03b23d4e2d4240b24215.tar.gz
mgarepo-f6f05822b727d42b85ea03b23d4e2d4240b24215.tar.bz2
mgarepo-f6f05822b727d42b85ea03b23d4e2d4240b24215.tar.xz
mgarepo-f6f05822b727d42b85ea03b23d4e2d4240b24215.zip
Support -r in the up command (mga#3913)
Diffstat (limited to 'MgaRepo/commands')
-rw-r--r--MgaRepo/commands/up.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/MgaRepo/commands/up.py b/MgaRepo/commands/up.py
index 646a79f..18635f9 100644
--- a/MgaRepo/commands/up.py
+++ b/MgaRepo/commands/up.py
@@ -8,11 +8,13 @@ Usage: mgarepo up [PATH]
Update the package working copy and synchronize all binaries.
Options:
+ -r REV Revision to update to
-h help
"""
def parse_options():
parser = OptionParser(help=HELP)
+ parser.add_option("-r", dest="revision")
opts, args = parser.parse_args()
if args:
opts.target = args[0]