]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- rpmqa... this file should be copied inside the chroot
authorMariusz Mazur <mmazur@pld-linux.org>
Sun, 7 Dec 2003 21:33:24 +0000 (21:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chroot/rpmqa-chroot -> 1.1

chroot/rpmqa-chroot [new file with mode: 0755]

diff --git a/chroot/rpmqa-chroot b/chroot/rpmqa-chroot
new file mode 100755 (executable)
index 0000000..588b04c
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+# generate rpm -qa without locking database
+
+set -e
+umask 077
+dir=`mktemp -d /tmp/db-XXXXXX`
+cp /var/lib/rpm/Packages $dir
+cp /var/lib/rpm/Name $dir
+rpm --dbpath $dir -qa | sort
+rm -rf $dir
+
This page took 0.038481 seconds and 4 git commands to generate.