site  contact  subhomenews

Bad packages found

April 02, 2009 — BarryK
It was after midnight when I made various comments to the previous blog post. Had a sleep, now up, it's 7.30am and I've had a cup of coffee. Wrote a little script to find out what packages have been modified yet their package-names not changed since 4.1.2. It's a crude script, just sums the file sizes, but does the job:

#!/bin/sh


export LANG=C
OLDPETS="`ls -1 pet-packages-4.1.2 | tr '\n' ' '`"

for ONEOLD in $OLDPETS
do
if [ -f pet-packages-4.2.0/$ONEOLD ];then
#echo -n "Comparing $ONEOLD"
NAMEONLY="`basename $ONEOLD .pet`"
STATOLD=0
STATNEW=0
rm -rf sandboxold 2>/dev/null
rm -rf sandboxnew 2>/dev/null
mkdir sandboxold
mkdir sandboxnew
cp pet-packages-4.1.2/$ONEOLD sandboxold/
cp pet-packages-4.2.0/$ONEOLD sandboxnew/
cd sandboxold
pet2tgz $ONEOLD
tar -zxf $NAMEONLY.tar.gz
rm -f $NAMEONLY.tar.gz
cd ..
cd sandboxnew
pet2tgz $ONEOLD
tar -zxf $NAMEONLY.tar.gz
rm -f $NAMEONLY.tar.gz
cd ..
for ONEFILE in `find sandboxold -type f | tr '\n' ' '`
do
STAT=`stat --format=%s $ONEFILE`
STATOLD=`expr $STATOLD + $STAT`
done
for ONEFILE in `find sandboxnew -type f | tr '\n' ' '`
do
STAT=`stat --format=%s $ONEFILE`
STATNEW=`expr $STATNEW + $STAT`
done
[ $STATOLD -ne $STATNEW ] && echo "$ONEOLD HAS CHANGED!"
fi
done

rm -rf sandboxold
rm -rf sandboxnew


Note, I couldn't do a simple md5sum comparison of the pet packages, as they would be different even though the files inside are unchanged. The reason is that the pet packages were generated from the package directories, and each time this is done the resulting package has a different md5sum even though the package hasn't actually changed. Probably something to do with access-dates on the files.

And this is the result:

jwm2-2.0.1-9.pet HAS CHANGED!
kbd-1.12-1.pet HAS CHANGED!
pcdripper-3.7.pet HAS CHANGED!
rubix-1.03.pet HAS CHANGED!
squashfs-tools-3.3.pet HAS CHANGED!
syslinux-3.63.pet HAS CHANGED!
udev-124-1.pet HAS CHANGED!
xfprot-1.23.pet HAS CHANGED!

Leave it all to Uncle Barry now, I'll rename these and re-upload the correct pet packages to ibiblio. Today also I'll fix the Unleashed core tarball and will create the 'devx' file and upload those.

Comments

Thanks
Username: Raffy
Thanks, Uncle Barry. :D This is time well spent for demonstrating the intricacies of Puppy's unleashed system (that you created).


Tags: puppy