]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-hrmib-cache
74af68d3e4eaffdbc7d7b06d5a32d937f926ebf8
[packages/rpm.git] / rpm-hrmib-cache
1 #!/bin/sh
2 mydir=/var/cache/hrmib
3 mkdir -p $mydir || exit 1
4 rm -f $mydir/*
5
6 rpm -qa --qf '%{name}-%{version}-%{release}.%{arch} %{installtime:date}\n' | \
7 while read nvra idate ; do
8    case $nvra in
9    gpg-pubkey-*)
10         ;;
11    *)
12         touch -d "`echo $idate`" $mydir/$nvra
13         ;;
14    esac
15 done
16 touch $mydir
This page took 0.02132 seconds and 3 git commands to generate.