diff options
author | sem <sem@FreeBSD.org> | 2008-02-01 01:12:32 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2008-02-01 01:12:32 +0800 |
commit | 9bcbe954ef25e847157f955837f641285079dce9 (patch) | |
tree | 73ae5859fdd53a5b0662204f16f8497af1af356f /ports-mgmt/portupgrade-devel | |
parent | 98b5891bde7b0cb528ad2fc8375f64c9ce5c1e3b (diff) | |
download | freebsd-ports-graphics-9bcbe954ef25e847157f955837f641285079dce9.tar.gz freebsd-ports-graphics-9bcbe954ef25e847157f955837f641285079dce9.tar.zst freebsd-ports-graphics-9bcbe954ef25e847157f955837f641285079dce9.zip |
A work around for HOLD_PKGS that did not work.
Noted by: NAKAJI Hiroyuki
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r-- | ports-mgmt/portupgrade-devel/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/portupgrade-devel/files/patch-bin-portupgrade | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index 443efc54414..263afc46177 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= portupgrade-devel PORTVERSION= 2.4.1 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= portupgrade diff --git a/ports-mgmt/portupgrade-devel/files/patch-bin-portupgrade b/ports-mgmt/portupgrade-devel/files/patch-bin-portupgrade new file mode 100644 index 00000000000..e95699d7880 --- /dev/null +++ b/ports-mgmt/portupgrade-devel/files/patch-bin-portupgrade @@ -0,0 +1,33 @@ +--- bin/portupgrade.orig 2008-01-31 19:14:25.000000000 +0300 ++++ bin/portupgrade 2008-01-31 19:14:32.000000000 +0300 +@@ -620,11 +620,20 @@ + origin = $pkgdb.origin(task) + if !origin.nil? + begin ++ if config_held?(task) ++ STDERR.puts "#{task} is in HOLD_PKG. Ignored." ++ $results << PkgResult.new(origin, :ignored, "is in HOLD_PKG") ++ not_need_upgrade << task ++ next ++ end ++ + name = get_pkgname(origin) + rescue IgnoreMarkError => e + $results << PkgResult.new(origin, :ignored, e.message) + not_need_upgrade << task + next ++ rescue PortDirError => e ++ #STDERR.puts "No port dir for #{task}" + end + name =~ /^(.+)-([^-]+)$/ + newversion = PkgVersion.new($2) +@@ -640,6 +649,9 @@ + upgrade_tasks |= depends + end + install_tasks |= get_notinstalled_depends(origin) ++ else ++ # There is no origin for some reason ++ not_need_upgrade << task + end + end + upgrade_tasks -= not_need_upgrade |