3 # skip if no rpm(1) or touch(1)
4 [ -x /bin/rpm -a -x /bin/touch ] || return
11 echo >&2 "Populating $mydir with initial contents"
12 mkdir -p $mydir || return
15 buf=$(rpm --nodigest --nosignature -qa 'gpg*' --qf '%{N}-%{V}-%{R}%|ARCH?{.%{ARCH}}| %{INSTALLTIME:date}\n')
16 echo "$buf" | while read nvra idate; do
17 touch -d "$idate" "$mydir/$nvra"