#include "rpmlib.h"
#include "messages.h"
#include "stringbuf.h"
-#include "var.h"
#include "misc.h"
#include "pack.h"
while (source) {
sprintf(buf, "%s/%s", getVar(RPMVAR_SOURCEDIR), source->source);
if (access(buf, R_OK)) {
- error(RPMERR_BADSPEC, "missing source or patch: %s",
- source->source);
+ error(RPMERR_BADSPEC, "missing source or patch: %s", buf);
return RPMERR_BADSPEC;
}
source = source->next;
if (package->icon) {
sprintf(buf, "%s/%s", getVar(RPMVAR_SOURCEDIR), package->icon);
if (access(buf, R_OK)) {
- error(RPMERR_BADSPEC, "missing icon: %s", package->icon);
+ error(RPMERR_BADSPEC, "missing icon: %s", buf);
return RPMERR_BADSPEC;
}
}