rpm.c
changeset 201 180849700965
parent 198 d26bdf77569d
child 202 e8594c82dffc
     1.1 --- a/rpm.c	Mon Apr 07 00:56:16 2008 -0400
     1.2 +++ b/rpm.c	Mon Apr 07 01:19:13 2008 -0400
     1.3 @@ -353,9 +353,7 @@
     1.4  	program = razor_rpm_get_indirect(installer->rpm, program_tag, NULL);
     1.5  	script = razor_rpm_get_indirect(installer->rpm, script_tag, NULL);
     1.6  	if (program == NULL && script == NULL) {
     1.7 -		printf("no script or program for tags %d and %d\n",
     1.8 -		       program_tag, script_tag);
     1.9 -		return -1;
    1.10 +		return;
    1.11  	} else if (program == NULL) {
    1.12  		program = "/bin/sh";
    1.13  	}
    1.14 @@ -400,7 +398,8 @@
    1.15  			fprintf(stderr, "wait for child failed, %m");
    1.16  			return -1;
    1.17  		}
    1.18 -		printf("script exited with status %d\n", status);
    1.19 +		if (status)
    1.20 +			printf("script exited with status %d\n", status);
    1.21  	}
    1.22  
    1.23  	return 0;