finduserinstalledpkgs.sh 1.2 KB

123456789101112131415161718192021
  1. #!/bin/sh
  2. #(c) Copyright Barry Kauler 2009, puppylinux.com
  3. #2009 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html).
  4. #called from /usr/local/petget/pkg_chooser.sh (actually, from ui_Classic and ui_Ziggy, which are embedded in pkg_chooser.sh)
  5. #find all pkgs that have been user-installed, format for display.
  6. #120813 no longer using /var/local/petget/flg_appicons
  7. #120908 fix for icons (derived from Category field #5 in db).
  8. #/root/.packages/usr-installed-packages has the list of installed pkgs...
  9. touch /root/.packages/user-installed-packages
  10. cut -f 1,5,10 -d '|' /root/.packages/user-installed-packages > /tmp/petget/installedpkgs.results
  11. #120529 may have app icons displayed in main window...
  12. cut -f 1,3 -d '|' /tmp/petget/installedpkgs.results > /tmp/petget/installedpkgs.results.post-noicons #120908
  13. #120908 category field: Document;edit becomes mini-Document-edit... (see also postfilterpkgs.sh)
  14. sed -e 's%|%|mini-%' -e 's%;%-%' /tmp/petget/installedpkgs.results > /tmp/petget/installedpkgs.results.post
  15. #120908 probably doesn't matter, but take icon out for prior compatibility...
  16. cp -f /tmp/petget/installedpkgs.results.post-noicons /tmp/petget/installedpkgs.results
  17. ###END###