diff options
Diffstat (limited to 'src/sosreport')
-rwxr-xr-x | src/sosreport | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sosreport b/src/sosreport index a75397b3..37a88a47 100755 --- a/src/sosreport +++ b/src/sosreport @@ -194,7 +194,13 @@ if sys.argv[0].endswith("sysreport"): if not sys.stdin.isatty(): print os.execl("/bin/sh", "/bin/sh", "-c", "/usr/sbin/sysreport.legacy") - os.exit(-1) + sys.exit(-1) + +if "-norpm" in sys.argv: + print + print """WARNING: sysreport's "-norpm" option is deprecated, please use "-k rpm.rpmva=off" instead.""" + print + sys.exit(1) (__cmdLineOpts__, __cmdLineArgs__)=__cmdParser__.parse_args() |