don't report disk space problems for packages w/ no files
authormsw <devnull@localhost>
Mon, 12 Apr 1999 21:03:50 +0000 (21:03 +0000)
committermsw <devnull@localhost>
Mon, 12 Apr 1999 21:03:50 +0000 (21:03 +0000)
CVS patchset: 2986
CVS date: 1999/04/12 21:03:50

lib/transaction.c

index 3c06cf1..398d8a2 100644 (file)
@@ -415,7 +415,7 @@ int rpmRunTransactions(rpmTransactionSet ts, rpmCallbackFunction notify,
        handleOverlappedFiles(fi, ht, 
               (ignoreSet & RPMPROB_FILTER_REPLACENEWFILES) ? NULL : probs, di);
 
-       if (di && fi->type == TR_ADDED) {
+       if (di && fi->type == TR_ADDED && fi->fc) {
            for (i = 0; i < filesystemCount; i++) {
                if (((di[i].needed * 20) / 19)> di[i].avail) {
                    psAppend(probs, RPMPROB_DISKSPACE, fi->ap->key, fi->ap->h,