Commit graph

133 commits

Author SHA1 Message Date
Dave Woodfall
919b08049e Fix break error messages. 2021-04-05 06:47:51 +00:00
Dave Woodfall
af7d21a99e Remove now pointless if/then/else 2021-04-05 05:17:43 +00:00
Dave Woodfall
969f650ff1 Safer config sourcing.
Guards against accidents/typos in the config.
2021-04-05 05:10:23 +00:00
Robby Workman
88bb400532 files/slackpkg: replace #!/bin/sh with #!/bin/bash
From Eugen Wissner:
/usr/sbin/slackpkg claims to be a /bin/sh script, but it is not, since
it contains bashisms (bash arrays in the configuration, bash functions).
2021-04-04 23:42:01 -05:00
Dave Woodfall
9cd55c9ae2 Don't create blacklist when running update. 2021-04-04 22:17:52 -05:00
Dave Woodfall
a1dd8f3f53 Add show-changelog & help to non-root commands 2021-03-31 14:42:04 +00:00
Dave Woodfall
3d99ab68d3 Improve search blacklisting. 2021-03-20 18:56:53 +00:00
Robby Workman
05e40b5d2f Re-release slackpkg-15.0.1 (no package generated yet anyway) 2021-03-14 10:17:42 -05:00
Dave Woodfall
14566ba1b0 Modifiy blacklist regex line ending. 2021-03-14 10:16:29 -05:00
Robby Workman
eb897955e9 Release slackpkg-15.0.1 2021-03-12 21:30:55 -06:00
Robby Workman
c0a4ea8dbe Tweak default blacklist file's help text (thanks, dive) 2021-03-12 21:29:46 -06:00
Robby Workman
b53d9d7499 Fix display of blacklisted packages 2021-03-12 21:29:46 -06:00
Robby Workman
34c2bfbdea Tweaks to slack-desc 2021-03-12 20:08:15 -06:00
Robby Workman
dd9527b5fa Note that kernel-headers should not be blacklisted 2021-03-12 20:06:08 -06:00
Robby Workman
ee16fce251 Added Lithuania mirrors (thanks to Totoro-kun on LQ) 2021-03-12 20:01:57 -06:00
Dave Woodfall
0080f0810d Fix exit code for pending updates. 2021-03-12 19:48:41 -06:00
Robby Workman
2a9a6b25b3 Update ChangeLog 2021-03-09 22:20:59 -06:00
Dave Woodfall
844b3a5424 Avoid matching txz/tgz etc extension when blacklisting.
Make blacklist file a full package name regex.
Replace redundant 'print $0 } else { print $0' in cutpkg.awk.
Fix formatting on 'blacklist or ignore' message.
2021-03-06 08:01:53 +00:00
Robby Workman
90b86d84fe Use https for all slackpkg homepage links 2021-03-02 20:24:16 -06:00
Robby Workman
5c9d020467 Update mirror files (14.2 -> 15.0)
This also comments out the default mirror.
2021-03-02 20:21:21 -06:00
Dave Woodfall
85c9f01361 Add blacklist to search option.
This avoid matching against the last field in pkglist - txz, tgz
which prints multiple false positives with 'slackpkg search xz' etc.
2021-02-25 01:25:42 +00:00
Dave Woodfall
a96e181033 Move applyblacklist to end of makelist()
Change -E to -F in applyblacklist()
Remove '>' prompt in answer()
2021-02-24 23:14:18 +00:00
Dave Woodfall
19c9fc0d9b new-config dialog
One extra prompt at end to stop file list flying off top of screen.
Calculate lines in K/O/R/P prompt before printing it, and use it to
work out screen MAXROWS etc.
2021-02-23 01:04:47 +00:00
Robby Workman
fe99f902eb Clarify how to blacklist duplicate packages 2021-02-22 01:32:38 -06:00
Robby Workman
f238a0c96c Update files/ChangeLog with latest changes 2021-02-21 01:54:15 -06:00
Dave Woodfall
2cd5131e83 Fix new-config dialog 2021-02-20 23:51:59 -06:00
Dave Woodfall
612b6553ae Reduce false positives in DOUBLEFILES detection
Add extra formatting for search/doublefiles
2021-02-20 23:51:30 -06:00
Dave Woodfall
7faebfbdb1 Remove spaces in awk. 2021-02-20 23:49:50 -06:00
Dave Woodfall
07df0b6304 More blacklisting fixups (see full commit msg)
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
2021-02-20 23:48:51 -06:00
Robby Workman
304154f86c Update ChangeLog with dive's latest commits 2021-02-16 22:27:53 -06:00
Dave Woodfall
0a37c5eee7 Escape plus signs in blacklist regex
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-16 22:27:25 -06:00
Dave Woodfall
f20d83a658 Convert ${ROOT}/${WORKDIR} > ${WORKDIR}
All ${WORKDIR} == old ${ROOT}/${WORKDIR}
Set ${CONF} depending on ${ROOT}

Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-16 22:20:06 -06:00
Robby Workman
a7ca09c6c9 Update ChangeLog to reflect previous commit 2021-02-13 16:36:51 -06:00
Dave Woodfall
4b07c4226c Convert ${ROOT}/${CONF} -> ${CONF} and tweak blacklists
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-13 16:34:49 -06:00
Robby Workman
d8e4736aa4 Update ChangeLog and prep for release 2021-02-12 23:45:15 -06:00
Robby Workman
9c2719ff0f Further fixup/enhancement to blacklisting issues 2021-02-11 19:06:31 -06:00
Robby Workman
0635933b1e Fix "slackpkg blacklist" so that it shows blacklist again 2021-02-11 17:59:44 -06:00
Dave Woodfall
3ea13bebcb Fixup internal blacklist handling, i.e. see remainder of commit
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>
2021-02-11 17:10:25 -06:00
Dave Woodfall
f87bf1bf68 Use ERE for sanity_check() function
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-11 17:01:03 -06:00
Robby Workman
d9f835b61a Remove "slackpkg blacklist" from manual pages 2021-02-10 06:18:23 -06:00
Stuart Winter
31cbbbb734 Fix aaa_elflibs --> aaa_libraries in sample blacklist file
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-10 06:05:27 -06:00
Stuart Winter
2c37581b16 Split aarch64 and arm mirrors into separate files
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-09 22:08:23 -06:00
piterpunk
5edf86dceb Allow new-config after slackpkg upgrade itself
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-08 16:51:23 -06:00
Robby Workman
bb6e763eb7 Release slackpkg-15.0
We decided to jump from 2.83.x straight to 15.0 to match the
version of Slackware for which it's intended: 15.0
That's not to imply that this version of slackpkg won't work
just fine with earlier Slackware releases: it should; however,
you definitely want this version of slackpkg for Slackware 15.0
2021-02-04 19:52:35 -06:00
Robby Workman
1f96b540f0 Set fileversion of slackpkg.conf to "v15.0" 2021-02-04 19:52:33 -06:00
Robby Workman
b0f1bdb485 Do not allow adding blacklist packages from slackpkg exec
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
2021-02-04 19:52:21 -06:00
Peter Hyman
a9e490297b Add 'download' to options in usage() ; remove dupes from manpage
Signed-off-by: Robby Workman <rworkman@slackware.com>
2021-02-04 19:52:18 -06:00
Robby Workman
e0f7de556d Add aaa_glibc-solibs and aaa_libraries to early routine 2021-02-04 19:52:16 -06:00
Robby Workman
521234d68f Release 2.84.0_beta12 2021-01-18 18:30:08 -06:00
Robby Workman
418a422c17 Change mirrors from ftp to http or https
Also omit "pub/" from mirror.slackbuilds.org links
2021-01-18 18:29:19 -06:00