Sorry for posting here, more updates came out on dCore-jessie today helped me find a bug in new DEBINX diff. DEBINX doesn't keep a uniform format throughout, so last weekend's grep testing worked with this format, but didn't capture all DEBINX data unfortunately.
Package: 0ad
Installed-Size: 9700
Depends: 0ad-data , 0ad-data , 0ad-data-common , 0ad-data-common , libboost-filesystem1.55.0, libc6 , libcurl3-gnutls , libenet7, libgcc1 , libgl1-mesa-glx | libgl1, libgloox12, libicu52 , libjpeg62-turbo , libminiupnpc10 , libmozjs-24-0, libnvtt2, libopenal1 , libpng12-0 , libsdl1.2debian , libstdc++6 , libvorbisfile3 , libwxbase3.0-0 , libwxgtk3.0-0 , libx11-6, libxcursor1 , libxml2 , zlib1g
Filename: pool/main/0/0ad/0ad_0.0.17-1_i386.deb
Size: 2838756
MD5sum: 47f9f448490623194647262d2a0f6243
...as the DEBINX also has lots of these entries at the bottom:
midori: b02713f85b579033d836432e93dac16b
openbox: fc81a6233002989d9a539fda88e057da
python-minimal: 28cd80c3fe790316583a1d3c1170ce3f
xfce4: 8407272ea0fb442718436657292c1126
xtrlock: 4f77bf4d10b6d350128eeef18f8541d8
So it's good that a DEBINX diff now isn't created until a user wants to see it, makes sce-update -a faster for those that don't want to view it, the diff doesn't catch all. Here's what works, as before if anyone has any grep ideas please enlighten, thanks.
sce-update:
else
echo " "
echo "Press Enter to proceed with update(s), (v)iew DEBINX diff, Ctrl-C aborts,"
echo -n "to view diff use page up/down or spacebar and enter (q)uit when done: "
read ans
echo " "
if [ "$ans" == "v" ] || [ "$ans" == "V" ]; then
echo "Obtaining diff of new and old package data..."
#cat OLDDEBINX | grep -E 'Package|MD5sum' > /tmp/OLDDEBINXDIFF
#cat NEWDEBINX | grep -E 'Package|MD5sum' > /tmp/NEWDEBINXDIFF
diff "$DEBINXDIR"/OLDDEBINX "$DEBINXDIR"/NEWDEBINX > /tmp/debinx.diff
#diff /tmp/OLDDEBINXDIFF /tmp/NEWDEBINXDIFF > /tmp/debinx.diff
less /tmp/debinx.diff
#rm /tmp/OLDDEBINXDIFF
#rm /tmp/NEWDEBINXDIFF
rm /tmp/debinx.diff
echo " "
echo -n "Do you wish to proceed with updates, enter (y)es or (n)o: "
read ans
echo " "
if [ "$ans" == "y" ] || [ "$ans" == "Y" ]; then
:
else
echo "Exiting.."
exit 0
fi
fi
fi
..with DEBINXDIR added at top of script, sorry about that:
#!/bin/sh
# (c) Jason Williams 2014
# Tool to update SCE extensions in bulk.
. /etc/init.d/tc-functions
checknotroot
SCEDIR="/etc/sysconfig/tcedir/sce"
DEBINXDIR="/etc/sysconfig/tcedir/import/debinx"