Alec Warner [Mon, 23 Jul 2007 07:21:31 +0000 (07:21 -0000)]
Move classes out of __init__.py, they do not belong there. Fix import style, and import statements broken by class moves.
svn path=/main/trunk/; revision=7366
Alec Warner [Mon, 23 Jul 2007 05:23:18 +0000 (05:23 -0000)]
Move common file functionality into a FileLoader class and delegate parsing to subclasses via a lineParser func, no idea how this will work performance wise. Fix errors in parser (blank lines are not errors ;))
svn path=/main/trunk/; revision=7365
Alec Warner [Mon, 23 Jul 2007 04:06:55 +0000 (04:06 -0000)]
fix spacing, comments, default args
svn path=/main/trunk/; revision=7364
Zac Medico [Sun, 22 Jul 2007 23:21:14 +0000 (23:21 -0000)]
Fix hardcoded /usr/bin/echo to use portage.process.find_binary().
svn path=/main/trunk/; revision=7363
Alec Warner [Sun, 22 Jul 2007 22:24:30 +0000 (22:24 -0000)]
fix missing import, default value for value in case we try to .join on a variable that hasn't been assigned to yet
svn path=/main/trunk/; revision=7362
Alec Warner [Sun, 22 Jul 2007 22:18:34 +0000 (22:18 -0000)]
add docstring, fix up imports (style), add keyword expansion
svn path=/main/trunk/; revision=7361
Alec Warner [Sun, 22 Jul 2007 22:17:12 +0000 (22:17 -0000)]
add test for CommandOutputSet
svn path=/main/trunk/; revision=7360
Zac Medico [Sun, 22 Jul 2007 20:56:19 +0000 (20:56 -0000)]
For bug #184774, put lha's -q option last since otherwise the option parser now requires level 0, 1, or 2 to be specified.
svn path=/main/trunk/; revision=7358
Alec Warner [Sun, 22 Jul 2007 20:15:39 +0000 (20:15 -0000)]
Fix spacing issues, imports
svn path=/main/trunk/; revision=7357
Alec Warner [Sun, 22 Jul 2007 19:22:16 +0000 (19:22 -0000)]
Add notes about import statements (clarity) and fix spelling error in release-notes
svn path=/main/trunk/; revision=7356
Alec Warner [Sun, 22 Jul 2007 10:08:15 +0000 (10:08 -0000)]
remove unused vars from xpak, fix bug in compose. Also fix tests for portage sets, fix misnamed variable.
svn path=/main/trunk/; revision=7355
Alec Warner [Sun, 22 Jul 2007 09:55:50 +0000 (09:55 -0000)]
Run pychecker over everything, fix obvious thing slike modules not in use, variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line)
svn path=/main/trunk/; revision=7354
Zac Medico [Sun, 22 Jul 2007 07:49:14 +0000 (07:49 -0000)]
Fix the reverse dependency display for --prune when there is now real parent.
svn path=/main/trunk/; revision=7351
Zac Medico [Sun, 22 Jul 2007 06:48:00 +0000 (06:48 -0000)]
Make --update imply --oneshot since people often us it to update things when they don't want to add them to world. Thanks to jakub for the suggestion.
svn path=/main/trunk/; revision=7349
Zac Medico [Sun, 22 Jul 2007 06:33:51 +0000 (06:33 -0000)]
Document --depclean and --prune enhancements.
svn path=/main/trunk/; revision=7345
Zac Medico [Sun, 22 Jul 2007 06:08:48 +0000 (06:08 -0000)]
Prevent a potential KeyError when removing world from the digraph for --prune display.
svn path=/main/trunk/; revision=7344
Zac Medico [Sun, 22 Jul 2007 06:06:41 +0000 (06:06 -0000)]
Make --prune pull in the system set since that could pull in some slots that wouldn't be pulled in otherwise.
svn path=/main/trunk/; revision=7343
Zac Medico [Sat, 21 Jul 2007 11:34:23 +0000 (11:34 -0000)]
For bug #169500, detect when the cvs server puts /Attic/ inside the $Header path and automatically correct it.
svn path=/main/trunk/; revision=7340
Zac Medico [Sat, 21 Jul 2007 10:36:55 +0000 (10:36 -0000)]
For bug #185153, in commit mode do the "Fetching trivial updates" routine before the qa scan.
svn path=/main/trunk/; revision=7338
Zac Medico [Sat, 21 Jul 2007 09:42:34 +0000 (09:42 -0000)]
Make --prune and --depclean return before calculating dependencies if atoms are given but they don't match any packages.
svn path=/main/trunk/; revision=7336
Zac Medico [Sat, 21 Jul 2007 09:31:21 +0000 (09:31 -0000)]
Prune really uses all installed instead of world. It's not a real reverse dependency so don't display it as such.
svn path=/main/trunk/; revision=7334
Zac Medico [Sat, 21 Jul 2007 04:57:08 +0000 (04:57 -0000)]
Just show [0] instead of [0=>0] in the repo display.
svn path=/main/trunk/; revision=7332
Zac Medico [Sat, 21 Jul 2007 04:20:15 +0000 (04:20 -0000)]
For bug #185930, direct all FETCHCOMMAND output to stdout.
svn path=/main/trunk/; revision=7330
Zac Medico [Sat, 21 Jul 2007 03:51:28 +0000 (03:51 -0000)]
Optimize PackageSet._updateAtomMap() for the case where one or more atoms are added and none are removed.
svn path=/main/trunk/; revision=7329
Zac Medico [Sat, 21 Jul 2007 03:37:08 +0000 (03:37 -0000)]
Hint about --nodeps if --prune doesn't find anything to prune. Also enable reverse dependency display for global depclean.
svn path=/main/trunk/; revision=7327
Zac Medico [Sat, 21 Jul 2007 00:21:24 +0000 (00:21 -0000)]
When digest verification of a distfile fails, rename instead of unlinking it in case it's a large download and the user wants to salvage it due to a bad digest.
svn path=/main/trunk/; revision=7325
Zac Medico [Fri, 20 Jul 2007 05:40:42 +0000 (05:40 -0000)]
If the fetcher reported success and the file is too small, don't attempt to resume. Upstream probably changed the distfile and we need to show a digest verification failure so the user gets a clue.
svn path=/main/trunk/; revision=7321
Zac Medico [Fri, 20 Jul 2007 03:19:21 +0000 (03:19 -0000)]
For bug #185504, document profiles/repo_name.
svn path=/main/trunk/; revision=7319
Zac Medico [Fri, 20 Jul 2007 02:46:51 +0000 (02:46 -0000)]
Document --prune and --depclean enhancements.
svn path=/main/trunk/; revision=7317
Zac Medico [Fri, 20 Jul 2007 02:23:33 +0000 (02:23 -0000)]
Update --prune docs for bug #151653.
svn path=/main/trunk/; revision=7315
Zac Medico [Fri, 20 Jul 2007 02:00:02 +0000 (02:00 -0000)]
Fix --prune so that it always correctly accounts for COUNTER when dealing with packages in the same slot.
svn path=/main/trunk/; revision=7313
Zac Medico [Fri, 20 Jul 2007 01:52:39 +0000 (01:52 -0000)]
For bug #151653, make --prune keep the highest version whenever possible (even when there is one with a higher counter installed).
svn path=/main/trunk/; revision=7312
Zac Medico [Thu, 19 Jul 2007 23:55:26 +0000 (23:55 -0000)]
Make --prune try to prune all slotted packages if no atoms are given (that's how it already works with --nodeps).
svn path=/main/trunk/; revision=7310
Zac Medico [Thu, 19 Jul 2007 23:43:44 +0000 (23:43 -0000)]
Make --prune bail out like depclean does if there are unresolved dependencies. Notify the user that they can use --nodeps in that case.
svn path=/main/trunk/; revision=7309
Zac Medico [Thu, 19 Jul 2007 23:31:27 +0000 (23:31 -0000)]
With --prune and --depclean, if --verbose is enabled then show reverse dependencies for each package that is matched by an atom from the command line. This allows the user to see why a package will not be unmerged.
svn path=/main/trunk/; revision=7308
Zac Medico [Wed, 18 Jul 2007 06:26:44 +0000 (06:26 -0000)]
Allow atoms to be specified for --depclean so that it can be used to safely unmerge packages if nothing depends on them.
svn path=/main/trunk/; revision=7306
Zac Medico [Wed, 18 Jul 2007 04:03:38 +0000 (04:03 -0000)]
Use the --depclean algorithm to make --prune safe. The old unsafe --prune will be used if the --nodeps option is specified.
svn path=/main/trunk/; revision=7305
Zac Medico [Tue, 17 Jul 2007 21:41:53 +0000 (21:41 -0000)]
Iterate over a list in order to avoid breaking the iterator when an atom is removed.
svn path=/main/trunk/; revision=7303
Zac Medico [Tue, 17 Jul 2007 21:16:37 +0000 (21:16 -0000)]
Use PackageSet.getAtoms() as a wrapper around load() since load() can trigger unnecessary stat calls.
svn path=/main/trunk/; revision=7302
Zac Medico [Tue, 17 Jul 2007 21:08:46 +0000 (21:08 -0000)]
Make PackageSet._updateAtomMap() clear the map in case something was removed.
svn path=/main/trunk/; revision=7301
Zac Medico [Tue, 17 Jul 2007 19:26:05 +0000 (19:26 -0000)]
Use PF in dyn_package. Thanks to swegener.
svn path=/main/trunk/; revision=7300
Zac Medico [Tue, 17 Jul 2007 19:13:13 +0000 (19:13 -0000)]
Unify USE handling in the depgraph with the other metadata.
svn path=/main/trunk/; revision=7298
Zac Medico [Tue, 17 Jul 2007 18:19:11 +0000 (18:19 -0000)]
For bug #185670, make sure package.use.{mask,force} are properly displayed.
svn path=/main/trunk/; revision=7296
Zac Medico [Tue, 17 Jul 2007 18:04:44 +0000 (18:04 -0000)]
When expanding ambiguous atoms against the vardb, make sure the the expanded package is also available in the portage tree.
svn path=/main/trunk/; revision=7294
Zac Medico [Tue, 17 Jul 2007 04:58:36 +0000 (04:58 -0000)]
When dep_expand throws a ValueError due to an ambiguous atom, try to expand it against the installed packages in case it yields a unique match.
svn path=/main/trunk/; revision=7292
Zac Medico [Tue, 17 Jul 2007 04:38:27 +0000 (04:38 -0000)]
Don't show the repo display when the package list is empty.
svn path=/main/trunk/; revision=7290
Zac Medico [Tue, 17 Jul 2007 04:35:22 +0000 (04:35 -0000)]
Make sure the atoms are loaded when calling PackageSet.findAtomForPackage().
svn path=/main/trunk/; revision=7289
Zac Medico [Tue, 17 Jul 2007 04:21:51 +0000 (04:21 -0000)]
Make sure PackageSet._atoms is always a set.
svn path=/main/trunk/; revision=7288
Zac Medico [Tue, 17 Jul 2007 04:15:13 +0000 (04:15 -0000)]
Revert PackageSet.containsCPV() calls back to findAtomForPackage() calls so that things like slot atoms and old-style virtuals are properly supported.
svn path=/main/trunk/; revision=7287
Zac Medico [Tue, 17 Jul 2007 01:31:04 +0000 (01:31 -0000)]
Always be sure to load the latest version of the world file while it's locked.
svn path=/main/trunk/; revision=7286
Zac Medico [Mon, 16 Jul 2007 18:33:36 +0000 (18:33 -0000)]
Sort the atoms when writing the world file.
svn path=/main/trunk/; revision=7285
Marius Mauch [Mon, 16 Jul 2007 13:52:27 +0000 (13:52 -0000)]
Replace emerge.WorldSet with portage.sets.files.WorldSet
svn path=/main/trunk/; revision=7283
Marius Mauch [Mon, 16 Jul 2007 13:51:11 +0000 (13:51 -0000)]
break another recursion cycle, add special subclass for "world" to handle locking
svn path=/main/trunk/; revision=7282
Marius Mauch [Mon, 16 Jul 2007 12:53:57 +0000 (12:53 -0000)]
Replace emerge.SystemSet with portage.sets.profiles.PackagesSystemSet
svn path=/main/trunk/; revision=7281
Marius Mauch [Mon, 16 Jul 2007 12:53:13 +0000 (12:53 -0000)]
break recursion cycle
svn path=/main/trunk/; revision=7280
Marius Mauch [Mon, 16 Jul 2007 12:35:32 +0000 (12:35 -0000)]
replace emerge.AtomSet with portage.sets.InternalPackageSet
svn path=/main/trunk/; revision=7279
Marius Mauch [Mon, 16 Jul 2007 11:48:07 +0000 (11:48 -0000)]
disable FEATURES=gpg as it's unmaintained, useless and likely broken for many people
svn path=/main/trunk/; revision=7278
Marius Mauch [Mon, 16 Jul 2007 09:15:54 +0000 (09:15 -0000)]
fix metadata parsing for file-based sets, add support for user-defined file sets in test code
svn path=/main/trunk/; revision=7277
Marius Mauch [Mon, 16 Jul 2007 09:01:49 +0000 (09:01 -0000)]
add support for metadata
svn path=/main/trunk/; revision=7276
Marius Mauch [Mon, 16 Jul 2007 08:13:53 +0000 (08:13 -0000)]
ignore already applied glsas when loading the security set
svn path=/main/trunk/; revision=7275
Marius Mauch [Mon, 16 Jul 2007 07:38:19 +0000 (07:38 -0000)]
fix load logic for editable sets once more
svn path=/main/trunk/; revision=7274
Marius Mauch [Mon, 16 Jul 2007 07:36:09 +0000 (07:36 -0000)]
use a more logical approach for editable sets
svn path=/main/trunk/; revision=7273
Marius Mauch [Mon, 16 Jul 2007 07:23:45 +0000 (07:23 -0000)]
Make PackageSet to behave more like a real set, and change loading logic a bit to avoid unnecessary reloads for editable sets
svn path=/main/trunk/; revision=7272
Marius Mauch [Mon, 16 Jul 2007 06:39:27 +0000 (06:39 -0000)]
s/node/atom/ and other minor updates
svn path=/main/trunk/; revision=7271
Marius Mauch [Mon, 16 Jul 2007 04:07:32 +0000 (04:07 -0000)]
sync MAILSUBJECT in make.conf with make.globals
svn path=/main/trunk/; revision=7270
Mike Frysinger [Sun, 15 Jul 2007 07:16:28 +0000 (07:16 -0000)]
split up the debug/sources steps as proposed by swegener and give the whole file a cleanup
svn path=/main/trunk/; revision=7267
Zac Medico [Sun, 15 Jul 2007 03:45:36 +0000 (03:45 -0000)]
Fix typo.
svn path=/main/trunk/; revision=7265
Zac Medico [Sun, 15 Jul 2007 03:21:30 +0000 (03:21 -0000)]
When deciding if a package is slotted inside create_world_atom(), check the vdb in case the package is multislot.
svn path=/main/trunk/; revision=7263
Zac Medico [Sat, 14 Jul 2007 23:45:19 +0000 (23:45 -0000)]
Remove unused repo_name code.
svn path=/main/trunk/; revision=7260
Zac Medico [Sat, 14 Jul 2007 23:25:36 +0000 (23:25 -0000)]
Use sys.stdout instead of print to avoid an extra newline.
svn path=/main/trunk/; revision=7259
Zac Medico [Sat, 14 Jul 2007 23:21:37 +0000 (23:21 -0000)]
Encapsulate the repo display code in a class.
svn path=/main/trunk/; revision=7258
Zac Medico [Sat, 14 Jul 2007 22:44:08 +0000 (22:44 -0000)]
Always show PORTDIR with index 0 in the repo display.
svn path=/main/trunk/; revision=7257
Zac Medico [Sat, 14 Jul 2007 22:33:30 +0000 (22:33 -0000)]
Make the repo display work for overlays that don't define repo_name (like it used to).
svn path=/main/trunk/; revision=7256
Zac Medico [Sat, 14 Jul 2007 20:28:08 +0000 (20:28 -0000)]
For bug #185278, make the verbose flag display show masked/forced flag status for binary packages too.
svn path=/main/trunk/; revision=7254
Zac Medico [Sat, 14 Jul 2007 08:05:03 +0000 (08:05 -0000)]
PDEPEND is now installed as soon as possible so that it behaves more like RDEPEND.
svn path=/main/trunk/; revision=7251
Zac Medico [Sat, 14 Jul 2007 04:10:19 +0000 (04:10 -0000)]
Fix it so that the 'repository could not be determined' message is shown when appropriate (issue with variable scope).
svn path=/main/trunk/; revision=7250
Zac Medico [Sat, 14 Jul 2007 03:36:17 +0000 (03:36 -0000)]
Misc fixes for verbose repo output:
- Support binary packages by using the 'repository' metadata that's stored in the package.
- Support PORTAGE_CONFIGROOT, showing repos from both configs if necessary.
- Dynamic allocation of repo indexes so only relevant repos are shown.
svn path=/main/trunk/; revision=7249
Zac Medico [Fri, 13 Jul 2007 23:37:09 +0000 (23:37 -0000)]
Save the repo name along with the other metadata inside dyn_compile() so that it's saved inside binary packages for when they are finally merged.
svn path=/main/trunk/; revision=7247
Zac Medico [Fri, 13 Jul 2007 19:40:30 +0000 (19:40 -0000)]
Use os.path.realpath(portdir) for comparison of repo paths. (branchs/prefix r7245)
svn path=/main/trunk/; revision=7246
Zac Medico [Thu, 12 Jul 2007 09:12:36 +0000 (09:12 -0000)]
Add "reset" to the list of attributes.
svn path=/main/trunk/; revision=7242
Zac Medico [Thu, 12 Jul 2007 04:50:13 +0000 (04:50 -0000)]
Fix the case where the currently installed package is from a repo that is no longer in the overlay (oldrepo is None rather than an empty string).
svn path=/main/trunk/; revision=7241
Zac Medico [Thu, 12 Jul 2007 00:22:53 +0000 (00:22 -0000)]
Make depgraph._reinstall_for_flags() always return all revelant flags.
svn path=/main/trunk/; revision=7239
Zac Medico [Thu, 12 Jul 2007 00:07:17 +0000 (00:07 -0000)]
For bug #184983, prevent USE_EXPAND_HIDDEN flags from being hidden if they are the only thing that triggered reinstallation.
svn path=/main/trunk/; revision=7237
Zac Medico [Wed, 11 Jul 2007 04:54:03 +0000 (04:54 -0000)]
Use set.discard() instead of remove() to avoid a potential KeyError.
svn path=/main/trunk/; revision=7230
Zac Medico [Wed, 11 Jul 2007 04:18:16 +0000 (04:18 -0000)]
Fix typo.
svn path=/main/trunk/; revision=7228
Zac Medico [Wed, 11 Jul 2007 02:53:51 +0000 (02:53 -0000)]
Fix another case similar to bug #184806 that can occur with --onlydeps.
svn path=/main/trunk/; revision=7226
Zac Medico [Wed, 11 Jul 2007 01:16:36 +0000 (01:16 -0000)]
Fix typo.
svn path=/main/trunk/; revision=7224
Zac Medico [Wed, 11 Jul 2007 01:08:39 +0000 (01:08 -0000)]
For bug #184687, skip the huge --depclean warning when --quiet mode is enabled.
svn path=/main/trunk/; revision=7222
Zac Medico [Wed, 11 Jul 2007 00:33:04 +0000 (00:33 -0000)]
For bug #184679, handle ENOTDIR by finding the non-directory parent and testing that for collision instead.
svn path=/main/trunk/; revision=7220
Zac Medico [Tue, 10 Jul 2007 23:08:40 +0000 (23:08 -0000)]
For bug #184843, allow USE_EXPAND variables to pass through if none of their flags are in IUSE. This allows packages that support LINGUAS but don't declare it in IUSE to use the variable outside of the USE_EXPAND context.
svn path=/main/trunk/; revision=7218
Zac Medico [Tue, 10 Jul 2007 18:20:58 +0000 (18:20 -0000)]
For bug #184604, make env-update write $ in front of quoted values when appropriate.
svn path=/main/trunk/; revision=7216
Zac Medico [Tue, 10 Jul 2007 16:53:51 +0000 (16:53 -0000)]
For bug #184806, account for the fact the metadata is not cached for slot_collision_nodes.
svn path=/main/trunk/; revision=7214
Zac Medico [Mon, 9 Jul 2007 19:28:45 +0000 (19:28 -0000)]
Remove the repo_name warning in the portdbapi constructor since we don't want to see a warning every time the portage module is imported.
svn path=/main/trunk/; revision=7212
Ned Ludd [Mon, 9 Jul 2007 18:11:10 +0000 (18:11 -0000)]
- be quiet about overlays profiles/repo_name entry when --quiet mode is used
svn path=/main/trunk/; revision=7211
Ned Ludd [Mon, 9 Jul 2007 18:10:15 +0000 (18:10 -0000)]
- remove readable bits for debug files if the souce ELF is setXid
svn path=/main/trunk/; revision=7210
Zac Medico [Mon, 9 Jul 2007 10:10:20 +0000 (10:10 -0000)]
Fix interaction of resume opts with spinner output handling so that output always looks correct.
svn path=/main/trunk/; revision=7207
Marius Mauch [Mon, 9 Jul 2007 05:53:30 +0000 (05:53 -0000)]
simplify logic a bit
svn path=/main/trunk/; revision=7206
Zac Medico [Sun, 8 Jul 2007 16:44:47 +0000 (16:44 -0000)]
Pass the file path into the PermissionDenied exception.
svn path=/main/trunk/; revision=7204
Zac Medico [Sun, 8 Jul 2007 16:36:58 +0000 (16:36 -0000)]
Make dblink invalidate the vardbapi caches for each merge and unmerge. Don't use portage.listdir() since mtime granularity can prevent cachedir from invalidating it's cache properly and this redundant cache layer isn't needed anyway. This should solve the intermittent failure of AUTOCLEAN to properly clean packages.
svn path=/main/trunk/; revision=7203
Zac Medico [Sun, 8 Jul 2007 07:24:12 +0000 (07:24 -0000)]
For bug #184566, enable the emerge --info action to run an option pkg_info() function from each installed ebuild.
svn path=/main/trunk/; revision=7201