opkg: don't print "Successfully terminated." message
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:19:26 +0000 (04:19 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 04:19:26 +0000 (04:19 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@16 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

opkg_cmd.c

index 4e70eeb..f32aa47 100644 (file)
@@ -153,12 +153,11 @@ int opkg_cmd_exec(opkg_cmd_t *cmd, opkg_conf_t *conf, int argc, const char **arg
       
 
        result = (cmd->fun)(conf, argc, argv);
-        if ( result == 0 ) {
-           opkg_message(conf, OPKG_NOTICE, "Successfully terminated.\n");
-        } else {
-           opkg_message(conf, OPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
 
+        if ( result != 0 ) {
+           opkg_message(conf, OPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
         }
+
         if ( error_list ) {
            reverse_error_list(&error_list);