don't use RPMS/<arch> if not arch_sensitive
authorroot <devnull@localhost>
Wed, 22 May 1996 17:34:35 +0000 (17:34 +0000)
committerroot <devnull@localhost>
Wed, 22 May 1996 17:34:35 +0000 (17:34 +0000)
CVS patchset: 580
CVS date: 1996/05/22 17:34:35

build/pack.c

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