Happy New Year everyone!
Thanks for all the feedback.. I'll catch up with the previous posts soon - I've had a look,
not sure what to do about those errors for now.. Will get them sorted at some point.
And thanks for the build script Keef - that's great.. I hope many of our good compiler ppl (like yourself) start sharing more build scripts in the new year!
-----------------------------------------
On another note, I've updated the `pkg repo-update` command..
It is much better now.
Improvements:
* can now update all supported third-party repo types (Debian/Ubuntu, PPA, Slackware, and now Pkg-created repos)
* can now update ALL supported repos types without any user input
* now supports the --ask option
(asks before updating each third-party repo)
* much, much nicer output - more standardised across repos, more readable
* fixes in creation of fallback repo lists (the repos to fall back to when getting deps) for user-added repos
* the `pkg add-repo` command inherits a few of these fixes, but is largely unchanged (and still works as usual)
Example output of `pkg repo-update`:
Code: Select all
# pkg repo-update
Updating system repositories, please wait..
Repo files updated:
Packages-debian-stretch-main
Packages-debian-stretch-non-free
Packages-debian-stretch-contrib
Packages-debian-stretch-multimedia
Packages-debian-stretch_updates-main
Packages-debian-stretch_updates-non-free
Packages-debian-stretch_updates-contrib
Updating third-party repos.. This may take a while..
Processing: http://smokey01.com/sc0ttman/stretch-7.5/gfx/
Please wait...
Success: Updated repo 'stretch-sc0ttman-gfx'
Processing: http://repo.steampowered.com/steam/ precise steam
Please wait...
Success: Updated repo 'precise-steam'
Processing: ppa:team-xbmc/ppa ubuntu bionic
Please wait...
Success: Updated repo 'bionic-teamxbmc'
Processing: https://rlworkman.net/pkgs/14.2/
Please wait...
Success: Updated repo 'rlworkman-14.2'
The scripts slack2pup and ppa2pup have some small improvement in them too:
* only ask for repo name (etc) if adding a new repo, else get its info from Pkg sources files
* speedup: slack2pup now uses Ash not Bash (ppa2pup will do too, soon)
* nicer output, more readable
...TLDR
* You can now do `pkg repo-update` to update ALL supported repos, without any more input...
* Or, you can do `pkg repo-update --ask` and Pkg will ask before updating each repo
For help, you can also run:
pkg usage repo-update
which gives:
Code: Select all
Usage: pkg repo-update|ru [--ask]
Download and update the latest repo files from their online
sources to get the latest packages available.
This command updates all system (built-in) repos, and any third-party
(user-added) repos as well.
With --ask you will be asked to confirm before each
third-party repo is updated.
MORE INFO:
Pkg will look in the following files for system (built-in) repos:
/root/.pkg/sources <-- lists ALL SUPPORTED system repos
/root/.pkg/sources-all <-- lists AVAILABLE system repos
(Pkg uses the script '/usr/local/petget/0setup' to update the system repos.)
Pkg will then look in the following files for third-party (user-added) repos:
/root/.pkg/sources-user <-- Pkg-created repos (created using 'dir2repo' command)
/etc/slackpkg/mirrors <-- Slackware repos
/etc/apt/sources.list <-- Apt repos (Ubuntu, Debian or PPA repos)
/root/.pkg/sources <-- lists the repo names, repo files, etc