portage.git
18 years agoMigrate old digest-* code in portage.fetch() to be Manifest2 compatible.
Zac Medico [Tue, 2 May 2006 06:22:19 +0000 (06:22 -0000)]
Migrate old digest-* code in portage.fetch() to be Manifest2 compatible.

svn path=/main/trunk/; revision=3304

18 years agofix a typo from the last revision
Zac Medico [Tue, 2 May 2006 06:11:35 +0000 (06:11 -0000)]
fix a typo from the last revision

svn path=/main/trunk/; revision=3303

18 years agoProperly join CUSTOM_MIRRORS_FILE with PORTAGE_CONFIG_ROOT in portage.fetch().
Zac Medico [Tue, 2 May 2006 06:10:10 +0000 (06:10 -0000)]
Properly join CUSTOM_MIRRORS_FILE with PORTAGE_CONFIG_ROOT in portage.fetch().

svn path=/main/trunk/; revision=3302

18 years agoRemove an extra aux_get call in doebuild and combine it with another aux_get call...
Zac Medico [Tue, 2 May 2006 05:09:23 +0000 (05:09 -0000)]
Remove an extra aux_get call in doebuild and combine it with another aux_get call in doebuild_environment.

svn path=/main/trunk/; revision=3301

18 years agodon't let profile.env overwrite variables that are already set; bug 130229
Simon Stelling [Mon, 1 May 2006 22:41:19 +0000 (22:41 -0000)]
don't let profile.env overwrite variables that are already set; bug 130229

svn path=/main/trunk/; revision=3300

18 years agoAdd a new sqlite cache module (one I wrote) that has acceptable performance.
Zac Medico [Mon, 1 May 2006 22:13:13 +0000 (22:13 -0000)]
Add a new sqlite cache module (one I wrote) that has acceptable performance.

svn path=/main/trunk/; revision=3299

18 years agoRemove sqlite.py because it's performance is unacceptable and it is therefore useless.
Zac Medico [Mon, 1 May 2006 21:54:15 +0000 (21:54 -0000)]
Remove sqlite.py because it's performance is unacceptable and it is therefore useless.

svn path=/main/trunk/; revision=3298

18 years agoreplace hardcoded /usr/lib/portage/bin with PORTAGE_BIN_PATH, defaulting to the hardc...
Simon Stelling [Mon, 1 May 2006 21:33:34 +0000 (21:33 -0000)]
replace hardcoded /usr/lib/portage/bin with PORTAGE_BIN_PATH, defaulting to the hardcoded value

svn path=/main/trunk/; revision=3297

18 years agomake portage shut up if --quiet is given; bug 62273
Simon Stelling [Mon, 1 May 2006 21:12:04 +0000 (21:12 -0000)]
make portage shut up if --quiet is given; bug 62273

svn path=/main/trunk/; revision=3296

18 years agorevert my last commit except for the parts i really wanted to commit
Simon Stelling [Mon, 1 May 2006 18:51:48 +0000 (18:51 -0000)]
revert my last commit except for the parts i really wanted to commit

svn path=/main/trunk/; revision=3295

18 years agoallow escaping in elog_base() to fix bug 131913
Simon Stelling [Mon, 1 May 2006 18:34:37 +0000 (18:34 -0000)]
allow escaping in elog_base() to fix bug 131913

svn path=/main/trunk/; revision=3294

18 years agoDon't skip regenerate() because leads to 'Problem resolving dependencies' from emerge...
Zac Medico [Mon, 1 May 2006 10:09:22 +0000 (10:09 -0000)]
Don't skip regenerate() because leads to 'Problem resolving dependencies' from emerge.  Thanks to swegener for reporting.

svn path=/main/trunk/; revision=3293

18 years agoMake sure that emerge really removes noauto from FEATURES for bug #131820.
Zac Medico [Mon, 1 May 2006 07:29:28 +0000 (07:29 -0000)]
Make sure that emerge really removes noauto from FEATURES for bug #131820.

