CVS patchset: 67
CVS date: 1995/12/19 21:05:39
#include "spec.h"
#include "build.h"
#include "messages.h"
+#include "pack.h"
+#include "rpmerr.h"
+
+void printerror(void)
+{
+ fprintf(stderr, "ERRORCODE : %d\n", errCode());
+ fprintf(stderr, "ERRORSTRING: %s\n", errString());
+}
void main(int argc, char **argv)
{
Spec s;
setVerbosity(MESS_DEBUG);
+ errSetCallback(printerror);
f = fopen(argv[1], "r");
- s = parseSpec(f);
- fclose(f);
+ if ((s = parseSpec(f))) {
+ execPrep(s);
+/* dumpSpec(s); */
+ packageBinaries(s);
+ }
- dumpSpec(s, stdout);
- execPrep(s);
+ fclose(f);
}