changed showRc() to rpmShowRC()
authorewt <devnull@localhost>
Tue, 16 Jul 1996 03:35:29 +0000 (03:35 +0000)
committerewt <devnull@localhost>
Tue, 16 Jul 1996 03:35:29 +0000 (03:35 +0000)
made -u option exit with an error

CVS patchset: 844
CVS date: 1996/07/16 03:35:29

rpm.c

diff --git a/rpm.c b/rpm.c
index ffb6eb0..e29a9f2 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -374,7 +374,7 @@ int main(int argc, char ** argv) {
     if (rpmReadConfigFiles(rcfile, arch, os, building))  
        exit(1);
     if (showrc) {
-       showRc(stdout);
+       rpmShowRC(stdout);
        exit(0);
     }
 
@@ -426,10 +426,10 @@ int main(int argc, char ** argv) {
            if (bigMode != MODE_UNKNOWN && bigMode != MODE_UNINSTALL)
                argerror(_("only one major mode may be specified"));
            bigMode = MODE_UNINSTALL;
-           message(MESS_WARNING, _("-u and --uninstall are depricated and will"
-                   " be removed soon.\n"));
-           message(MESS_WARNING, _("Use -e or --erase instead.\n"));
-           break;
+           message(MESS_ERROR, _("-u and --uninstall are depricated and no"
+                   " longer work.\n"));
+           message(MESS_ERROR, _("Use -e or --erase instead.\n"));
+           exit(1);
        
          case 'e':
            if (bigMode != MODE_UNKNOWN && bigMode != MODE_UNINSTALL)