Lines 1-5
Link Here
|
1 |
--- libMGPM/src/MGPMrUpdate.c.orig Wed Dec 14 13:23:59 2005 |
1 |
--- libMGPM/src/MGPMrUpdate.c.orig Wed Dec 14 13:23:59 2005 |
2 |
+++ libMGPM/src/MGPMrUpdate.c Fri Dec 8 17:24:30 2006 |
2 |
+++ libMGPM/src/MGPMrUpdate.c Mon Feb 5 12:50:13 2007 |
3 |
@@ -60,6 +60,7 @@ |
3 |
@@ -60,6 +60,7 @@ |
4 |
char* stopPortDirPtr = NULL; |
4 |
char* stopPortDirPtr = NULL; |
5 |
char* strikePtr = NULL; |
5 |
char* strikePtr = NULL; |
Lines 21-26
Link Here
|
21 |
localProperty.CURDIR = calloc( MAXSTRINGSIZE, 1 ); |
21 |
localProperty.CURDIR = calloc( MAXSTRINGSIZE, 1 ); |
22 |
localProperty.afterOptionsFileSize = calloc( MAXSTRINGSIZE, 1 ); |
22 |
localProperty.afterOptionsFileSize = calloc( MAXSTRINGSIZE, 1 ); |
23 |
localProperty.afterOptionsFileTime = calloc( MAXSTRINGSIZE, 1 ); |
23 |
localProperty.afterOptionsFileTime = calloc( MAXSTRINGSIZE, 1 ); |
|
|
24 |
@@ -110,7 +105,7 @@ |
25 |
property->installedPortsDb = MGdbOpen( property->installedPortsDbFileName ); |
26 |
property->strikesDb = MGdbOpen( property->strikesDbFileName ); |
27 |
|
28 |
- if( ( strcmp( "/sysutils/portmanager", oldPortDir ) == 0 || strcmp( "/local/sysutils/portmanager", oldPortDir ) == 0 ) && property->forced ) |
29 |
+ if( ( strcmp( "/ports-mgmt/portmanager", oldPortDir ) == 0 || strcmp( "/local/ports-mgmt/portmanager", oldPortDir ) == 0 ) && property->forced ) |
30 |
{ |
31 |
fprintf( stdout, "ignoring portmanager, will not self update in forced mode by design\n" ); |
32 |
while( fflush( stdout ) ); |
24 |
@@ -122,30 +117,6 @@ |
33 |
@@ -122,30 +117,6 @@ |
25 |
return( 0 ); |
34 |
return( 0 ); |
26 |
} |
35 |
} |
Lines 316-321
Link Here
|
316 |
/************************************************************************/ |
325 |
/************************************************************************/ |
317 |
/* Command "10" pkg_create -b */ |
326 |
/* Command "10" pkg_create -b */ |
318 |
/************************************************************************/ |
327 |
/************************************************************************/ |
|
|
328 |
@@ -1113,12 +1046,12 @@ |
329 |
/* |
330 |
* inforced mass update mode portmanager CANNOT loose its databases |
331 |
*/ |
332 |
- if( ( strcmp( oldPortDir, "/sysutils/portmanager" ) == 0 || strcmp( oldPortDir, "/local/sysutils/portmanager" ) == 0 ) && |
333 |
+ if( ( strcmp( oldPortDir, "/ports-mgmt/portmanager" ) == 0 || strcmp( oldPortDir, "/local/ports-mgmt/portmanager" ) == 0 ) && |
334 |
property->pmMode == SINGLE ) |
335 |
{ |
336 |
MGmStrcpy( localProperty.command, "cd " ); |
337 |
MGmStrcat( localProperty.command, PORTSDIR ); |
338 |
- MGmStrcat( localProperty.command, "/sysutils/portmanager; " ); |
339 |
+ MGmStrcat( localProperty.command, "/ports-mgmt/portmanager; " ); |
340 |
MGmStrcat( localProperty.command, "make -V PKG_DBDIR" ); |
341 |
pHandle = popen( localProperty.command, "r" ); |
342 |
localProperty.buffer[0] = 0; |
343 |
@@ -1146,7 +1079,7 @@ |
344 |
/* |
345 |
* have to do this here before db's are wacked |
346 |
*/ |
347 |
- if( ( strcmp( oldPortDir, "/sysutils/portmanager" ) == 0 || strcmp( oldPortDir, "/local/sysutils/portmanager" ) == 0 ) && |
348 |
+ if( ( strcmp( oldPortDir, "/ports-mgmt/portmanager" ) == 0 || strcmp( oldPortDir, "/local/ports-mgmt/portmanager" ) == 0 ) && |
349 |
property->pmMode == MULTI ) |
350 |
{ |
351 |
/* |
319 |
@@ -1266,7 +1199,7 @@ |
352 |
@@ -1266,7 +1199,7 @@ |
320 |
MGmStrcat(localProperty.command, TEMPDIR); |
353 |
MGmStrcat(localProperty.command, TEMPDIR); |
321 |
MGmStrcat(localProperty.command, "/"); |
354 |
MGmStrcat(localProperty.command, "/"); |
Lines 334-349
Link Here
|
334 |
fprintf( stdout, "%s\n", SINGLE_LINES ); |
367 |
fprintf( stdout, "%s\n", SINGLE_LINES ); |
335 |
fprintf( stderr, "deleting backup copy, installation of updated %s successful\n", oldPortDir ); |
368 |
fprintf( stderr, "deleting backup copy, installation of updated %s successful\n", oldPortDir ); |
336 |
fprintf( stdout, "%s %s localProperty.command: #12 of 14 %s\n", id, PACKAGE_VERSION, localProperty.command ); |
369 |
fprintf( stdout, "%s %s localProperty.command: #12 of 14 %s\n", id, PACKAGE_VERSION, localProperty.command ); |
337 |
@@ -1555,12 +1488,6 @@ |
370 |
@@ -1414,7 +1347,7 @@ |
338 |
MGdbDestroy( property->ignoreDb ); |
371 |
/* |
|
|
372 |
* if portmanager updated there won't be any databases, so need to clean the old fashoned way |
373 |
*/ |
374 |
- if( ( strcmp( oldPortDir, "/sysutils/portmanager" ) == 0 || strcmp( oldPortDir, "/local/sysutils/portmanager" ) == 0 ) && |
375 |
+ if( ( strcmp( oldPortDir, "/ports-mgmt/portmanager" ) == 0 || strcmp( oldPortDir, "/local/ports-mgmt/portmanager" ) == 0 ) && |
376 |
property->pmMode == MULTI ) |
377 |
{ |
378 |
rCleanDir( oldPortDir, localProperty.workDir ); |
379 |
@@ -1460,7 +1393,7 @@ |
380 |
/* |
381 |
* portmanager auto restart after updating itself |
382 |
*/ |
383 |
- if( ( strcmp( oldPortDir, "/sysutils/portmanager" ) == 0 || strcmp( oldPortDir, "/local/sysutils/portmanager" ) == 0 ) && |
384 |
+ if( ( strcmp( oldPortDir, "/ports-mgmt/portmanager" ) == 0 || strcmp( oldPortDir, "/local/ports-mgmt/portmanager" ) == 0 ) && |
385 |
property->pmMode == MULTI ) |
386 |
{ |
387 |
/* |
388 |
@@ -1556,12 +1489,6 @@ |
339 |
MGdbDestroy( property->installedPortsDb ); |
389 |
MGdbDestroy( property->installedPortsDb ); |
340 |
MGdbDestroy( property->strikesDb ); |
390 |
MGdbDestroy( property->strikesDb ); |
341 |
- |
391 |
|
342 |
- |
392 |
- |
343 |
- free( localProperty->environment[0] ); |
393 |
- free( localProperty->environment[0] ); |
344 |
- free( localProperty->environment[1] ); |
394 |
- free( localProperty->environment[1] ); |
345 |
- free( localProperty->environment[2] ); |
395 |
- free( localProperty->environment[2] ); |
346 |
- free( localProperty->environment ); |
396 |
- free( localProperty->environment ); |
347 |
|
397 |
- |
348 |
free( localProperty->CURDIR ); |
398 |
free( localProperty->CURDIR ); |
349 |
free( localProperty->afterOptionsFileSize ); |
399 |
free( localProperty->afterOptionsFileSize ); |
|
|
400 |
free( localProperty->afterOptionsFileTime ); |
401 |
@@ -1655,7 +1582,7 @@ |
402 |
*/ |
403 |
MGmStrcpy( localProperty->command, "cd " ); |
404 |
MGmStrcat( localProperty->command, PORTSDIR ); |
405 |
- MGmStrcat( localProperty->command, "/sysutils/portmanager; make -V PKGNAME" ); |
406 |
+ MGmStrcat( localProperty->command, "/ports-mgmt/portmanager; make -V PKGNAME" ); |
407 |
pHandle = popen( localProperty->command, "r" ); |
408 |
localProperty->buffer[0] = 0; |
409 |
fread( localProperty->buffer, MAXBUFFERSIZE - 1, 1, pHandle ); |
410 |
@@ -1693,7 +1620,7 @@ |
411 |
*/ |
412 |
MGmStrcpy( localProperty->command, "cd " ); |
413 |
MGmStrcat( localProperty->command, PORTSDIR ); |
414 |
- MGmStrcat( localProperty->command, "/sysutils/portmanager; make -V PKGNAME" ); |
415 |
+ MGmStrcat( localProperty->command, "/ports-mgmt/portmanager; make -V PKGNAME" ); |
416 |
pHandle = popen( localProperty->command, "r" ); |
417 |
localProperty->buffer[0] = 0; |
418 |
fread( localProperty->buffer, MAXBUFFERSIZE - 1, 1, pHandle ); |
419 |
@@ -1737,7 +1664,7 @@ |
420 |
*/ |
421 |
MGmStrcpy( localProperty->command, "cd " ); |
422 |
MGmStrcat( localProperty->command, PORTSDIR ); |
423 |
- MGmStrcat( localProperty->command, "/sysutils/portmanager; make -V PORTMANAGER" ); |
424 |
+ MGmStrcat( localProperty->command, "/ports-mgmt/portmanager; make -V PORTMANAGER" ); |
425 |
pHandle = popen( localProperty->command, "r" ); |
426 |
localProperty->buffer[0] = 0; |
427 |
fread( localProperty->buffer, MAXBUFFERSIZE - 1, 1, pHandle ); |