1. 19 Jan, 2020 2 commits
    • Scott J's avatar
      Merge branch 'feature/plugin-system' into 'master' · f3c34856
      Scott J authored
      Feature/plugin system
      
      See merge request !28
      f3c34856
    • Scott J's avatar
      Added plugin system: · 92476a33
      Scott J authored
      All supported hooks (so far) are:
      
        init
        pre_install
        post_install
        pre_uninstall
        post_uninstall
        pre_build
        post_build
        exit
      
      Three example plugins added:
      
      * post_install/wings3d/00_install_missing_deps.sh
         - installs needed deps that PPM/Pkg don't pick up by default
      
      * post_install/gimp/50_install_plugins.sh
         - only runs if `--ask` was given, asks to install gimp plugins
      
      * post_install/00_fix_deb_packages.sh
         - runs only when a `.deb` package is installed.. does nothing, just an example
      92476a33
  2. 12 Jan, 2020 1 commit
  3. 11 Jan, 2020 1 commit
  4. 02 Jan, 2020 1 commit
  5. 01 Jan, 2020 6 commits
  6. 22 Dec, 2019 5 commits
  7. 21 Dec, 2019 5 commits
  8. 20 Dec, 2019 2 commits
    • Scott J's avatar
      Merge branch 'fixes/cleanups' into 'master' · 503e7923
      Scott J authored
      503e7923
    • Scott J's avatar
      Merge branch 'fixes/cleanups' into 'master' · 8c91292d
      Scott J authored
      Code clean ups, makes various funcs easier to work on...
      
      Also includes a few (small) speed ups, and some bug fixes.
      
      - fixes `pkg_uninstall()` failure to get dependent packages
      - fixes in `get_pkg_filename`: return 1 package name or nothing
      - fix: run post install stuff in a sub shell
      - fix issues ( think!):
        - 87 (suppress errors regression)
        - 90 (search local *.files first in `is_installed_pkg()`
        - 89 (weak repo name matching in `get_dep_entry`)
      - (minor) speedups in package/dep name resolution, is installed or not
      - re-organised code in various functions:
        - clearer logic and ordering
        - moved code out of `if` blocks where possible, less indentation
        - removed unnecessary code
      
      See merge request !19
      8c91292d
  9. 15 Dec, 2019 2 commits
    • Scott J's avatar
      ## Shellcheck fixes · fdbc8bd5
      Scott J authored
      This PR has lots of fixes based on running `shellcheck` on Pkg:
      
      ```
      shellcheck --color=always --exclude=SC2086,SC1090,SC1091,SC2155,SC2002,SC2162,SC2006 /usr/sbin/pkg | less
      ``` 
      
      Add and remove the SC stuff as needed when fixing different things...
      
      ### Fixes in this PR:
      
      - fixes in getting package information:
        - package installed or not
        - package repo 
        - package contents
        - package filename (new function `get_pkg_filename`, respects repo fallback order)
        - package versions
      - slightly better error checking
        - should be a little bit more reliable
      - faster search commands: `pkg s <term>`, `pkg sa <term>`, `pkg ss <term>`, `pkg ssa <term>`
      - faster installation and uninstallation of packages
      - `pkg what-needs <pkgname>` now much better (faster and more accurate)
        - therefore `pkg rm <pkgname` will be much faster
      - fixed output for `pkg PS <pkgname>` (nicely align all deps, not only first 10 lines)
      
      ## Other changes
      
      - fixed various code errors/typos
      - fewer sub-shells, a little bit faster
      - removed some old code 
      - simplified some code
      - cleaned up long lines, made them < 80 chars
      
      ## TODO 
      
      - fix `pkg_update`, still not reporting final versions quite right
        - it's kind of respecting fall back order, and also not ..
      
      ## In a future PR
      
      Go through again and reduce number of sub-shells, but _keep the code simple_ - no exotic, unreadable stuff.
      
      See merge request !18
      fdbc8bd5
    • Scott J's avatar
      Merge branch 'fixes/shellcheck' into 'master' · 0a3bd2c7
      Scott J authored
      0a3bd2c7
  10. 08 Dec, 2019 1 commit
  11. 07 Dec, 2019 4 commits
    • Scott J's avatar
      Merge changes from github.com/puppylinux-woof-CE/Pkg: · 0b7da188
      Scott J authored
      - updated to 1.9.23
      - updated /etc/pkg/sources-all and ~/.pkg/sources-all
        - removed outdated repos
        - fixed some slackware related repo entries
      - updated PKG_NAME_ALIASES
      - updated repo-update routines:
        - support for newer 0setup
        - ADDED: backwards compatibility with older 0setup versions
      - fixes in Gpkgdialog
      - removed outdated buildpet build scripts
      - improvements to package tarball unpacking/installation
      - use latest SFS Loader and download_file scripts
      - remove multi-arch symlink stuff
        - this change potentially breaks Pkg in most Puppies
          built before Decemeber 2019
      - various code clean ups
      
      See merge request !15
      0b7da188
    • Scott J's avatar
      Merge changes from github.com/puppylinux-woof-CE/Pkg: · cd53ed4e
      Scott J authored
      - updated to 1.9.23
      - updated /etc/pkg/sources-all and ~/.pkg/sources-all
        - removed outdated repos
        - fixed some slackware related repo entries
      - updated PKG_NAME_ALIASES
      - updated repo-update routines:
        - support for newer 0setup
        - ADDED: backwards compatibility with older 0setup versions
      - fixes in Gpkgdialog
      - removed outdated buildpet build scripts
      - improvements to package tarball unpacking/installation
      - use latest SFS Loader and download_file scripts
      - remove multi-arch symlink stuff
        - this change potentially breaks Pkg in most Puppies
          built before Decemeber 2019
      - various code clean ups
      cd53ed4e
    • Scott J's avatar
      ## Improved Blacklisting: · 0cd9918b
      Scott J authored
      - fixed: respect black list in `pkg_uninstall()` and `pkg_update()`
      - new: new blacklist file at `~/.pkg/blacklisted_packages`
        - must contain package names (name only, no versions, eg 'gimp'), one on each line
      - new: created a `PKG_BLACKLIST` env var:
        - it's value is the combined contents of `~/.pkg/blacklisted_packages` and `$PKG_NAME_IGNORE`
      - new: added commands `pkg blacklist <pkgname>` and `pkg whitelist <pkgname>`
      - updated: faster to check if package is in blaclist 
      - updated help and usage info
      
      ## Fixes:
      
      - small clean up in `get_pkg()`
      - check if `DISTRO_TARGETARCH` is ARM, set `DBINARCH`, etc (needs more work)
      - strip arch from filenames (fixes getting proper pkg names)
        - lots of funcs will benefit from these fixes:
          - will improve matching of relevant packages
          - will improve filtering, sorting, removing duplicates
      - fix pkg merge (fix getting list of deps, no duplicates)
      
      
      See merge request !3
      0cd9918b
    • Scott J's avatar
      tiny spacing fixes · 0525f3a0
      Scott J authored
      0525f3a0
  12. 04 Dec, 2019 8 commits
  13. 03 Dec, 2019 2 commits