Red Hat Bugzilla – Bug 99154
rpm --excludepath for multiple directories.
Last modified: 2007-04-18 12:55:40 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425
Description of problem:
I'm sure this is not the first bug about --excludepath but i would like to some
all the problems i'm seeing.
1.rpm-3x had --excludepath as an option but didn't work at all.
2.rpm-4x has this option and generally works with one directory but there are
still gliches(like rpm-4.1-1.06)
3.Only rpm-4.0.2-8(which came with RH7.1) has the ability to exclude multiple
Weird , i looked at the code and it seems a fix for multiple exclude is
there(diffs between rpm-4.0 to 4.0.2-8)
" case GETOPT_EXCLUDEPATH:
if (*optArg != '/')
argerror(_("exclude paths must begin with a /"));
relocations = xrealloc(relocations,
sizeof(*relocations) * (numRelocations + 1));
relocations[numRelocations].oldPath = optArg;
relocations[numRelocations++].newPath = NULL;
but when i check if these lines are in rpm-4.0.3 they exist and still it doesn't
Maybe its a problem with popt or some other external library?
Please , formally , Is there a way to -excludepath multiple directories or not?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Prepare an rpm to check on(xbill-2.0-16.i386.rpm for example)
2.Remove any xbill's on the system.
3.rpm ivh xbill-2.0.16.i386.rpm --excludepath=/usr --excludepath=/var
3.Check if /usr/lib/xbill exist and if /var/lib/games/xbill exists.
4.Check that only /etc/X11/applnk/Games/xbill.desktop exists.
Actual Results: Problem - rpm excluded /var only
Expected Results: only /etc/X11/applnk/Games/xbill.desktop exists.
Ilan Shufer - email@example.com
Your xbill test case "works" with (about to be built)
rpm-4.2.1-0.30. I know of no reason why the test case shouldn/t
... work with every version since rpm-4.1, but have not looked.
BTW -0.31, not -0.30.
Doesn't work on a clean RH9.
This time , rpm doesn't even exclude one directory. All the files exist on the
Yes, doesn't work on RH9.
Yes, fixed in -0.31
REOPENING is not your best avenue to fix. Try installing