#!/bin/sh

pushd /mnt/disk1/new/20051004/files/
cd i386/RPMS/
for i in `ls -1`;do
    echo "Proccesing... $i"
    LANG=C rpm -K $i | grep -v 'md5 gpg OK' >> ~/altlinux/checks/new/i386_bad_sign
done
cd ../../i686/RPMS/
for i in `ls -1`;do
    echo "Proccesing... $i"
    LANG=C rpm -K $i | grep -v 'md5 gpg OK' >> ~/altlinux/checks/new/i686_bad_sign
done
cd ../../i586/RPMS/
for i in `ls -1`;do
    echo "Proccesing... $i"
    LANG=C rpm -K $i | grep -v 'md5 gpg OK' >> ~/altlinux/checks/new/i586_bad_sign
done
cd ../../noarch/RPMS/
for i in `ls -1`;do
    echo "Proccesing... $i"
    LANG=C rpm -K $i | grep -v 'md5 gpg OK' >> ~/altlinux/checks/new/noarch_bad_sign
done
cd ../../
popd
