diff options
author | mnag <mnag@FreeBSD.org> | 2005-11-28 04:28:16 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-11-28 04:28:16 +0800 |
commit | 3c82e98669c40f38fb4c3ff76f71cbf1f5014bae (patch) | |
tree | 6b201c279d89fae1e2633632a1b55b365fd48250 /ports-mgmt | |
parent | 1e57f210d1054938e837506ffca8193c73b8e50a (diff) | |
download | freebsd-ports-gnome-3c82e98669c40f38fb4c3ff76f71cbf1f5014bae.tar.gz freebsd-ports-gnome-3c82e98669c40f38fb4c3ff76f71cbf1f5014bae.tar.zst freebsd-ports-gnome-3c82e98669c40f38fb4c3ff76f71cbf1f5014bae.zip |
Update to 0.3.9_3
- Fixes bug where if run with -f switch when portmanager updates itsself goes into endless loop.
Thanks to Gerard Seibert for helping to track this one down!
PR: 89609
Submitted by: Michael C. Shultz <ringworm01@gmail.com> (maintainer)
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portmanager/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portmanager/files/patch-0.3.9_3 | 58 |
2 files changed, 59 insertions, 1 deletions
diff --git a/ports-mgmt/portmanager/Makefile b/ports-mgmt/portmanager/Makefile index 0c8ce0469d85..1a67fdd4cba1 100644 --- a/ports-mgmt/portmanager/Makefile +++ b/ports-mgmt/portmanager/Makefile @@ -7,7 +7,7 @@ PORTNAME= portmanager PORTVERSION= 0.3.9 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= http://portmanager.sunsite.dk/distfiles/ \ ${MASTER_SITE_SOURCEFORGE} diff --git a/ports-mgmt/portmanager/files/patch-0.3.9_3 b/ports-mgmt/portmanager/files/patch-0.3.9_3 new file mode 100644 index 000000000000..f3ede5905ee9 --- /dev/null +++ b/ports-mgmt/portmanager/files/patch-0.3.9_3 @@ -0,0 +1,58 @@ +diff -ruN ../0.3.9_2/libMGPM/src/MGPMrUpdate.c ./libMGPM/src/MGPMrUpdate.c +--- ../0.3.9_2/libMGPM/src/MGPMrUpdate.c Sat Nov 26 04:48:47 2005 ++++ ./libMGPM/src/MGPMrUpdate.c Sat Nov 26 13:43:36 2005 +@@ -78,16 +78,6 @@ + int installedPortsDbQTY = 0; + + structLocalProperty localProperty; +-/* +-fprintf( stdout, "%s debug: oldPortDir-=>%s\n", id, oldPortDir ); +-while( fflush( stdout ) ); +-*/ +- if( ( strcmp( "/sysutils/portmanager", oldPortDir ) == 0 || strcmp( "/local/sysutils/portmanager", oldPortDir ) == 0 ) && property->forced ) +- { +- fprintf( stdout, "skipping portmanager, will not self update in forced mode by design\n" ); +- while( fflush( stdout ) ); +- return( 0 ); +- } + + property->optionsChanged = 0; + +@@ -118,6 +108,19 @@ + property->installedPortsDb = MGdbOpen( property->installedPortsDbFileName ); + property->strikesDb = MGdbOpen( property->strikesDbFileName ); + ++ ++ if( ( strcmp( "/sysutils/portmanager", oldPortDir ) == 0 || strcmp( "/local/sysutils/portmanager", oldPortDir ) == 0 ) && property->forced ) ++ { ++ fprintf( stdout, "ignoring portmanager, will not self update in forced mode by design\n" ); ++ MGPMlogAdd( property, "ignoring portmanager ", "will not self update in forced mode by design", ++ oldPortDir, "added to ignore.db", " " ); ++ ++ MGdbAdd( property->ignoreDb, oldPortDir, "skipping portmanager, will not self update in forced mode by design\n", NULL ); ++ while( fflush( stdout ) ); ++ rCleanUp( property, &localProperty ); ++ return( 0 ); ++ } ++ + /* + * test for bsd.ports.mk patch + */ +@@ -418,16 +421,7 @@ + * options changed so need to purge oldPortDir's records + * from availablePortsDb and availableDependenciesDb + */ +- if( property->log ) +- { +- strcpy( localProperty.command, "echo \" options changed so returning " ); +- strcat( localProperty.command, oldPortName ); +- strcat( localProperty.command, " " ); +- strcat( localProperty.command, oldPortDir ); +- strcat( localProperty.command, " to out of date pool " ); +- strcat( localProperty.command, " \">> /var/log/portmanager.log" ); +- system( localProperty.command ); +- } ++ MGPMlogAdd( property, "options changed so returning ", oldPortName, oldPortDir, " to out of date pool ", " " ); + property->optionsChanged = 1; + MGdbGoTop( property->availablePortsDb ); + while( MGdbSeek( property->availablePortsDb, |