parse %prep even for list check
authormarc <devnull@localhost>
Tue, 23 Jul 1996 03:33:20 +0000 (03:33 +0000)
committermarc <devnull@localhost>
Tue, 23 Jul 1996 03:33:20 +0000 (03:33 +0000)
CVS patchset: 920
CVS date: 1996/07/23 03:33:20

build/build.c

index 7feb0a8..19c4164 100644 (file)
@@ -646,14 +646,14 @@ int doBuild(Spec s, int flags, char *passPhrase)
 
     strcpy(build_subdir, ".");
 
-    if (flags & RPMBUILD_LIST)
-       return verifyList(s);
-
     /* We always need to parse the %prep section */
     if (execPrep(s, (flags & RPMBUILD_PREP))) {
        return 1;
     }
 
+    if (flags & RPMBUILD_LIST)
+       return verifyList(s);
+
     if (flags & RPMBUILD_BUILD) {
        if (execBuild(s)) {
            return 1;