diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-06-21 14:53:05 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-06-21 14:53:05 +0300 |
commit | 7b10f552dc83cf4350a54758ce4d1e5581759540 (patch) | |
tree | 93ab5b70793bde7ada3d375dcbaf0c33d7ea95de | |
parent | a91dd90e6fce4745f164ad1feac6f1b4c929f657 (diff) | |
download | librpm-tizen-7b10f552dc83cf4350a54758ce4d1e5581759540.tar.gz librpm-tizen-7b10f552dc83cf4350a54758ce4d1e5581759540.tar.bz2 librpm-tizen-7b10f552dc83cf4350a54758ce4d1e5581759540.zip |
Eliminate redundant noGlob member from filelist
- Since the only thing where globs are not permitted are %dev entires,
check for device explicitcly in the glob part. Doh.
-rw-r--r-- | build/files.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/build/files.c b/build/files.c index 44c22308a..ec70bf8a0 100644 --- a/build/files.c +++ b/build/files.c @@ -103,7 +103,6 @@ typedef struct FileList_s { int processingFailed; - int noGlob; unsigned devtype; unsigned devmajor; int devminor; @@ -429,8 +428,6 @@ static rpmRC parseForDev(char * buf, FileList fl) goto exit; } - fl->noGlob = 1; - rc = RPMRC_OK; exit: @@ -1670,9 +1667,8 @@ static rpmRC processBinaryFile(Package pkg, FileList fl, const char * fileName) int argc = 0; int i; - /* XXX for %dev marker in file manifest only */ - if (fl->noGlob) { - rpmlog(RPMLOG_ERR, _("Glob not permitted: %s\n"), diskPath); + if (fl->devtype) { + rpmlog(RPMLOG_ERR, _("%%dev glob not permitted: %s\n"), diskPath); rc = RPMRC_FAIL; goto exit; } @@ -1767,7 +1763,6 @@ static rpmRC processPackageFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags, fl.currentFlags = 0; fl.currentVerifyFlags = 0; - fl.noGlob = 0; fl.devtype = 0; fl.devmajor = 0; fl.devminor = 0; @@ -1814,7 +1809,6 @@ static rpmRC processPackageFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags, fl.currentSpecdFlags = ((unsigned)fl.defSpecdFlags) >> 8; fl.currentVerifyFlags = fl.defVerifyFlags; - fl.noGlob = 0; fl.devtype = 0; fl.devmajor = 0; fl.devminor = 0; @@ -1877,7 +1871,6 @@ static rpmRC processPackageFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags, fl.currentFlags = 0; fl.currentVerifyFlags = fl.defVerifyFlags; - fl.noGlob = 0; fl.devtype = 0; fl.devmajor = 0; fl.devminor = 0; |