]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- http://osdir.com/ml/linux.redhat.rpm.devel/2006-09/msg00070.html
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 20 Feb 2008 16:29:31 +0000 (16:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-hrmib-cache -> 1.1

rpm-hrmib-cache [new file with mode: 0644]

diff --git a/rpm-hrmib-cache b/rpm-hrmib-cache
new file mode 100644 (file)
index 0000000..74af68d
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+mydir=/var/cache/hrmib
+mkdir -p $mydir || exit 1
+rm -f $mydir/*
+
+rpm -qa --qf '%{name}-%{version}-%{release}.%{arch} %{installtime:date}\n' | \
+while read nvra idate ; do
+   case $nvra in
+   gpg-pubkey-*)
+        ;;
+   *)
+        touch -d "`echo $idate`" $mydir/$nvra
+        ;;
+   esac
+done
+touch $mydir
This page took 0.038412 seconds and 4 git commands to generate.