All pastes #3819 Raw Edit

Anonymous

public text v1 · immutable
#3819 ·published 2005-01-06 14:10 UTC
rendered paste body
--- C/ipkg_cmd.c~terse
+++ C/ipkg_cmd.c
@@ -119,8 +119,6 @@
                       "  writing status file\n");
          ipkg_conf_write_status_files(conf);
          pkg_write_changed_filelists(conf);
-     } else { 
-         ipkg_message(conf, IPKG_NOTICE, "Nothing to be done\n");
      }
 }
 
@@ -148,9 +146,7 @@
        int result;
        p_userdata = userdata;
        result = (cmd->fun)(conf, argc, argv);
-        if ( result == 0 ) {
-           ipkg_message(conf, IPKG_NOTICE, "Successfully terminated.\n");
-        } else {
+        if ( result != 0 ) {
            ipkg_message(conf, IPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
         }