2 # skip if no rpm(1) or touch(1)
3 [ -x /bin/rpm -a -x /bin/touch ] || exit 0
9 mkdir -p $mydir || exit 0
12 buf=$(rpm --nodigest --nosignature -qa --qf '%{name}-%{version}-%{release}.%{arch} %{installtime:date}\n')
13 echo "$buf" | while read nvra idate; do
18 touch -d "$idate" "$mydir/$nvra"