diff options
author | Robby Workman <rworkman@slackware.com> | 2019-07-15 15:03:55 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-07-15 15:07:23 -0500 |
commit | 69f7c9103ddb410e6f37d8037adf933d31e0e744 (patch) | |
tree | a22a02043b8a5f70a7af16bce793c7bd3a62875e /files | |
parent | 406a3cbed392c3803906f351226187ec5a537916 (diff) | |
download | slackpkg-69f7c9103ddb410e6f37d8037adf933d31e0e744.tar.xz |
install-new: catch packages added to /patches after -stable release
Thanks to blizzack on ##slackware for the report, and thanks to
Skydroid and alienBOB for debugging assistance.
Diffstat (limited to 'files')
-rw-r--r-- | files/install-new.awk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/files/install-new.awk b/files/install-new.awk index d2fd4ee..9b59f40 100644 --- a/files/install-new.awk +++ b/files/install-new.awk @@ -18,6 +18,26 @@ print $0 } +/^patches\/packages\/([a-zA-Z0-9_\+.\-]+):.* ([Aa]dded|[Ss]plit|[Rr]enamed|[Mm]oved|[Nn]ame [Cc]hange|NAME CHANGE|[Ss]witched).*/ { + INPUT=$1 + fs=FS + FS="/" ; OFS="/" + $0=INPUT + FULLPACK=$NF + FS="-" ; OFS="-" + $0=FULLPACK + if ( NF > 3 ) { + NF=NF-3 + } else { + FS=":" ; OFS=":" + $0=$0 + $0=$1 + } + FS=fs + CONTINUE=no + print $0 +} + /^(a|ap|d|e|f|k|kde|kdei|l|mac|n|t|tcl|x|xap|xfce|y)\/([a-zA-Z0-9_\+.\-]+): *$/ { INPUT=$1 fs=FS |