X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=spec2make.c;fp=spec2make.c;h=f457208830568d5ced4af74b7c09713560e3d1ea;hb=548c6e6ad3bc706f2b327e9147c4d5e7f0a69108;hp=1d68503b028c0d4193439c3d8b895f86ce8d3b6d;hpb=f06fb3500f7cb45a00cb2c3a81684021046bc4b6;p=build.git diff --git a/spec2make.c b/spec2make.c index 1d68503b..f4572088 100644 --- a/spec2make.c +++ b/spec2make.c @@ -27,7 +27,6 @@ #ifndef PATH_MAX #include #endif - extern size_t strnlen(const char *s, size_t maxlen); /* the structure describing the options we take and the defaults */ @@ -81,12 +80,13 @@ main(int argc, char *argv[]) int alen, i; char *target = NULL; int args = 1; - int tlen = strlen("--target"); - + int hack=0; /* walk argv list looking for --target */ while ((args+1)fileList || !strncmp(name,"kernel",sizeof("kernel")-1)) { + if (pkg->fileList || hack) { /* attach (add) rpm path to package */ printf("%s.rpms += RPMS/%s/%s-%s-%s.%s.rpm\n", package_name, arch, name, version, release, arch);