/usr/bin/new2dir has a function called fixfilelistfunc
always called as
fixfilelistfunc "$ONEFILE"
it can be sped up significantly by replacing those with something along the lines of:
Code: Select all
sed -i "/$ONEFILE/d" /tmp/${EXE_PKGNAME}.files
Note: You may need to quote it differently, I haven't tested it yet (dia package is still going through files after an hour), but wanted to post it before I forget.
Edit: it should also remove any occurance of
/usr/share/icons/*/icon-theme
and add a line to the pinstall script along the lines of
echo gtk-update-icon-cache `dirname "$ONEFILE"` >> /pathto/pinstall
(but I think? pinstall needs the leading "/" removed for woof?)
this saves ~500kb for each pet that has icons in /usr/share/icons
... alternatively petget could automagically run it if a package contains any files in /usr/share/icons since this would fix other packages that may have been packaged with an icon cache that overwrites the existing one which may have additional icons or be missing some that are in the icon.cache file (may cause a fault if gtk thinks there is an icon that is missing but was on the packagers machine)