Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # LN# 510 to 530 of /usr/local/petget/installpkg (tahrpup) - http://www.pearltrees.com/s243a/installpkg-sh-usr-local-petget/id20402080/item224131607
- #w465 <pkgname>.pet.specs is in older pet pkgs, just dump it...
- #maybe a '$APKGNAME.pet.specs' file created by dir2pet script...
- rm -f /*.pet.specs 2>/dev/null
- #...note, this has a setting to prevent .files and entry in user-installed-packages, so install not registered.
- #add entry to /root/.packages/user-installed-packages...
- #w465 a pet pkg may have /pet.specs which has a db entry...
- if [ -f /pet.specs -a -s /pet.specs ];then #w482 ignore zero-byte file.
- DB_ENTRY="`cat /pet.specs | head -n 1`"
- rm -f /pet.specs
- else
- [ -f /pet.specs ] && rm -f /pet.specs #w482 remove zero-byte file.
- dlPATTERN='|'"`echo -n "$DLPKG_BASE" | sed -e 's%\\-%\\\\-%'`"'|'
- DB_ENTRY="`cat /tmp/petget_missing_dbentries-Packages-* | grep "$dlPATTERN" | head -n 1`"
- fi
- ##+++2011-12-27 KRG check if $DLPKG_BASE matches DB_ENTRY 1 so uninstallation works :Ooops:
- db_pkg_name=`echo "$DB_ENTRY" |cut -f 1 -d '|'`
- if [ "$db_pkg_name" != "$DLPKG_NAME" ];then
- DB_ENTRY=`echo "$DB_ENTRY" |sed "s#$db_pkg_name#$DLPKG_NAME#"`
- fi
- ##+++2011-12-27 KRG
Advertisement
Add Comment
Please, Sign In to add comment