Zac Medico [Sat, 3 Mar 2007 23:05:27 +0000 (23:05 -0000)]
Only prune duplicate consecutive nodes if they both have depth == 0.
svn path=/main/trunk/; revision=6158
Zac Medico [Sat, 3 Mar 2007 21:42:46 +0000 (21:42 -0000)]
Pass waiting_msg into recursive lockfile() calls.
svn path=/main/trunk/; revision=6156
Alec Warner [Sat, 3 Mar 2007 18:31:15 +0000 (18:31 -0000)]
make sure uid is an int
svn path=/main/trunk/; revision=6155
Alec Warner [Sat, 3 Mar 2007 18:00:42 +0000 (18:00 -0000)]
In the same vein as copyright, add Id and svn:keywords to it
svn path=/main/trunk/; revision=6154
Alec Warner [Sat, 3 Mar 2007 17:52:08 +0000 (17:52 -0000)]
you can't insert into sys.path without importing sys...
svn path=/main/trunk/; revision=6153
Zac Medico [Sat, 3 Mar 2007 11:24:11 +0000 (11:24 -0000)]
Make sure that excess "nomerge" nodes are pruned correctly.
svn path=/main/trunk/; revision=6148
Zac Medico [Sat, 3 Mar 2007 10:38:17 +0000 (10:38 -0000)]
Add missing sys import.
svn path=/main/trunk/; revision=6146
Zac Medico [Sat, 3 Mar 2007 09:49:30 +0000 (09:49 -0000)]
For bug #138840, show a more informative message when waiting for a distfiles lock due to parallel-fetch. Thanks to David Watzke <david@watzke.cz> for the initial patch.
svn path=/main/trunk/; revision=6143
Zac Medico [Sat, 3 Mar 2007 08:54:08 +0000 (08:54 -0000)]
s/node/selected_parent/ for clarity
svn path=/main/trunk/; revision=6141
Alec Warner [Sat, 3 Mar 2007 06:15:19 +0000 (06:15 -0000)]
remove category regex, dumb idea, sorry I did it
svn path=/main/trunk/; revision=6138
Zac Medico [Sat, 3 Mar 2007 01:53:18 +0000 (01:53 -0000)]
Fix types.InstanceType test which is failing now for some reason.
svn path=/main/trunk/; revision=6137
Zac Medico [Sat, 3 Mar 2007 01:19:29 +0000 (01:19 -0000)]
For bug #169046, fill in the --tree display with "nomerge" nodes so that the user can always see at lease 1 parent on any non-root node. Packages may appear in the display list multiple times, and will be marked "nomerge" when their position in the list does not correspond to actual merge order.
svn path=/main/trunk/; revision=6135
Zac Medico [Fri, 2 Mar 2007 20:06:20 +0000 (20:06 -0000)]
When emerge automatically resumes, add --ignore-default-opts to the command line in order to prevent things like --ask from leaking in via EMERGE_DEFAULT_OPTS. Thanks to Peter Weller <welp@gentoo.org> for reporting.
svn path=/main/trunk/; revision=6133
Zac Medico [Fri, 2 Mar 2007 07:23:06 +0000 (07:23 -0000)]
For bug #168646, remove --prune-empty-dirs from PORTAGE_RSYNC_OPTS since it's only a small optimization and it's inconvenient to force >=rsync-2.6.4 on server admins at this time. If users desire, they can still add it to PORTAGE_RSYNC_EXTRA_OPTS.
svn path=/main/trunk/; revision=6129
Zac Medico [Fri, 2 Mar 2007 01:47:34 +0000 (01:47 -0000)]
Even if there's no timestamp available locally, fetch the timestamp anyway as an initial probe to verify that the server is responsive. This protects us from hanging indefinitely on a connection attempt to an unresponsive server which rsync's --timeout option does not prevent.
svn path=/main/trunk/; revision=6127
Zac Medico [Fri, 2 Mar 2007 00:10:40 +0000 (00:10 -0000)]
Remove unnecessary print statement reported by solar.
svn path=/main/trunk/; revision=6125
Zac Medico [Thu, 1 Mar 2007 23:47:23 +0000 (23:47 -0000)]
Fix broken rsync exitcode shift.
svn path=/main/trunk/; revision=6123
Zac Medico [Thu, 1 Mar 2007 23:31:16 +0000 (23:31 -0000)]
Fix the rest of the broken except statement syntax.
svn path=/main/trunk/; revision=6121
Zac Medico [Thu, 1 Mar 2007 23:18:16 +0000 (23:18 -0000)]
Fix broken except statement syntax.
svn path=/main/trunk/; revision=6119
Zac Medico [Thu, 1 Mar 2007 22:20:39 +0000 (22:20 -0000)]
For consistency, remove exit code 2 (protocol incompatibility) from the other list of rsync exit codes.
svn path=/main/trunk/; revision=6117
Zac Medico [Thu, 1 Mar 2007 22:06:52 +0000 (22:06 -0000)]
Add compatibility code to avoid the GNU specific --reference option of chmod. Thanks to Timothy Redaelli <drizzt@gentoo.org>.
svn path=/main/trunk/; revision=6115
Ned Ludd [Thu, 1 Mar 2007 21:19:21 +0000 (21:19 -0000)]
- please be --quiet emerge. still need to hunt down one more newline
svn path=/main/trunk/; revision=6113
Zac Medico [Thu, 1 Mar 2007 20:49:33 +0000 (20:49 -0000)]
Make sure pids are appropriately removed from portage.process.spawned_pids.
svn path=/main/trunk/; revision=6111
Zac Medico [Thu, 1 Mar 2007 20:37:15 +0000 (20:37 -0000)]
Use an alarm signal to implement a timeout when rsync is fetching the server timestamp file, since rsync's --timeout option doesn't apply to the initial connection attempt.
svn path=/main/trunk/; revision=6109
Zac Medico [Thu, 1 Mar 2007 19:03:01 +0000 (19:03 -0000)]
Fix misplaced [1]
svn path=/main/trunk/; revision=6107
Zac Medico [Thu, 1 Mar 2007 12:44:54 +0000 (12:44 -0000)]
For bug #168646, don't bail out immediately when rsync detects protocol incompatibility (code 2) during fetching of the timestamp file. Retry for a better server (up to PORTAGE_RSYNC_RETRIES).
svn path=/main/trunk/; revision=6104
Zac Medico [Thu, 1 Mar 2007 03:35:39 +0000 (03:35 -0000)]
For bug #168823, fix broken except statement syntax that prevents the ValueError from being caught as intended.
svn path=/main/trunk/; revision=6102
Mike Frysinger [Wed, 28 Feb 2007 14:45:36 +0000 (14:45 -0000)]
update --help example to match current behavior #168678 by Arthur Hagen
svn path=/main/trunk/; revision=6100
Zac Medico [Tue, 27 Feb 2007 21:45:01 +0000 (21:45 -0000)]
Merged from branches/prefix r6092:6093.
Avoid "TypeError: unpack non-sequence" backtraces, and return a set of
None, None when was asked for the location.
svn path=/main/trunk/; revision=6099
Zac Medico [Tue, 27 Feb 2007 21:32:24 +0000 (21:32 -0000)]
Merged from branches/prefix r6091:6092.
Fix undefined whatever 'best' error by importing it from
portage.versions
svn path=/main/trunk/; revision=6098
Zac Medico [Tue, 27 Feb 2007 05:04:34 +0000 (05:04 -0000)]
For bug #168267, use add --force to the default PORTAGE_COMPRESS_FLAGS so that hardlinks are automatically broken.
svn path=/main/trunk/; revision=6088
Zac Medico [Tue, 27 Feb 2007 04:54:18 +0000 (04:54 -0000)]
For compatibility with older findutils, don't use the -L predicate (bug #168432).
svn path=/main/trunk/; revision=6086
Zac Medico [Mon, 26 Feb 2007 03:37:40 +0000 (03:37 -0000)]
For bug #167668, prune empty ${FILESDIR}s by adding --prune-empty-dirs to PORTAGE_RSYNC_OPTS. Thanks to Ulrich Mueller <ulm@kph.uni-mainz.de> for the suggestion.
svn path=/main/trunk/; revision=6070
Zac Medico [Sat, 24 Feb 2007 12:43:04 +0000 (12:43 -0000)]
Clean up os.environ["USERLAND"] pollution from the portage.data module so that it doesn't interfere with repoman.
svn path=/main/trunk/; revision=6068
Zac Medico [Sat, 24 Feb 2007 00:56:59 +0000 (00:56 -0000)]
Allow --verbose to trigger a merge list even without --pretend, --ask, or --tree. Thanks to agaffney and zlin for the suggestion.
svn path=/main/trunk/; revision=6066
Zac Medico [Fri, 23 Feb 2007 23:52:14 +0000 (23:52 -0000)]
As requested by solar, never show a merge list unless it's explicitly requested by --ask, --pretend, or --tree.
svn path=/main/trunk/; revision=6064
Zac Medico [Fri, 23 Feb 2007 23:39:28 +0000 (23:39 -0000)]
As requested by solar, never show a merge list unless it's explicitly requested by --ask, --pretend, or --tree.
svn path=/main/trunk/; revision=6062
Zac Medico [Fri, 23 Feb 2007 23:20:32 +0000 (23:20 -0000)]
Filter paths matching '/<built-in>$' that come from debugedit. Thanks to Ed Catmur for this patch from bug #165342.
svn path=/main/trunk/; revision=6060
Zac Medico [Fri, 23 Feb 2007 21:26:13 +0000 (21:26 -0000)]
Do not show the spinner and the "Calculating dependencies" message for installation actions when the --nodeps option has been specified. Thanks to David Watzke <david@watzke.cz> for this patch from bug #168169.
svn path=/main/trunk/; revision=6058
Zac Medico [Fri, 23 Feb 2007 14:11:50 +0000 (14:11 -0000)]
Make fetch() bail out when an "Insufficient data for checksum verification" error occurs.
svn path=/main/trunk/; revision=6056
Zac Medico [Fri, 23 Feb 2007 13:23:22 +0000 (13:23 -0000)]
Make verify_all() return an "insufficient data" error if there is not at least one supported hash type.
svn path=/main/trunk/; revision=6055
Robin H. Johnson [Fri, 23 Feb 2007 10:19:39 +0000 (10:19 -0000)]
Undoing previous test
svn path=/main/trunk/; revision=6054
Robin H. Johnson [Fri, 23 Feb 2007 10:03:58 +0000 (10:03 -0000)]
Testing CIA commit logs, will undo in a moment.
svn path=/main/trunk/; revision=6053
Zac Medico [Fri, 23 Feb 2007 00:56:06 +0000 (00:56 -0000)]
spawn rsync without a shell.
svn path=/main/trunk/; revision=6051
Zac Medico [Thu, 22 Feb 2007 23:44:09 +0000 (23:44 -0000)]
Remove quotes since rsync doesn't accept them (and there is no shell to remove them since we use spawn() for rsync now).
svn path=/main/trunk/; revision=6048
Zac Medico [Thu, 22 Feb 2007 23:42:12 +0000 (23:42 -0000)]
For bug #167668, use an rsync "hide" filter rule to exclude **/files/digest-* and delete them on the receiver.
svn path=/main/trunk/; revision=6047
Zac Medico [Thu, 22 Feb 2007 22:15:08 +0000 (22:15 -0000)]
Don't bother to parse ${FILESDIR}/digest-* when manifest1_compat is disabled.
svn path=/main/trunk/; revision=6045
Zac Medico [Thu, 22 Feb 2007 21:43:43 +0000 (21:43 -0000)]
For bug #167667, add support for ${PORTDIR}/manifest1_obsolete and automatically remove ${FILESDIR}/digest-* from cvs when appropriate.
svn path=/main/trunk/; revision=6042
Zac Medico [Thu, 22 Feb 2007 21:37:10 +0000 (21:37 -0000)]
For bug #167667, use the existence of ${PORTDIR}/manifest1_obsolete to trigger the disabling of manifest1/digest file generation. This toggle is repo/overlay specific, allowing a specific overlay to drop manifest1 buy adding the manifest1_obsolete file.
svn path=/main/trunk/; revision=6041
Zac Medico [Thu, 22 Feb 2007 21:10:31 +0000 (21:10 -0000)]
Make sure that ${A} in initialized in case pkg_nofetch() needs to be called. Thanks to Peper for reporting.
svn path=/main/trunk/; revision=6039
Zac Medico [Thu, 22 Feb 2007 20:54:17 +0000 (20:54 -0000)]
Fix "NameError: global name 'myfilelist' is not defined" when collision-protect is enabled.
svn path=/main/trunk/; revision=6038
Zac Medico [Thu, 22 Feb 2007 13:18:09 +0000 (13:18 -0000)]
Add some sanity checks for file list handling when repolevel < 3.
svn path=/main/trunk/; revision=6036
Zac Medico [Thu, 22 Feb 2007 13:09:55 +0000 (13:09 -0000)]
Fix broken file list handling for FEATUES=sign when only the Manifest has changed.
svn path=/main/trunk/; revision=6035
Zac Medico [Thu, 22 Feb 2007 12:48:25 +0000 (12:48 -0000)]
Fix more broken commitmessagefile handling.
svn path=/main/trunk/; revision=6033
Zac Medico [Thu, 22 Feb 2007 12:30:25 +0000 (12:30 -0000)]
Use startdir instead of mydir since mydir has a trailing slash which triggers normalization issues with the dirname function.
svn path=/main/trunk/; revision=6031
Zac Medico [Thu, 22 Feb 2007 11:59:58 +0000 (11:59 -0000)]
Avoid a TypeError when commitmessagefile is None.
svn path=/main/trunk/; revision=6029
Zac Medico [Wed, 21 Feb 2007 10:10:15 +0000 (10:10 -0000)]
Fix stardir and repodir logic from the previous commit.
svn path=/main/trunk/; revision=6027
Zac Medico [Wed, 21 Feb 2007 09:30:59 +0000 (09:30 -0000)]
For consistency, replace multiple os.getcwd() calls with the "mydir" variable.
svn path=/main/trunk/; revision=6024
Zac Medico [Wed, 21 Feb 2007 09:25:32 +0000 (09:25 -0000)]
s/x/xs/ to fix a typo in a variable name.
svn path=/main/trunk/; revision=6023
Zac Medico [Wed, 21 Feb 2007 04:35:53 +0000 (04:35 -0000)]
Raise a CommandNotFound exception when necessary, to ease troubleshooting. Thanks to marienz for reporting.
svn path=/main/trunk/; revision=6021
Zac Medico [Tue, 20 Feb 2007 21:48:34 +0000 (21:48 -0000)]
For bug #167795, try avoid the population routine when possible, so that FEATURES=buildpkg doesn't always force population.
svn path=/main/trunk/; revision=6019
Zac Medico [Tue, 20 Feb 2007 21:25:03 +0000 (21:25 -0000)]
As requested by vapier, don't show the merge list in --quiet mode unless it's explicitly requested via --ask or --pretend.
svn path=/main/trunk/; revision=6017
Zac Medico [Mon, 19 Feb 2007 07:33:24 +0000 (07:33 -0000)]
Optimize order for --tree display of circular dependencies.
svn path=/main/trunk/; revision=6014
Zac Medico [Mon, 19 Feb 2007 07:08:17 +0000 (07:08 -0000)]
Make digraph._merge_order_bias() operate on a single digraph that's passed in.
svn path=/main/trunk/; revision=6012
Zac Medico [Mon, 19 Feb 2007 06:35:02 +0000 (06:35 -0000)]
For bug #167450, optimize leaf node selection by ordering nodes from highest to lowest overall reference count.
svn path=/main/trunk/; revision=6010
Zac Medico [Mon, 19 Feb 2007 01:24:10 +0000 (01:24 -0000)]
Automatically enable --tree mode when displaying nodes with circular deps.
svn path=/main/trunk/; revision=6008
Zac Medico [Mon, 19 Feb 2007 00:45:57 +0000 (00:45 -0000)]
For bug #166564, make a circular dependency panic more user friendly by displaying the USE flags that are enabled on nodes that are part of dependency cycles and display a note hinting that circular dependencies can often be avoided by temporarily disabling USE flags.
svn path=/main/trunk/; revision=6006
Zac Medico [Sun, 18 Feb 2007 23:27:57 +0000 (23:27 -0000)]
Don't exclude . since that excludes the entire contents of some tar files.
svn path=/main/trunk/; revision=6004
Zac Medico [Sun, 18 Feb 2007 23:15:54 +0000 (23:15 -0000)]
When calling tar, always exclud . in order to preserver PORTAGE_WORKDIR_MODE. Thanks to Brian Harring in bug #167544.
svn path=/main/trunk/; revision=6002
Zac Medico [Sun, 18 Feb 2007 22:21:42 +0000 (22:21 -0000)]
For bug #166880, always display the merge list header.
svn path=/main/trunk/; revision=6000
Zac Medico [Sun, 18 Feb 2007 21:55:44 +0000 (21:55 -0000)]
For bug #166880, always display the merge list (allowing --tree to be obeyed in any case).
svn path=/main/trunk/; revision=5998
Zac Medico [Sun, 18 Feb 2007 20:45:14 +0000 (20:45 -0000)]
For bug #167450, optimize merge order by delaying the merge of root nodes.
svn path=/main/trunk/; revision=5996
Marius Mauch [Sun, 18 Feb 2007 20:19:29 +0000 (20:19 -0000)]
set.remove() returns None, so can't use it in a function call
svn path=/main/trunk/; revision=5995
Marius Mauch [Sun, 18 Feb 2007 19:28:06 +0000 (19:28 -0000)]
Move preserve-libs and collision-protect code from treewalk() into their own functions
svn path=/main/trunk/; revision=5994
Marius Mauch [Sun, 18 Feb 2007 18:27:59 +0000 (18:27 -0000)]
extend check for internal references, should remove all libs that are only used internally now
svn path=/main/trunk/; revision=5993
Marius Mauch [Sun, 18 Feb 2007 15:38:56 +0000 (15:38 -0000)]
Move reverse NEEDED cache into CACHE_PATH and use a more descriptive name
svn path=/main/trunk/; revision=5992
Zac Medico [Sun, 18 Feb 2007 08:45:52 +0000 (08:45 -0000)]
For bug #163990, warn about binary packages with invalid categories and do not allow them to be installed.
svn path=/main/trunk/; revision=5990
Zac Medico [Sun, 18 Feb 2007 08:22:39 +0000 (08:22 -0000)]
For bug #163990, warn about ebuilds with invalid categories and do not allow them to be installed.
svn path=/main/trunk/; revision=5988
Zac Medico [Sun, 18 Feb 2007 07:47:32 +0000 (07:47 -0000)]
For bug #166785, check for invalid categories in the world file.
svn path=/main/trunk/; revision=5986
Zac Medico [Sat, 17 Feb 2007 19:30:23 +0000 (19:30 -0000)]
Fix package.provided breakage from the fix for bug #166939.
svn path=/main/trunk/; revision=5984
Zac Medico [Sat, 17 Feb 2007 19:12:47 +0000 (19:12 -0000)]
Remove unnecessary import that triggers DEPRECATION NOTICE.
svn path=/main/trunk/; revision=5983
Zac Medico [Sat, 17 Feb 2007 19:08:08 +0000 (19:08 -0000)]
For bug #166939, make --nodeps work like a normal package for new-style virtuals.
svn path=/main/trunk/; revision=5982
Marius Mauch [Sat, 17 Feb 2007 13:11:28 +0000 (13:11 -0000)]
Replace compat symlinks with a new compat module as the symlink solution prevents reuse of state information (requested by ferringb)
svn path=/main/trunk/; revision=5981
Marius Mauch [Sat, 17 Feb 2007 13:10:47 +0000 (13:10 -0000)]
Remove portage_exec.py as subversion is stupid and can't convert it in one step
svn path=/main/trunk/; revision=5980
Marius Mauch [Sat, 17 Feb 2007 11:21:13 +0000 (11:21 -0000)]
For full backwards compat (with symlinks or other weird stuff) import everything into the main namespace
svn path=/main/trunk/; revision=5979
Marius Mauch [Sat, 17 Feb 2007 11:07:39 +0000 (11:07 -0000)]
Move bin/emerge to pym/emerge/__init__.py to restore old import behavior as the load_source solution doesn't work properly
svn path=/main/trunk/; revision=5978
Marius Mauch [Sat, 17 Feb 2007 10:46:49 +0000 (10:46 -0000)]
Make emerge importable again without relying on module search path order
svn path=/main/trunk/; revision=5977
Marius Mauch [Sat, 17 Feb 2007 09:14:53 +0000 (09:14 -0000)]
Print hostname in xterm title if sheridan is available in the environment
svn path=/main/trunk/; revision=5976
Marius Mauch [Sat, 17 Feb 2007 08:53:35 +0000 (08:53 -0000)]
Ignore compiled files.
Add new feature 'preserve-libs' that injects files into $D that
- belong to a package instance that is about to be autocleaned
- are not installed by the new package instance
- are listed in at least one NEEDED file in vdb
- are not just used by other files of the package instance
As a side-effect a new file /var/db/pkg/.NEEDED is created that
contains a reversed map of the NEEDED files found in a packages dbdir.
svn path=/main/trunk/; revision=5975
Marius Mauch [Sat, 17 Feb 2007 04:17:14 +0000 (04:17 -0000)]
Print filename when displaying package.mask comments
svn path=/main/trunk/; revision=5974
Marius Mauch [Sat, 17 Feb 2007 03:53:30 +0000 (03:53 -0000)]
Add support for RSYNC_EXTRA_OPTS to webrsync
svn path=/main/trunk/; revision=5973
Zac Medico [Thu, 15 Feb 2007 20:23:26 +0000 (20:23 -0000)]
Add missing quotes.
svn path=/main/trunk/; revision=5970
Zac Medico [Thu, 15 Feb 2007 20:21:49 +0000 (20:21 -0000)]
Fix CONFIG_PROTECT_MASK support. Thanks to piavlo <piavka@cs.bgu.ac.il> for this patch from bug #166837.
svn path=/main/trunk/; revision=5969
Zac Medico [Wed, 14 Feb 2007 22:48:37 +0000 (22:48 -0000)]
Optimize merge order calculation for --tree output when necessary.
svn path=/main/trunk/; revision=5967
Zac Medico [Wed, 14 Feb 2007 18:27:36 +0000 (18:27 -0000)]
For bug #158100, use an exact reversal of the actual merge order for --tree output. It's more efficient than doing 2 order calculations.
svn path=/main/trunk/; revision=5965
Zac Medico [Tue, 13 Feb 2007 19:57:44 +0000 (19:57 -0000)]
Fix broken imports.
svn path=/main/trunk/; revision=5963
Zac Medico [Tue, 13 Feb 2007 19:25:59 +0000 (19:25 -0000)]
Detect potential issues with mtime granlarity in env_update() and sleep if necessary. Thanks to Brian Harring for reporting.
svn path=/main/trunk/; revision=5961
Zac Medico [Tue, 13 Feb 2007 19:22:24 +0000 (19:22 -0000)]
Fix missing imports.
svn path=/main/trunk/; revision=5960
Mike Frysinger [Tue, 13 Feb 2007 00:38:47 +0000 (00:38 -0000)]
tweak PORT_LOGDIR comments so as to not give the wrong impression about the default value
svn path=/main/trunk/; revision=5959
Zac Medico [Mon, 12 Feb 2007 07:04:46 +0000 (07:04 -0000)]
In the event of a circular dependency panic, eliminate root nodes in order to reduce the noise level to a minimum.
svn path=/main/trunk/; revision=5956