use getBooleanVar()
authorroot <devnull@localhost>
Sun, 16 Jun 1996 16:08:51 +0000 (16:08 +0000)
committerroot <devnull@localhost>
Sun, 16 Jun 1996 16:08:51 +0000 (16:08 +0000)
CVS patchset: 638
CVS date: 1996/06/16 16:08:51

build/pack.c

index 2edc150..60ce41d 100644 (file)
@@ -59,7 +59,8 @@ static int generateRPM(char *name,       /* name-version-release         */
     } else {
        archName = getArchName();
        sprintf(filename, "%s/%s/%s.%s.rpm", getVar(RPMVAR_RPMDIR),
-               getVar(RPMVAR_ARCHSENSITIVE) ? archName : "", name, archName);
+               getBooleanVar(RPMVAR_ARCHSENSITIVE) ? archName : "",
+               name, archName);
     }
 
     /* Write the archive to a temp file so we can get the size */