svn path=/main/trunk/; revision=3292

18 years agoInitial PORTAGE_CONFIGROOT support in the portage.config class for bug #73350.
Zac Medico [Mon, 1 May 2006 04:25:36 +0000 (04:25 -0000)]
Initial PORTAGE_CONFIGROOT support in the portage.config class for bug #73350.

svn path=/main/trunk/; revision=3291

18 years agoAdd cfg-update to the list of happy config file managers.
Alec Warner [Sun, 30 Apr 2006 16:06:08 +0000 (16:06 -0000)]
Add cfg-update to the list of happy config file managers.

svn path=/main/trunk/; revision=3290

18 years ago- People have started RESTRICTing "stricter", which we would like to discourage....
Ned Ludd [Sun, 30 Apr 2006 14:17:49 +0000 (14:17 -0000)]
- People have started RESTRICTing "stricter", which we would like to discourage. bug 131779 (kevquinn)

svn path=/main/trunk/; revision=3289

18 years ago- be sure to remove o+w bits on debug files
Ned Ludd [Sun, 30 Apr 2006 14:16:37 +0000 (14:16 -0000)]
- be sure to remove o+w bits on debug files

svn path=/main/trunk/; revision=3288

18 years agoPass a vartree instance into portage.unmerge() to avoid globals.
Zac Medico [Sun, 30 Apr 2006 11:57:19 +0000 (11:57 -0000)]
Pass a vartree instance into portage.unmerge() to avoid globals.

svn path=/main/trunk/; revision=3286

18 years agoHandle the doebuild's unmerge phase before setting up logfile because unmerge doesn...
Zac Medico [Sun, 30 Apr 2006 11:43:54 +0000 (11:43 -0000)]
Handle the doebuild's unmerge phase before setting up logfile because unmerge doesn't use the log.

svn path=/main/trunk/; revision=3285

18 years agoAvoid global db usage in doebuild() except when absolutely necessary.
Zac Medico [Sun, 30 Apr 2006 11:38:03 +0000 (11:38 -0000)]
Avoid global db usage in doebuild() except when absolutely necessary.

svn path=/main/trunk/; revision=3284

