aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-07-30 07:41:19 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-07-30 07:41:19 +0800
commit19f7362703b0fc318450ee1c63eab8a11fc64a06 (patch)
tree1854e058ddd09f62f056bebfd7021c79589dfa1b /ports-mgmt
parentccd6b1db39fe5f5e129fac6e64d7507bec0d2da2 (diff)
downloadfreebsd-ports-gnome-19f7362703b0fc318450ee1c63eab8a11fc64a06.tar.gz
freebsd-ports-gnome-19f7362703b0fc318450ee1c63eab8a11fc64a06.tar.zst
freebsd-ports-gnome-19f7362703b0fc318450ee1c63eab8a11fc64a06.zip
Quick fix for pkg-1.3 delete handling. It now requires -f to not automatically
recurse.
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portupgrade/Makefile2
-rw-r--r--ports-mgmt/portupgrade/files/patch-bin__pkg_glob10
2 files changed, 11 insertions, 1 deletions
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile
index 2869fb3bfe0e..3ce03fca5bc9 100644
--- a/ports-mgmt/portupgrade/Makefile
+++ b/ports-mgmt/portupgrade/Makefile
@@ -3,7 +3,7 @@
PORTNAME= portupgrade
PORTVERSION= 2.4.12
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= ports-mgmt
MASTER_SITES= SF/portupgrade/pkgtools/dist/ \
diff --git a/ports-mgmt/portupgrade/files/patch-bin__pkg_glob b/ports-mgmt/portupgrade/files/patch-bin__pkg_glob
new file mode 100644
index 000000000000..2dbce9aca7f8
--- /dev/null
+++ b/ports-mgmt/portupgrade/files/patch-bin__pkg_glob
@@ -0,0 +1,10 @@
+--- ./bin/pkg_glob.orig 2014-07-29 18:39:52.706051787 -0500
++++ ./bin/pkg_glob 2014-07-29 18:40:31.759049595 -0500
+@@ -415,6 +415,7 @@
+ return true if $noexecute
+
+ if $pkgdb.with_pkgng?
++ $pkg_delete_args.push '-f'
+ cmdargs = [PkgDB::command(:pkg), 'delete', *$pkg_delete_args] << pkgname
+ else
+ cmdargs = [PkgDB::command(:pkg_delete), *$pkg_delete_args] << pkgname