mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
Unify obsolete warnings for commandline
Signed-off-by: Sebastian Wagner <sebix@sebix.at>
This commit is contained in:
parent
8466e49d59
commit
61ddf8542e
@ -2500,12 +2500,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
Obsolete command to edit metadata. Use 'meta' now.
|
||||
|
||||
See the help output of 'meta'.
|
||||
|
||||
"""
|
||||
|
||||
print('This command is obsolete. Use \'osc meta <metatype> ...\'.', file=sys.stderr)
|
||||
print('See \'osc help meta\'.', file=sys.stderr)
|
||||
#self.do_help([None, 'meta'])
|
||||
print("This command is obsolete. Use 'osc meta <metatype> ...'.", file=sys.stderr)
|
||||
print("See 'osc help meta'.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
|
||||
@ -3570,25 +3568,36 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
@cmdln.hide(1)
|
||||
def do_deletepac(self, subcmd, opts, *args):
|
||||
print("""${cmd_name} is obsolete !
|
||||
"""${cmd_name}:
|
||||
|
||||
Obsolete command to delete package. Use 'delete' or 'rdelete' now.
|
||||
|
||||
See the help output of 'delete' and 'rdelete'.
|
||||
"""
|
||||
|
||||
print("""Command deletepac is obsolete !
|
||||
|
||||
Please use either
|
||||
osc delete for checked out packages or projects
|
||||
or
|
||||
osc rdelete for server side operations.""")
|
||||
osc rdelete for server side operations.""", file=sys.stderr)
|
||||
|
||||
sys.exit(1)
|
||||
return 2
|
||||
|
||||
@cmdln.hide(1)
|
||||
@cmdln.option('-f', '--force', action='store_true',
|
||||
help='deletes a project and its packages')
|
||||
def do_deleteprj(self, subcmd, opts, project):
|
||||
"""${cmd_name} is obsolete !
|
||||
"""${cmd_name}:
|
||||
|
||||
Please use
|
||||
osc rdelete PROJECT
|
||||
Obsolete command to delete project. Use 'rdelete' now.
|
||||
|
||||
See the help output of 'rdelete'.
|
||||
"""
|
||||
sys.exit(1)
|
||||
|
||||
print("This command is obsolete. Use 'osc rdelete <project>'.", file=sys.stderr)
|
||||
print("See 'osc help rdelete'.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
@cmdln.alias('metafromspec')
|
||||
@cmdln.alias('updatepkgmetafromspec')
|
||||
@ -4863,8 +4872,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
@cmdln.hide(1)
|
||||
def do_results_meta(self, subcmd, opts, *args):
|
||||
print("Command results_meta is obsolete. Please use: osc results --xml")
|
||||
sys.exit(1)
|
||||
"""${cmd_name}:
|
||||
|
||||
Obsolete command to show build results. Use 'results --xml' now.
|
||||
|
||||
See the help output of 'results'.
|
||||
"""
|
||||
|
||||
print("This command is obsolete. Use 'osc results --xml'.",
|
||||
file=sys.stderr)
|
||||
print("See 'osc help results'.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
@cmdln.hide(1)
|
||||
@cmdln.option('-l', '--last-build', action='store_true',
|
||||
@ -4876,10 +4894,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
@cmdln.option('', '--xml', action='store_true',
|
||||
help='generate output in XML (former results_meta)')
|
||||
def do_rresults(self, subcmd, opts, *args):
|
||||
print("Command rresults is obsolete. Running 'osc results' instead")
|
||||
self.do_results('results', opts, *args)
|
||||
sys.exit(1)
|
||||
"""${cmd_name}:
|
||||
|
||||
Obsolete command to show build results. Use 'results' now.
|
||||
|
||||
See the help output of 'results'.
|
||||
"""
|
||||
|
||||
print("Command rresults is obsolete. Running 'osc results' instead",
|
||||
file=sys.stderr)
|
||||
print("See 'osc help results'.", file=sys.stderr)
|
||||
return self.do_results('results', opts, *args)
|
||||
|
||||
@cmdln.option('-f', '--force', action='store_true', default=False,
|
||||
help="Don't ask and delete files")
|
||||
@ -5061,8 +5086,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
@cmdln.hide(1)
|
||||
def do_rprjresults(self, subcmd, opts, *args):
|
||||
print("Command rprjresults is obsolete. Please use 'osc prjresults'")
|
||||
sys.exit(1)
|
||||
"""${cmd_name}:
|
||||
|
||||
Obsolete command to show project-wide build results. Use 'prjresults' now.
|
||||
|
||||
See the help output of 'prjresults'.
|
||||
"""
|
||||
|
||||
print("Command rprjresults is obsolete. Please use 'osc prjresults'",
|
||||
file=sys.stderr)
|
||||
print("See 'osc help prjresults'.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
@cmdln.alias('bl')
|
||||
@cmdln.alias('blt')
|
||||
@ -6191,8 +6225,16 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
@cmdln.hide(1)
|
||||
def do_rlog(self, subcmd, opts, *args):
|
||||
print("Command rlog is obsolete. Please use 'osc log'")
|
||||
sys.exit(1)
|
||||
"""${cmd_name}:
|
||||
|
||||
Obsolete command to show commit logs. Use 'log' now.
|
||||
|
||||
See the help output of 'log'.
|
||||
"""
|
||||
|
||||
print("This command is obsolete. Use 'osc log'.", file=sys.stderr)
|
||||
print("See 'osc help log'.", file=sys.stderr)
|
||||
return 2
|
||||
|
||||
|
||||
@cmdln.option('-r', '--revision', metavar='rev',
|
||||
|
Loading…
Reference in New Issue
Block a user