Eliminate pointless isSource member from eiu struct, duh
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Mar 2011 10:15:50 +0000 (12:15 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Mar 2011 10:15:50 +0000 (12:15 +0200)
lib/rpminstall.c

index df4d8a3..ef34a74 100644 (file)
@@ -224,7 +224,6 @@ struct rpmEIU {
     int numRPMS;
     int numSRPMS;
     char ** sourceURL;
-    int isSource;
     int argc;
     char ** argv;
     rpmRelocation * relocations;
@@ -504,9 +503,7 @@ restart:
            }
        }
 
-       eiu->isSource = headerIsSource(h);
-
-       if (eiu->isSource) {
+       if (headerIsSource(h)) {
            rpmlog(RPMLOG_DEBUG, "\tadded source package [%d]\n",
                eiu->numSRPMS);
            eiu->sourceURL = xrealloc(eiu->sourceURL,