generic-poky/openembedded/packages/ipkg/ipkg-0.99.130/terse.patch

28 lines
696 B
Diff

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- 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);
}