All pastes #71673 Raw Edit

Untitled

public text v1 · immutable
#71673 ·published 2006-06-26 00:49 UTC
rendered paste body
#!/bin/sh

set +x

# Local suse tree
LocalTree="/mnt/hdb1/opensuse/suse/iso/10.1"

# Local Rsync dir
RsyncLocal="/mnt/hdb1/opensuse/suse/update/10.1"

cd "$RsyncLocal/rpm"
for d in *; do
    if [ -d $d ]; then
        cd "$RsyncLocal/rpm/$d"
        find *.rpm ! -name "*$d.*" | 
            while read a; do basename $a .rpm |
                while read aa; do 
                    find $LocalTree/suse/$d/* -name $aa.*\.$d\.rpm | 
                        while read bb; do 
                            echo $bb
                        done
                done
            done
    fi
done
echo