summaryrefslogtreecommitdiffstats
path: root/files/core-functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* More blacklisting fixups (see full commit msg)Dave Woodfall2021-02-201-15/+22
| | | | | | | | | | | Merge server and local lists in subshell. Filter once. This takes the server and local package lists, sorts, applies blacklist, sorts again to make a large list of package names in blacklist. Use internal printf rather than external ls to build local list. Also pass local package list to blacklist
* Escape plus signs in blacklist regexDave Woodfall2021-02-161-1/+1
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Convert ${ROOT}/${WORKDIR} > ${WORKDIR}Dave Woodfall2021-02-161-33/+33
| | | | | | | All ${WORKDIR} == old ${ROOT}/${WORKDIR} Set ${CONF} depending on ${ROOT} Signed-off-by: Robby Workman <rworkman@slackware.com>
* Convert ${ROOT}/${CONF} -> ${CONF} and tweak blacklistsDave Woodfall2021-02-131-9/+7
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Further fixup/enhancement to blacklisting issuesRobby Workman2021-02-111-5/+0
|
* Fixup internal blacklist handling, i.e. see remainder of commitDave Woodfall2021-02-111-12/+33
| | | | | | | | This creates a blacklist of package names from regexp in original file (/etc/slackpkg/blacklist) and uses the precreated list for later comparison Signed-off-by: Robby Workman <rworkman@slackware.com>
* Use ERE for sanity_check() functionDave Woodfall2021-02-111-1/+2
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Allow new-config after slackpkg upgrade itselfpiterpunk2021-02-081-0/+1
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Do not allow adding blacklist packages from slackpkg execRobby Workman2021-02-041-21/+7
| | | | | | | As of slackpkg shipped with Slackware 15.0, it is no longer supported to add packages to /etc/slackpkg/blacklist using the slackpkg executable; this should only be done with an editor pointing at /etc/slackpkg/blacklist
* Add 'download' to options in usage() ; remove dupes from manpagePeter Hyman2021-02-041-1/+1
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Add support for Slackware-AArch64Stuart Winter2021-01-181-0/+5
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Add show-changelog option and update manpagePeter Hyman2021-01-041-1/+2
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Changes to checkchangelog functionPeter Hyman2021-01-041-28/+18
| | | | | | | | | | * Modify checkchangelog() function to only check CHECKSUMS.md5.asc. * Remove unneeded check of ChangeLog.txt from checkchangelog() function. * Move fetching of ChangeLog.txt to updatefilelists() function. * Modify check-updates to output need to update to stderr so cron jobs will notify sysadmin. Signed-off-by: Robby Workman <rworkman@slackware.com>
* core-functions.sh: Replace tempfile with mktempRobby Workman2020-07-301-1/+1
| | | | Thanks to I.G.O.R. on LQ for the suggestion and reminder.
* Revert "More fixups for alternate ROOT ; thanks to zerouno."Robby Workman2020-02-261-4/+4
| | | | | | | | | This reverts commit fcc58ff5068146ab016c2f897bc14d4482f4a9cd because it breaks lxc container creation; ponce stated on LQ that "seems that forcing $CONF under $ROOT is what break things here: $CONF in the template is used to have a temporary location, outside of the container, in which to store the template, a blacklist and a mirror configuration for the container creation"
* More fixups for alternate ROOT ; thanks to zerouno.Robby Workman2020-02-191-4/+4
|
* Remove subshell usage and save a trivial amount of timeRobby Workman2019-01-161-1/+2
|
* Catch errors and return exit status 1 if they occurRobby Workman2019-01-161-1/+3
| | | | Thanks to mcandre on LQ for the suggestion.
* Fixup blacklist checking and appending when using alt $ROOTRobby Workman2019-01-141-2/+2
| | | | Thanks to dive for the report.
* Fix support for package sets (try #2)Dave Woodfall2018-12-301-3/+6
| | | | | | | | | This adds ./$PKGMAIN/ to a blacklisted set line, which ought to say turn kde/ into ./slackware64/kde as it listed in the temp pkglist. I've tightened up the patches/pasture/extra etc. lines too. Signed-off-by: Robby Workman <rworkman@slackware.com>
* Fix support for blacklisting entire package setsDave Woodfall2018-12-301-2/+10
| | | | | | | | | | Blacklisted sets now need a trailing / (eg. kde/) Anything with a trailing slash is excluded from having \s added to it. Then the slash is removed so the set is picked up by the old functionality. Signed-off-by: Robby Workman <rworkman@slackware.com>
* Fix (hopefully) blacklisting of specific packagesDave Woodfall2018-11-221-2/+5
| | | | | | | | | | | | | | In short, it seems impossible to blacklist some packages without catching other undesirable packages. As an example, blacklisting glibc will also catch glibc-zoneinfo (and the other glibc-*) packages. It would be good to have the ability to blacklist only the glibc package without it catching the others. With this change, if sysadmin wants the blacklist to be "greedy," then adding "glibc.*" to the blacklist will do that. Reported-by: Peter Hyman <pete@peterhyman.com> Signed-off-by: Robby Workman <rworkman@slackware.com>
* Minor grammatical fixupRobby Workman2018-11-201-1/+1
| | | | Thanks to Gerard Lally on LQ.
* Mention possible stale mirror if CHECKSUMS.md5 gpg verify failsslackpkg-2.83.0-noarch-4.txzRobby Workman2018-09-051-1/+4
| | | | Signed-off-by: Robby Workman <rworkman@slackware.com>
* Fix for /var/log/packages/ possibly being a symlink to elsewhereRobby Workman2018-06-071-6/+6
|
* Use CHECKSUMS.md5.asc to determine ChangeLog newnessPatrick J. Volkerding2018-06-071-0/+27
| | | | | | Thanks to drgibbon on LQ for the suggestion. Signed-off-by: Robby Workman <rworkman@slackware.com>
* Make sure user knows that the warning about -current only shows onceRobby Workman2018-01-061-0/+5
|
* core-functions.sh: Warn (first time) if -current mirror is selectedDidier Spaier2018-01-061-7/+25
| | | | Require confirmation the first time a -current mirror is selected.
* Add $ROOT to $WORKDIR, $TEMP, and $TMPDIR instancesRobby Workman2018-01-021-30/+30
| | | | | | | | This *should* have no effect if $ROOT is blank Files modified: files/core-functions.sh files/slackpkg
* core-functions.sh: Fix Slackware ARM gpg keyRobby Workman2018-01-021-1/+1
|
* core-functions.sh: Create $WORKDIR before using itRobby Workman2017-12-301-0/+3
| | | | | | This should never be an issue on a properly installed system (assuming slackpkg is installed on the system), but it doesn't hurt anything either to be safe.
* *: Initial commit of slackpkg (as of 2.82.2 release)2.82.2Robby Workman2017-10-221-0/+1351