head	1.1;
access;
symbols
	rpm-4_4_8-release:1.1.2.1
	rpm-4_4_7-release:1.1.2.1
	rpm-4_4:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2006.09.26.12.24.23;	author jbj;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2006.09.26.12.24.23;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.1
log
@file hrmib was initially added on branch rpm-4_4.
@
text
@@


1.1.2.1
log
@Script to populate /var/cache/hrmib.
@
text
@a0 19
#!/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
ls -alrt $mydir

@

