diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-01-31 20:14:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-01-31 20:14:02 +0000 |
commit | 80869e8f0764492f7d71edc56653e7787c6e2dd7 (patch) | |
tree | 6aa26a00d65a2af899d0ee72f0cd53fe57a2f586 /t/data/SPECS | |
parent | 926e94049bbcaab3dbd946403c8fba0a2037e49d (diff) | |
download | urpmi-80869e8f0764492f7d71edc56653e7787c6e2dd7.tar urpmi-80869e8f0764492f7d71edc56653e7787c6e2dd7.tar.gz urpmi-80869e8f0764492f7d71edc56653e7787c6e2dd7.tar.bz2 urpmi-80869e8f0764492f7d71edc56653e7787c6e2dd7.tar.xz urpmi-80869e8f0764492f7d71edc56653e7787c6e2dd7.zip |
fix that test when prelink is installed
Diffstat (limited to 't/data/SPECS')
-rw-r--r-- | t/data/SPECS/rpm-query-in-scriptlet.spec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec index dc331998..bedd95bd 100644 --- a/t/data/SPECS/rpm-query-in-scriptlet.spec +++ b/t/data/SPECS/rpm-query-in-scriptlet.spec @@ -20,6 +20,13 @@ for i in sh rpm; do done grep '/' list | (cd / ; cpio -pumd --dereference %buildroot) +# prelinked libraries/binaries which +# cause rpm to abort installation on md5sum errors while package signature does +# be OK :-( : +if [ -x /usr/sbin/prelink ]; then + for i in $(find %{buildroot}/ -type f);do /usr/sbin/prelink -u $i || : ;done +fi + find %buildroot %post |