Tweak updating db when PKGget starts
Forum member tigerflag reported an issue when start PKGget from the menu:
https://forum.puppylinux.com/viewtopic.php?p=163664#p163664
No, it makes no difference whether start PKGget from the "pkg" desktop icon or the menu "Setup" section.
The first time that you run PKGget, it will update the package database, and will create a flag file /tmp/petget/pkg-db-updated-flg, so next time that you run PKGget in the same session, it will start the PKGget GUI immediately without updating the database.
There is one little thing wrong with the logic though. If you start PKGget and there is no Internet connection, the file /tmp/petget/pkg-db-updated-flg still gets created, even though unable to update the database.
I have edited /usr/local/petget/pkg_chooser.sh and
/usr/local/petget/update_dbs.sh to fix this. File
/tmp/petget/pkg-db-updated-flg will only get created if there is a
successful db update.
Tags: easy