int verifyList(Spec s)
{
- return 0;
+ return packageBinaries(s, NULL, PACK_NOPACKAGE);
}
int doBuild(Spec s, int flags, char *passPhrase)
strcpy(build_subdir, ".");
- if (flags & RPMBUILD_LIST) {
- if (verifyList(s)) {
- return 1;
- }
- }
+ if (flags & RPMBUILD_LIST)
+ return verifyList(s);
/* We always need to parse the %prep section */
if (execPrep(s, (flags & RPMBUILD_PREP))) {
markBuildTime();
if (flags & RPMBUILD_BINARY) {
- if (packageBinaries(s, passPhrase)) {
+ if (packageBinaries(s, passPhrase, PACK_PACKAGE)) {
return 1;
}
if (execClean(s)) {
}
-int packageBinaries(Spec s, char *passPhrase)
+int packageBinaries(Spec s, char *passPhrase, int doPackage)
{
char name[1024];
char *nametmp;
}
sprintf(name, "%s-%s-%s", nametmp, packageVersion, packageRelease);
- message(MESS_VERBOSE, "Binary Packaging: %s\n", name);
+ if (doPackage == PACK_PACKAGE) {
+ message(MESS_VERBOSE, "Binary Packaging: %s\n", name);
+ } else {
+ message(MESS_VERBOSE, "File List Check: %s\n", name);
+ }
/**** Generate the Header ****/
/**** Make the RPM ****/
/* Make the output RPM filename */
- sprintf(filename, "%s/%s/%s.%s.rpm", getVar(RPMVAR_RPMDIR),
- getArchName(), name, getArchName());
-
- if (generateRPM(name, filename, RPMLEAD_BINARY, outHeader, NULL,
- getStringBuf(cpioFileList), passPhrase, prefix)) {
- /* Build failed */
- return 1;
+ if (doPackage == PACK_PACKAGE) {
+ sprintf(filename, "%s/%s/%s.%s.rpm", getVar(RPMVAR_RPMDIR),
+ getArchName(), name, getArchName());
+
+ if (generateRPM(name, filename, RPMLEAD_BINARY, outHeader, NULL,
+ getStringBuf(cpioFileList), passPhrase, prefix)) {
+ /* Build failed */
+ return 1;
+ }
}
freeStringBuf(cpioFileList);