From ac4ec2756c7c712754e2fc50ff19521ec5ab8895 Mon Sep 17 00:00:00 2001 From: garga Date: Fri, 29 Jul 2005 16:34:48 +0000 Subject: Pass full path to pkg_{add,info} invoked from portupgrade. PR: ports/84278 Submitted by: KOMATSU Shinichiro (maintainer) --- sysutils/portupgrade-devel/Makefile | 2 +- .../portupgrade-devel/files/patch-bin-portupgrade | 22 ++++++++++++++++++++++ sysutils/portupgrade/Makefile | 2 +- sysutils/portupgrade/files/patch-bin-portupgrade | 22 ++++++++++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 sysutils/portupgrade-devel/files/patch-bin-portupgrade create mode 100644 sysutils/portupgrade/files/patch-bin-portupgrade (limited to 'sysutils') diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile index 7a99dd0ae24f..60f879d2c7c9 100644 --- a/sysutils/portupgrade-devel/Makefile +++ b/sysutils/portupgrade-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 20041226 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \ ${MASTER_SITE_LOCAL} diff --git a/sysutils/portupgrade-devel/files/patch-bin-portupgrade b/sysutils/portupgrade-devel/files/patch-bin-portupgrade new file mode 100644 index 000000000000..063d81beee94 --- /dev/null +++ b/sysutils/portupgrade-devel/files/patch-bin-portupgrade @@ -0,0 +1,22 @@ +Index: bin/portupgrade +=================================================================== +--- bin/portupgrade (revision 34) ++++ bin/portupgrade (revision 36) +@@ -1560,7 +1560,7 @@ + + timer_start(time_key = "Installation of #{pkgname}") + +- cmdargs = [PkgDB::command(:pkg_add), '-f', pkgname] ++ cmdargs = [PkgDB::command(:pkg_add), '-f', pkgfile] + + progress_message "Installing the new version via the package" + +@@ -1705,7 +1705,7 @@ + id_pkgname, id_origin, pkgdep = identify_pkg(file) + + if id_origin == origin +- pkglist << [PkgInfo.new(id_pkgname), file] ++ pkglist << [PkgInfo.new(id_pkgname), File.join(dir, file)] + end + } + } diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile index 7a99dd0ae24f..60f879d2c7c9 100644 --- a/sysutils/portupgrade/Makefile +++ b/sysutils/portupgrade/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 20041226 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \ ${MASTER_SITE_LOCAL} diff --git a/sysutils/portupgrade/files/patch-bin-portupgrade b/sysutils/portupgrade/files/patch-bin-portupgrade new file mode 100644 index 000000000000..063d81beee94 --- /dev/null +++ b/sysutils/portupgrade/files/patch-bin-portupgrade @@ -0,0 +1,22 @@ +Index: bin/portupgrade +=================================================================== +--- bin/portupgrade (revision 34) ++++ bin/portupgrade (revision 36) +@@ -1560,7 +1560,7 @@ + + timer_start(time_key = "Installation of #{pkgname}") + +- cmdargs = [PkgDB::command(:pkg_add), '-f', pkgname] ++ cmdargs = [PkgDB::command(:pkg_add), '-f', pkgfile] + + progress_message "Installing the new version via the package" + +@@ -1705,7 +1705,7 @@ + id_pkgname, id_origin, pkgdep = identify_pkg(file) + + if id_origin == origin +- pkglist << [PkgInfo.new(id_pkgname), file] ++ pkglist << [PkgInfo.new(id_pkgname), File.join(dir, file)] + end + } + } -- cgit