18 years agoUpdate portage config update messages to mention dispatch-conf (in addition to etc...
Zac Medico [Sun, 30 Apr 2006 11:00:58 +0000 (11:00 -0000)]
Update portage config update messages to mention dispatch-conf (in addition to etc-update).  Thanks to genstef for reporting this.

svn path=/main/trunk/; revision=3283

18 years agoPrint disfiles file names for bug #131774. I've removed the [ OK ] from okaymsg...
Zac Medico [Sun, 30 Apr 2006 09:08:50 +0000 (09:08 -0000)]
Print disfiles file names for bug #131774.  I've removed the [ OK ] from okaymsg because the wink makes it redundant.

svn path=/main/trunk/; revision=3282

18 years agoretain important historical aspects of the checksum messages
Mike Frysinger [Sun, 30 Apr 2006 08:39:53 +0000 (08:39 -0000)]
retain important historical aspects of the checksum messages

svn path=/main/trunk/; revision=3281

18 years agoAdd PORTAGE_BIN_PATH and PORTAGE_PYM_PATH to the enviroment and use them to replace...
Zac Medico [Sun, 30 Apr 2006 08:38:20 +0000 (08:38 -0000)]
Add PORTAGE_BIN_PATH and PORTAGE_PYM_PATH to the enviroment and use them to replace hard coded paths in ebuild.sh and misc-functions.sh.

svn path=/main/trunk/; revision=3280

18 years agoPrint [ OK ] messages (like eend) when checksums are good. Thanks to fox2mike for...
Zac Medico [Sun, 30 Apr 2006 08:02:20 +0000 (08:02 -0000)]
Print [ OK ] messages (like eend) when checksums are good.  Thanks to fox2mike for suggesting this.

svn path=/main/trunk/; revision=3279

18 years agoRemove 4 year old cvs sync code, fix login around spawn, fix random raise v2.1_pre10
Alec Warner [Sat, 29 Apr 2006 16:49:27 +0000 (16:49 -0000)]
Remove 4 year old cvs sync code, fix login around spawn, fix random raise

svn path=/main/trunk/; revision=3275

18 years agoRemove all usage of the portage.root global from portage.py.
Zac Medico [Sat, 29 Apr 2006 11:58:20 +0000 (11:58 -0000)]
Remove all usage of the portage.root global from portage.py.

svn path=/main/trunk/; revision=3274

18 years agoAdd a portage.config.selinux_enabled() accessor and use it to remove all global usage...
Zac Medico [Sat, 29 Apr 2006 11:41:15 +0000 (11:41 -0000)]
Add a portage.config.selinux_enabled() accessor and use it to remove all global usage of portage.selinux_enabled.

svn path=/main/trunk/; revision=3273

18 years agoPrevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not...
Zac Medico [Sat, 29 Apr 2006 10:33:32 +0000 (10:33 -0000)]
Prevent a NameError in commit_mtimedb() when the portage.mtimedb attribute does not exist.

svn path=/main/trunk/; revision=3272

18 years agoMove the legacy global initializations into a function and allow them to be disabled...
Zac Medico [Sat, 29 Apr 2006 10:16:20 +0000 (10:16 -0000)]
Move the legacy global initializations into a function and allow them to be disabled via an experimental PORTAGE_LEGACY_GLOBALS environment variable.

svn path=/main/trunk/; revision=3271

18 years agoPass mtimes through doebuild(), into dblink.merge(), and finally to env_update().
Zac Medico [Sat, 29 Apr 2006 08:53:43 +0000 (08:53 -0000)]
Pass mtimes through doebuild(), into dblink.merge(), and finally to env_update().

svn path=/main/trunk/; revision=3270

18 years agoReturn early from portage.commit_mtimedb() when mtimedb is None.
Zac Medico [Sat, 29 Apr 2006 08:11:40 +0000 (08:11 -0000)]
Return early from portage.commit_mtimedb() when mtimedb is None.

svn path=/main/trunk/; revision=3269

18 years agoEnable portage.commit_mtimedb() to work without globals.
Zac Medico [Sat, 29 Apr 2006 08:04:30 +0000 (08:04 -0000)]
Enable portage.commit_mtimedb() to work without globals.

svn path=/main/trunk/; revision=3268

18 years agoEnable portage.pkgmerge() to work without globals.
Zac Medico [Sat, 29 Apr 2006 05:12:12 +0000 (05:12 -0000)]
Enable portage.pkgmerge() to work without globals.

svn path=/main/trunk/; revision=3267

18 years agoEnable portage.dep_zapdeps() to work without globals.
Zac Medico [Sat, 29 Apr 2006 04:47:14 +0000 (04:47 -0000)]
Enable portage.dep_zapdeps() to work without globals.

svn path=/main/trunk/; revision=3266

18 years agoEnable portage.env_update() to work without globals.
Zac Medico [Sat, 29 Apr 2006 02:42:21 +0000 (02:42 -0000)]
Enable portage.env_update() to work without globals.

svn path=/main/trunk/; revision=3265

18 years agoIn the clean phase, for maximum chflags portablility, make *unlnk flags optional...
Zac Medico [Sat, 29 Apr 2006 01:09:59 +0000 (01:09 -0000)]
In the clean phase, for maximum chflags portablility, make *unlnk flags optional and drop the USERLAND test (bug #113536).

svn path=/main/trunk/; revision=3264

18 years agoCatch Permission Denied errors during manifest/digest generation for bug #131073.
Zac Medico [Sat, 29 Apr 2006 00:40:43 +0000 (00:40 -0000)]
Catch Permission Denied errors during manifest/digest generation for bug #131073.

svn path=/main/trunk/; revision=3263

18 years agoFix PORTAGE_GPG_DIR handling so that ~/.gnupg/ works correctly like the Manifest...
Zac Medico [Fri, 28 Apr 2006 23:22:44 +0000 (23:22 -0000)]
Fix PORTAGE_GPG_DIR handling so that ~/.gnupg/ works correctly like the Manifest Signing Guide says it should.  Thanks to Tupone for reporting.

svn path=/main/trunk/; revision=3262

18 years agoFix spelling of "hierarchy" for bug #131582 and raise an exception for cleaner error...
Zac Medico [Fri, 28 Apr 2006 21:46:31 +0000 (21:46 -0000)]
Fix spelling of "hierarchy" for bug #131582 and raise an exception for cleaner error handling.

svn path=/main/trunk/; revision=3261

18 years agoRemove global db usage from portdbapi.gvisible().
Zac Medico [Fri, 28 Apr 2006 12:12:53 +0000 (12:12 -0000)]
Remove global db usage from portdbapi.gvisible().

svn path=/main/trunk/; revision=3259

18 years agoOnly trigger the 'Using system located in ROOT' message when ROOT!=/.
Zac Medico [Fri, 28 Apr 2006 11:57:05 +0000 (11:57 -0000)]
Only trigger the 'Using system located in ROOT' message when ROOT!=/.

svn path=/main/trunk/; revision=3258

18 years agoRemove global db usage from portage.config.regenerate().
Zac Medico [Fri, 28 Apr 2006 11:41:23 +0000 (11:41 -0000)]
Remove global db usage from portage.config.regenerate().

svn path=/main/trunk/; revision=3257

18 years agoFix a typo from r3245.
Zac Medico [Fri, 28 Apr 2006 11:06:35 +0000 (11:06 -0000)]
Fix a typo from r3245.

svn path=/main/trunk/; revision=3256

18 years agoDisable the FEATURES=cvs part of r3251 because it prevents missing files from bein...
Zac Medico [Fri, 28 Apr 2006 10:54:02 +0000 (10:54 -0000)]
Disable the FEATURES=cvs part of r3251 because it prevents missing files from bein fetched when they need to be.

svn path=/main/trunk/; revision=3255

18 years agoMake portage.vardbapi able to work without any global variables.
Zac Medico [Fri, 28 Apr 2006 10:35:36 +0000 (10:35 -0000)]
Make portage.vardbapi able to work without any global variables.

svn path=/main/trunk/; revision=3254

18 years agoFix portage.global_updates() and portage.do_vartree() so they don't have to use any...
Zac Medico [Fri, 28 Apr 2006 03:03:30 +0000 (03:03 -0000)]
Fix portage.global_updates() and portage.do_vartree() so they don't have to use any globals.

svn path=/main/trunk/; revision=3253

18 years agoRemove usage of the portage.thirdpartymirrors global variable.
Zac Medico [Thu, 27 Apr 2006 22:26:07 +0000 (22:26 -0000)]
Remove usage of the portage.thirdpartymirrors global variable.

svn path=/main/trunk/; revision=3252

18 years agoMake FEATURES=cvs cause all distfiles to be fetched if necessary (just like `ebuild...
Zac Medico [Thu, 27 Apr 2006 13:50:12 +0000 (13:50 -0000)]
Make FEATURES=cvs cause all distfiles to be fetched if necessary (just like `ebuild digest`) and update the code for Manifest2.

svn path=/main/trunk/; revision=3251

18 years agoOnly use one global statement to avoid bogus python syntax warning.
Zac Medico [Thu, 27 Apr 2006 09:16:45 +0000 (09:16 -0000)]
Only use one global statement to avoid bogus python syntax warning.

svn path=/main/trunk/; revision=3250

18 years agoPass in mydbapi and vartree where relevant for all doebuild calls in portage.py and...
Zac Medico [Thu, 27 Apr 2006 08:50:45 +0000 (08:50 -0000)]
Pass in mydbapi and vartree where relevant for all doebuild calls in portage.py and add necessary support to merge() and the dblink class.

svn path=/main/trunk/; revision=3249

18 years agoescape $ in PORTAGE_ELOG_MAILSUBJECT; bug 131373
Simon Stelling [Thu, 27 Apr 2006 08:35:56 +0000 (08:35 -0000)]
escape $ in PORTAGE_ELOG_MAILSUBJECT; bug 131373

svn path=/main/trunk/; revision=3248

18 years agoAdd an option vartree parameter to doebuild(), merge(), and the dblink constructor...
Zac Medico [Thu, 27 Apr 2006 06:02:04 +0000 (06:02 -0000)]
Add an option vartree parameter to doebuild(), merge(), and the dblink constructor so that they don't have to use globals.

svn path=/main/trunk/; revision=3247

18 years agoAdd optional mydbapi parameter to doebuild() so that it doesn't have to use any globals.
Zac Medico [Thu, 27 Apr 2006 04:23:12 +0000 (04:23 -0000)]
Add optional mydbapi parameter to doebuild() so that it doesn't have to use any globals.

svn path=/main/trunk/; revision=3246

18 years agoMake fetchlist_dict an optional parameter in the Manifest constructor since it's...
Zac Medico [Wed, 26 Apr 2006 22:10:16 +0000 (22:10 -0000)]
Make fetchlist_dict an optional parameter in the Manifest constructor since it's required only for generation of a Manifest (not needed for parsing and checking sums).

svn path=/main/trunk/; revision=3245

18 years agoPass a portdbapi instance into portage.digestgen() so that it doesn't have to use...
Zac Medico [Wed, 26 Apr 2006 10:56:46 +0000 (10:56 -0000)]
Pass a portdbapi instance into portage.digestgen() so that it doesn't have to use any globals.

svn path=/main/trunk/; revision=3244

18 years agoPass a portdbapi instance into the FetchlistDict constructor so that it doesn't have...
Zac Medico [Wed, 26 Apr 2006 10:27:50 +0000 (10:27 -0000)]
Pass a portdbapi instance into the FetchlistDict constructor so that it doesn't have to use any globals.

svn path=/main/trunk/; revision=3243

18 years agoGroup together and clearly mark some deprecated globals.
Zac Medico [Wed, 26 Apr 2006 09:33:56 +0000 (09:33 -0000)]
Group together and clearly mark some deprecated globals.

svn path=/main/trunk/; revision=3242

18 years agoMove PORTAGE_MASTER_PID and BASH_ENV from global scope to the doebuild_environment...
Zac Medico [Wed, 26 Apr 2006 09:14:25 +0000 (09:14 -0000)]
Move PORTAGE_MASTER_PID and BASH_ENV from global scope to the doebuild_environment() function.

svn path=/main/trunk/; revision=3241

18 years agoUse the correct ACCEPT_KEYWORDS for each profile (regression from r3231).
Zac Medico [Wed, 26 Apr 2006 08:19:54 +0000 (08:19 -0000)]
Use the correct ACCEPT_KEYWORDS for each profile (regression from r3231).

svn path=/main/trunk/; revision=3240

18 years agoRemove portage.config.root (from r3229) and just use config["ROOT"] to eliminate...
Zac Medico [Wed, 26 Apr 2006 04:08:43 +0000 (04:08 -0000)]
Remove portage.config.root (from r3229) and just use config["ROOT"] to eliminate redundancy.

svn path=/main/trunk/; revision=3239

18 years agoRemove portage.config.groups (formerly portage.groups) and instead use ACCEPT_KEYWORD...
Zac Medico [Wed, 26 Apr 2006 03:36:42 +0000 (03:36 -0000)]
Remove portage.config.groups (formerly portage.groups) and instead use ACCEPT_KEYWORDS directly (simplifies the code).

svn path=/main/trunk/; revision=3238

18 years agoFix portdbapi.aux_get(), findname2(), and getfetchlist() so that the tree can be...
Zac Medico [Wed, 26 Apr 2006 02:04:08 +0000 (02:04 -0000)]
Fix portdbapi.aux_get(), findname2(), and getfetchlist() so that the tree can be overridden by the caller if necessary (ensures that metadata is pulled from the correct tree when generating a manifest).

svn path=/main/trunk/; revision=3237

18 years agoFix false variable.readonly match on continued lines. Thanks to Flameeyes for reporting.
Zac Medico [Tue, 25 Apr 2006 21:24:23 +0000 (21:24 -0000)]
Fix false variable.readonly match on continued lines.  Thanks to Flameeyes for reporting.

svn path=/main/trunk/; revision=3236

18 years agoValidate the resume merge list in --ask and --pretend mode for bug #128455.
Zac Medico [Tue, 25 Apr 2006 20:33:36 +0000 (20:33 -0000)]
Validate the resume merge list in --ask and --pretend mode for bug #128455.

svn path=/main/trunk/; revision=3235

18 years agoMake copies of the groups attribute before modifying (regression from r3231).
Zac Medico [Tue, 25 Apr 2006 19:38:13 +0000 (19:38 -0000)]
Make copies of the groups attribute before modifying (regression from r3231).

svn path=/main/trunk/; revision=3234

18 years agoRemove all dependence on the portage.features global variable.
Zac Medico [Tue, 25 Apr 2006 10:55:31 +0000 (10:55 -0000)]
Remove all dependence on the portage.features global variable.

svn path=/main/trunk/; revision=3233

18 years agoRemove all usage of the portage.archlist global variable.
Zac Medico [Tue, 25 Apr 2006 10:08:17 +0000 (10:08 -0000)]
Remove all usage of the portage.archlist global variable.

svn path=/main/trunk/; revision=3232

18 years agoRemove all usage of the portage.groups global variable.
Zac Medico [Tue, 25 Apr 2006 09:36:57 +0000 (09:36 -0000)]
Remove all usage of the portage.groups global variable.

svn path=/main/trunk/; revision=3231

18 years agoRemove all usage of portage.usedefaults and portage.profiledir globals.
Zac Medico [Tue, 25 Apr 2006 08:45:08 +0000 (08:45 -0000)]
Remove all usage of portage.usedefaults and portage.profiledir globals.

svn path=/main/trunk/; revision=3230

18 years agoMove portage.root logic from global scope into the portage.config class.
Zac Medico [Tue, 25 Apr 2006 07:46:26 +0000 (07:46 -0000)]
Move portage.root logic from global scope into the portage.config class.

svn path=/main/trunk/; revision=3229

18 years agoMove initialization of tmp, var/tmp, var/lib/portage, and var/cache/edb from global...
Zac Medico [Tue, 25 Apr 2006 06:58:20 +0000 (06:58 -0000)]
Move initialization of tmp, var/tmp, var/lib/portage, and var/cache/edb from global scope to portage.cofig._init_dirs().

svn path=/main/trunk/; revision=3228

18 years agoMove cache dir initialization from global scope to the portdbapi class.
Zac Medico [Tue, 25 Apr 2006 05:42:41 +0000 (05:42 -0000)]
Move cache dir initialization from global scope to the portdbapi class.

svn path=/main/trunk/; revision=3227

18 years agoenable +x bits on sed
Mike Frysinger [Tue, 25 Apr 2006 05:20:33 +0000 (05:20 -0000)]
enable +x bits on sed

svn path=/main/trunk/; revision=3226

18 years agoMove USER_VIRTUALS_FILE deprecation warning to config.validate().
Zac Medico [Tue, 25 Apr 2006 05:11:07 +0000 (05:11 -0000)]
Move USER_VIRTUALS_FILE deprecation warning to config.validate().

svn path=/main/trunk/; revision=3225

18 years agoSplit a config.validate() method and move PORTAGE_TMPDIR sanity check to doebuild.
Zac Medico [Tue, 25 Apr 2006 04:40:12 +0000 (04:40 -0000)]
Split a config.validate() method and move PORTAGE_TMPDIR sanity check to doebuild.

svn path=/main/trunk/; revision=3224

18 years agoMove the make.profile symlink warning from global scope to the config class.
Zac Medico [Tue, 25 Apr 2006 04:04:54 +0000 (04:04 -0000)]
Move the make.profile symlink warning from global scope to the config class.

svn path=/main/trunk/; revision=3223

18 years agoCatch IOError when loading the mtimedb.
Zac Medico [Tue, 25 Apr 2006 03:48:04 +0000 (03:48 -0000)]
Catch IOError when loading the mtimedb.

svn path=/main/trunk/; revision=3222

18 years agoMove ACCEPT_KEYWORDS and PORTAGE_ARCHLIST validation from global scope to the config...
Zac Medico [Tue, 25 Apr 2006 03:42:44 +0000 (03:42 -0000)]
Move ACCEPT_KEYWORDS and PORTAGE_ARCHLIST validation from global scope to the config class.

svn path=/main/trunk/; revision=3221

18 years agoMove the mtimedb initialization code from global scope to a function.
Zac Medico [Tue, 25 Apr 2006 03:13:04 +0000 (03:13 -0000)]
Move the mtimedb initialization code from global scope to a function.

svn path=/main/trunk/; revision=3220

18 years agoCatch ValueError from cpv_expand for bug #131160.
Zac Medico [Tue, 25 Apr 2006 01:44:10 +0000 (01:44 -0000)]
Catch ValueError from cpv_expand for bug #131160.

svn path=/main/trunk/; revision=3219

18 years agoAdd a note concerning the separation of legacy global initializations.
Zac Medico [Mon, 24 Apr 2006 23:20:53 +0000 (23:20 -0000)]
Add a note concerning the separation of legacy global initializations.

svn path=/main/trunk/; revision=3218

18 years agoFor better organization, migrate the initialization of all major globals in portage...
Zac Medico [Mon, 24 Apr 2006 22:35:12 +0000 (22:35 -0000)]
For better organization, migrate the initialization of all major globals in portage.py to the bottom of the file.

svn path=/main/trunk/; revision=3217

18 years agoMake sure usage of portage.db and portage.mtimedb is appropriately marked as global.
Zac Medico [Mon, 24 Apr 2006 22:03:09 +0000 (22:03 -0000)]
Make sure usage of portage.db and portage.mtimedb is appropriately marked as global.

svn path=/main/trunk/; revision=3216

18 years agoMake sure a usage of portage.settings is marked as global.
Zac Medico [Mon, 24 Apr 2006 21:50:51 +0000 (21:50 -0000)]
Make sure a usage of portage.settings is marked as global.

svn path=/main/trunk/; revision=3215

18 years agoUse tree="vartree" for prerm, postrm, and cleanrm phases (see bug #131116).
Zac Medico [Mon, 24 Apr 2006 20:58:08 +0000 (20:58 -0000)]
Use tree="vartree" for prerm, postrm, and cleanrm phases (see bug #131116).

svn path=/main/trunk/; revision=3214

18 years agoUse one aux_get call instead of 2.
Zac Medico [Mon, 24 Apr 2006 20:44:12 +0000 (20:44 -0000)]
Use one aux_get call instead of 2.

svn path=/main/trunk/; revision=3213

18 years agoUse local myroot instead of portage.root global.
Zac Medico [Mon, 24 Apr 2006 12:37:49 +0000 (12:37 -0000)]
Use local myroot instead of portage.root global.

svn path=/main/trunk/; revision=3212

18 years agoReplace finddigest usage with Manifest2 compatible code.
Zac Medico [Mon, 24 Apr 2006 11:29:04 +0000 (11:29 -0000)]
Replace finddigest usage with Manifest2 compatible code.

svn path=/main/trunk/; revision=3211

18 years agoPass a dbapi instance into doebuild_environment so that it doesn't need to access...
Zac Medico [Mon, 24 Apr 2006 10:41:34 +0000 (10:41 -0000)]
Pass a dbapi instance into doebuild_environment so that it doesn't need to access the global db directly.

svn path=/main/trunk/; revision=3210

18 years agoRemove a possibly unecessary try statement that may swallow important exceptions.
Zac Medico [Mon, 24 Apr 2006 10:29:32 +0000 (10:29 -0000)]
Remove a possibly unecessary try statement that may swallow important exceptions.

svn path=/main/trunk/; revision=3209

18 years agoReplace usage of global portage.settings with self.mysettings instead.
Zac Medico [Mon, 24 Apr 2006 09:56:59 +0000 (09:56 -0000)]
Replace usage of global portage.settings with self.mysettings instead.

svn path=/main/trunk/; revision=3208

18 years agoFix accidental usage of global settings instead of self.
Zac Medico [Mon, 24 Apr 2006 08:56:43 +0000 (08:56 -0000)]
Fix accidental usage of global settings instead of self.

svn path=/main/trunk/; revision=3207

18 years agoDo lazy initialization of portage.db[root][porttree] and db[root][vartree] for quicke...
Zac Medico [Mon, 24 Apr 2006 00:36:19 +0000 (00:36 -0000)]
Do lazy initialization of portage.db[root][porttree] and db[root][vartree] for quicker portage import.

svn path=/main/trunk/; revision=3206

18 years agoMove thirdpartymirrors stacking out of global scope.
Zac Medico [Mon, 24 Apr 2006 00:08:57 +0000 (00:08 -0000)]
Move thirdpartymirrors stacking out of global scope.

svn path=/main/trunk/; revision=3205

18 years agoMove deprecated profile check out of global scope.
Zac Medico [Sun, 23 Apr 2006 23:19:48 +0000 (23:19 -0000)]
Move deprecated profile check out of global scope.

svn path=/main/trunk/; revision=3204

18 years agoMinor emerge -V/--info fixes thanks to iggy, use portage_const PROFILE_PATH
Alec Warner [Sun, 23 Apr 2006 23:02:11 +0000 (23:02 -0000)]
Minor emerge -V/--info fixes thanks to iggy, use portage_const PROFILE_PATH

svn path=/main/trunk/; revision=3203

18 years agoMove endversion and endversion_keys to portage_versions and import them for backward...
Zac Medico [Sun, 23 Apr 2006 22:15:23 +0000 (22:15 -0000)]
Move endversion and endversion_keys to portage_versions and import them for backward compatibility.

svn path=/main/trunk/; revision=3202

18 years agoMove portage.global_updates() invocation out of portage.py and into emerge/fixpackage...
Zac Medico [Sun, 23 Apr 2006 20:52:18 +0000 (20:52 -0000)]
Move portage.global_updates() invocation out of portage.py and into emerge/fixpackages where it belongs.

svn path=/main/trunk/; revision=3201

18 years agoMake sed wrapper not executable. Currently the wrapper is installed via doexe in...
Alec Warner [Sun, 23 Apr 2006 16:36:02 +0000 (16:36 -0000)]
Make sed wrapper not executable.  Currently the wrapper is installed via doexe in the ebuild from  and gets the +x bit set properly.  I don't think we have any SVN users on BSD or Darwin.  In the future this wrapper will get installed automagically by the ebuild ( it being in bin ) but will only be set executable on non GNU platforms.

svn path=/main/trunk/; revision=3200