summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-08-08 13:25:27 +0000
committerroot <devnull@localhost>1996-08-08 13:25:27 +0000
commit845866dcc9b48dd0f7046a15126c96ec972a5e26 (patch)
tree332cba2112ac96619da0a66878dc6984eb8cdf23 /build
parent4e972f25e1441d4708b8393b5b35d88dc79b711f (diff)
downloadrpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.tar.gz
rpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.tar.bz2
rpm-845866dcc9b48dd0f7046a15126c96ec972a5e26.zip
strip leading directories from ldd output
CVS patchset: 944 CVS date: 1996/08/08 13:25:27
Diffstat (limited to 'build')
-rw-r--r--build/reqprov.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/reqprov.c b/build/reqprov.c
index cb74964cd..121f9162f 100644
--- a/build/reqprov.c
+++ b/build/reqprov.c
@@ -287,6 +287,9 @@ int generateAutoReqProv(Header header, struct PackageRec *p)
s++;
}
*s = '\0';
+ if ((s = strrchr(tok, '/'))) {
+ tok = s + 1;
+ }
addReqProv(p, REQUIRE_ANY, tok, NULL);
}