diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-27 12:14:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-27 12:14:19 +0000 |
commit | bca32182ad43ddbcab36eefb467822f14fd77cef (patch) | |
tree | c987a7bee49ac7595cf2b8c1d5f56e3672f76b1e /t/data | |
parent | 5d9dc5e7611430e4b3fe7f16c0060cd47c31fa2e (diff) | |
download | urpmi-bca32182ad43ddbcab36eefb467822f14fd77cef.tar urpmi-bca32182ad43ddbcab36eefb467822f14fd77cef.tar.gz urpmi-bca32182ad43ddbcab36eefb467822f14fd77cef.tar.bz2 urpmi-bca32182ad43ddbcab36eefb467822f14fd77cef.tar.xz urpmi-bca32182ad43ddbcab36eefb467822f14fd77cef.zip |
- move some test from superuser--media_info_dir.t into superuser--rpm.t
- add a test
Diffstat (limited to 't/data')
-rw-r--r-- | t/data/SPECS/rpm-query-in-scriptlet.spec | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec new file mode 100644 index 00000000..dc331998 --- /dev/null +++ b/t/data/SPECS/rpm-query-in-scriptlet.spec @@ -0,0 +1,31 @@ +Summary: x +Name: rpm-query-in-scriptlet +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%install +rm -rf %buildroot +echo > list +for i in sh rpm; do + bin=`which $i` + echo $bin >> list + ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list +done +grep '/' list | (cd / ; cpio -pumd --dereference %buildroot) + +find %buildroot + +%post +echo "RPMLOCK_NOWAIT is '$RPMLOCK_NOWAIT'" +rpm -q foo +true + +%files +/* |