Increment exit code on file not found errors too (#446202)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Aug 2008 12:32:49 +0000 (15:32 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Aug 2008 12:32:49 +0000 (15:32 +0300)
lib/rpminstall.c

index 5eef571..8ea9a83 100644 (file)
@@ -264,6 +264,7 @@ int rpmInstall(rpmts ts, struct rpmInstallArguments_s * ia, ARGV_t fileArgv)
        fn = _free(fn);
        if (rc || ac == 0) {
            rpmlog(RPMLOG_ERR, _("File not found by glob: %s\n"), *eiu->fnp);
+           eiu->numFailed++;
            continue;
        }