diff -r d26bdf77569d -r 4c4955871c21 rpm.c --- a/rpm.c Mon Apr 07 00:56:16 2008 -0400 +++ b/rpm.c Mon Apr 07 01:06:09 2008 -0400 @@ -353,9 +353,7 @@ program = razor_rpm_get_indirect(installer->rpm, program_tag, NULL); script = razor_rpm_get_indirect(installer->rpm, script_tag, NULL); if (program == NULL && script == NULL) { - printf("no script or program for tags %d and %d\n", - program_tag, script_tag); - return -1; + return; } else if (program == NULL) { program = "/bin/sh"; } @@ -400,7 +398,8 @@ fprintf(stderr, "wait for child failed, %m"); return -1; } - printf("script exited with status %d\n", status); + if (status) + printf("script exited with status %d\n", status); } return 0;