pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/sysupgrade sysupgrade: PKGREVISION->5, handle...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/36298f329b85
branches:  trunk
changeset: 440584:36298f329b85
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Oct 13 00:50:08 2020 +0000

description:
sysupgrade: PKGREVISION->5, handle ARCHIVE_EXTENSION also in sysupgrade clean

>From Sunil Nimmagadda in PR pkg/55713

diffstat:

 sysutils/sysupgrade/Makefile                    |   4 ++--
 sysutils/sysupgrade/distinfo                    |   4 ++--
 sysutils/sysupgrade/patches/patch-sysupgrade.sh |  16 +++++++++++++++-
 3 files changed, 19 insertions(+), 5 deletions(-)

diffs (55 lines):

diff -r 65964fcd69b9 -r 36298f329b85 sysutils/sysupgrade/Makefile
--- a/sysutils/sysupgrade/Makefile      Tue Oct 13 00:34:26 2020 +0000
+++ b/sysutils/sysupgrade/Makefile      Tue Oct 13 00:50:08 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2019/06/03 20:35:55 triaxx Exp $
+# $NetBSD: Makefile,v 1.15 2020/10/13 00:50:08 maya Exp $
 
 DISTNAME=      sysupgrade-1.5
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jmmv/}
 MAINTAINER=    jmmv%NetBSD.org@localhost
diff -r 65964fcd69b9 -r 36298f329b85 sysutils/sysupgrade/distinfo
--- a/sysutils/sysupgrade/distinfo      Tue Oct 13 00:34:26 2020 +0000
+++ b/sysutils/sysupgrade/distinfo      Tue Oct 13 00:50:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2019/06/06 16:30:13 triaxx Exp $
+$NetBSD: distinfo,v 1.6 2020/10/13 00:50:08 maya Exp $
 
 SHA1 (sysupgrade-1.5.tar.gz) = 3141ee4728d6d3b680ed04f552369031bb3b3b09
 RMD160 (sysupgrade-1.5.tar.gz) = 5b1d7c6d45643f2f03bff1df16739a6751d0ceda
@@ -6,4 +6,4 @@
 Size (sysupgrade-1.5.tar.gz) = 75833 bytes
 SHA1 (patch-default.conf) = ff367ebbdc56e1009a57a8bd254c424033257726
 SHA1 (patch-sysupgrade.conf.5.in) = dfe5d90d0360212ea052f2e25a26820ad277480b
-SHA1 (patch-sysupgrade.sh) = e84a8ea01fca16734206a864b0a51f38c27489a8
+SHA1 (patch-sysupgrade.sh) = cf37304667dcadf043b707f9a4436a963f4bdfff
diff -r 65964fcd69b9 -r 36298f329b85 sysutils/sysupgrade/patches/patch-sysupgrade.sh
--- a/sysutils/sysupgrade/patches/patch-sysupgrade.sh   Tue Oct 13 00:34:26 2020 +0000
+++ b/sysutils/sysupgrade/patches/patch-sysupgrade.sh   Tue Oct 13 00:50:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-sysupgrade.sh,v 1.3 2019/06/06 16:30:13 triaxx Exp $
+$NetBSD: patch-sysupgrade.sh,v 1.4 2020/10/13 00:50:08 maya Exp $
 
 * Don't reject https in sysupgrade_fetch()
 * Add ARCHIVE_EXTENSION variable (Fix PR pkg/53697)
@@ -133,3 +133,17 @@
      done
  
      shtk_cli_info "Performing postinstall checks"
+@@ -409,10 +426,12 @@ sysupgrade_postinstall() {
+ 
+ # Cleans up the cache directory.
+ sysupgrade_clean() {
++    local arch_ext="$(shtk_config_get ARCHIVE_EXTENSION)"
++
+     [ ${#} -eq 0 ] || shtk_cli_usage_error "clean does not take any arguments"
+ 
+     shtk_cli_info "Cleaning downloaded files"
+-    rm -f "$(shtk_config_get CACHEDIR)"/*.*gz*
++    rm -f "$(shtk_config_get CACHEDIR)"/*.${arch_ext}*
+ }
+ 
+ 



Home | Main Index | Thread Index | Old Index