Eliminate ancient leftover initSourceHeader() call
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 25 Aug 2010 10:39:04 +0000 (13:39 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 25 Aug 2010 10:51:42 +0000 (13:51 +0300)
- processSourceFiles() is only ever called through buildSpec(),
  and if you throw unparsed spec into that you're pretty much screwed
  anyway. rpmbuild always called initSourceHeader() anyway, and now
  its ensured for all successfully parsed specs.

build/files.c

index 11efcbb..16d2cee 100644 (file)
@@ -2065,13 +2065,6 @@ int processSourceFiles(rpmSpec spec)
     }
     sourceFiles = newStringBuf();
 
-    /* XXX
-     * XXX This is where the source header for noarch packages needs
-     * XXX to be initialized.
-     */
-    if (spec->sourceHeader == NULL)
-       initSourceHeader(spec);
-
     genSourceRpmName(spec);
     /* Construct the file list and source entries */
     appendLineStringBuf(sourceFiles, spec->specFile);