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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Zac Medico [Fri, 28 Apr 2006 11:06:35 +0000 (11:06 -0000)]
Fix a typo from r3245.
svn path=/main/trunk/; revision=3256
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Mike Frysinger [Tue, 25 Apr 2006 05:20:33 +0000 (05:20 -0000)]
enable +x bits on sed
svn path=/main/trunk/; revision=3226
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Alec Warner [Sun, 23 Apr 2006 15:55:13 +0000 (15:55 -0000)]
Fix sed breakage for people with weird PATH, fix tabs. Thanks to Flameeyes once again.
svn path=/main/trunk/; revision=3199
Simon Stelling [Sun, 23 Apr 2006 14:31:17 +0000 (14:31 -0000)]
set executable bit for sed-wrapper
svn path=/main/trunk/; revision=3198
Mike Frysinger [Sun, 23 Apr 2006 07:56:29 +0000 (07:56 -0000)]
tighten up output in pretend mode
svn path=/main/trunk/; revision=3197
Mike Frysinger [Sun, 23 Apr 2006 07:47:07 +0000 (07:47 -0000)]
fixup clean output
svn path=/main/trunk/; revision=3196
Mike Frysinger [Sun, 23 Apr 2006 07:26:10 +0000 (07:26 -0000)]
space arguments
svn path=/main/trunk/; revision=3195
Zac Medico [Sun, 23 Apr 2006 07:23:40 +0000 (07:23 -0000)]
Fix FileNotFound error when ignoreMissing=True for bug #130928.
svn path=/main/trunk/; revision=3194
Zac Medico [Sun, 23 Apr 2006 06:34:43 +0000 (06:34 -0000)]
Replace hard coded "size" with MANIFEST1_HASH_FUNCTIONS.
svn path=/main/trunk/; revision=3193
Zac Medico [Sun, 23 Apr 2006 06:22:04 +0000 (06:22 -0000)]
Remove bogus "size" manifest entries reported by vapier.
svn path=/main/trunk/; revision=3192
Alec Warner [Sat, 22 Apr 2006 20:12:47 +0000 (20:12 -0000)]
Add copyright header, thanks to Zac Medico for pointing that out for me
svn path=/main/trunk/; revision=3191
Alec Warner [Sat, 22 Apr 2006 20:08:55 +0000 (20:08 -0000)]
A sed wrapper for OSX/BSD courtesy of Flameeyes and Spanky
svn path=/main/trunk/; revision=3190
Zac Medico [Sat, 22 Apr 2006 19:46:07 +0000 (19:46 -0000)]
Disable sandbox during package phase interaction with $PKGDIR for compatibility with symlinks (See bug #130824).
svn path=/main/trunk/; revision=3189
Zac Medico [Sat, 22 Apr 2006 01:10:28 +0000 (01:10 -0000)]
Print the actual DISTDIR location in the help ouput of clean_locks for bug #116676.
svn path=/main/trunk/; revision=3188
Zac Medico [Sat, 22 Apr 2006 00:59:15 +0000 (00:59 -0000)]
s/Do you want me/Would you like/g for bug #112439.
svn path=/main/trunk/; revision=3187
Zac Medico [Sat, 22 Apr 2006 00:15:52 +0000 (00:15 -0000)]
Exit with error status when the user has attempted to unmerge a package that is not installed (bug #118515).
svn path=/main/trunk/; revision=3186
Zac Medico [Fri, 21 Apr 2006 22:34:41 +0000 (22:34 -0000)]
Fix partial download size calculation for bug #116796.
svn path=/main/trunk/; revision=3185
Zac Medico [Fri, 21 Apr 2006 19:07:30 +0000 (19:07 -0000)]
Fix `emerge -s` download size calculation for bug #130750.
svn path=/main/trunk/; revision=3184
Zac Medico [Fri, 21 Apr 2006 06:40:47 +0000 (06:40 -0000)]
Implement portage.config.get() in order to provide more of the standard mapping interface.
svn path=/main/trunk/; revision=3182
Zac Medico [Fri, 21 Apr 2006 05:50:21 +0000 (05:50 -0000)]
Use os.path.join for PORTAGE_GPG_DIR and remove a duplicate access check.
svn path=/main/trunk/; revision=3181
Mike Frysinger [Thu, 20 Apr 2006 23:19:45 +0000 (23:19 -0000)]
if PORTAGE_GPG_DIR is not set then default to ~/.gnupg instead of just dumping an error
svn path=/main/trunk/; revision=3180
Zac Medico [Thu, 20 Apr 2006 20:13:18 +0000 (20:13 -0000)]
Fix repoman --commitmsgfile logic. Thanks to Christian Heim <phreak@gentoo.org> for reporting.
svn path=/main/trunk/; revision=3179
Zac Medico [Thu, 20 Apr 2006 18:06:37 +0000 (18:06 -0000)]
Add and "other" EBUILD_PHASE for bug #127585. Thanks to Patrick Avery <pyromancer@gmail.com> for this patch.
svn path=/main/trunk/; revision=3178
Zac Medico [Thu, 20 Apr 2006 05:48:30 +0000 (05:48 -0000)]
Update Manifest automatically in repoman commit mode for bug #130541.
svn path=/main/trunk/; revision=3177
Mike Frysinger [Wed, 19 Apr 2006 04:52:34 +0000 (04:52 -0000)]
support *.bz #130406
svn path=/main/trunk/; revision=3176
Mike Frysinger [Tue, 18 Apr 2006 22:54:25 +0000 (22:54 -0000)]
use just [[...]] instead of ((...)); especially when dealing with user input
svn path=/main/trunk/; revision=3175
Zac Medico [Tue, 18 Apr 2006 11:10:23 +0000 (11:10 -0000)]
s/GENTOO_MIRRORs/GENTOO_MIRRORS/
svn path=/main/trunk/; revision=3174