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
Marius Mauch [Sun, 11 Feb 2007 01:13:56 +0000 (01:13 -0000)]
Make subpackage naming consistent
svn path=/main/trunk/; revision=5955
Zac Medico [Sun, 11 Feb 2007 01:07:30 +0000 (01:07 -0000)]
import best() from portage.versions
svn path=/main/trunk/; revision=5954
Marius Mauch [Sun, 11 Feb 2007 00:57:06 +0000 (00:57 -0000)]
Use the real symbols in import statements, not the references in __init__.py
svn path=/main/trunk/; revision=5953
Zac Medico [Sat, 10 Feb 2007 22:18:07 +0000 (22:18 -0000)]
Make xterm titles work even when color is disabled. Thanks to Joachim Kaeber <joachim.kaeber@web.de> in bug #166255.
svn path=/main/trunk/; revision=5950
Zac Medico [Sat, 10 Feb 2007 22:04:41 +0000 (22:04 -0000)]
Add missing VDB_PATH to fix vardbapi.aux_get() breakage.
svn path=/main/trunk/; revision=5949
Zac Medico [Sat, 10 Feb 2007 21:59:24 +0000 (21:59 -0000)]
Fix vardb.cpv_all() breakage.
svn path=/main/trunk/; revision=5948
Zac Medico [Sat, 10 Feb 2007 21:50:28 +0000 (21:50 -0000)]
Fix missing stat import.
svn path=/main/trunk/; revision=5947
Zac Medico [Sat, 10 Feb 2007 21:47:02 +0000 (21:47 -0000)]
Break a recursive loop.
svn path=/main/trunk/; revision=5946
Zac Medico [Sat, 10 Feb 2007 21:43:35 +0000 (21:43 -0000)]
Use os.path.realpath to handle symlinks properly.
svn path=/main/trunk/; revision=5945
Zac Medico [Sat, 10 Feb 2007 20:43:43 +0000 (20:43 -0000)]
fix broken imports
svn path=/main/trunk/; revision=5944
Zac Medico [Sat, 10 Feb 2007 20:36:44 +0000 (20:36 -0000)]
remove broken dblink import
svn path=/main/trunk/; revision=5943
Zac Medico [Sat, 10 Feb 2007 20:26:20 +0000 (20:26 -0000)]
Fix automatic sys.path insertions so that they're relative instead of absolute hard coded.
svn path=/main/trunk/; revision=5942
Zac Medico [Sat, 10 Feb 2007 20:01:13 +0000 (20:01 -0000)]
Fix imports from the emerge package.
svn path=/main/trunk/; revision=5941
Zac Medico [Sat, 10 Feb 2007 19:56:41 +0000 (19:56 -0000)]
fix syntax
svn path=/main/trunk/; revision=5940
Marius Mauch [Sat, 10 Feb 2007 18:18:48 +0000 (18:18 -0000)]
Move dbapi and related classes out of __init__.py into their own subpackage.
Also perform some minor cleanups.
svn path=/main/trunk/; revision=5939
Alec Warner [Sat, 10 Feb 2007 18:15:24 +0000 (18:15 -0000)]
add docstrings
svn path=/main/trunk/; revision=5938
Alec Warner [Sat, 10 Feb 2007 04:46:23 +0000 (04:46 -0000)]
fix a few broken tests
svn path=/main/trunk/; revision=5935
Alec Warner [Sat, 10 Feb 2007 03:19:01 +0000 (03:19 -0000)]
update test notes
svn path=/main/trunk/; revision=5934
Marius Mauch [Thu, 8 Feb 2007 13:39:03 +0000 (13:39 -0000)]
Create namespace for emerge
svn path=/main/trunk/; revision=5931
Alec Warner [Thu, 8 Feb 2007 04:38:21 +0000 (04:38 -0000)]
die requires diefunc and dump_trace too; duh; also move extdebug into isolated-functions.sh
svn path=/main/trunk/; revision=5930
Zac Medico [Thu, 8 Feb 2007 04:22:27 +0000 (04:22 -0000)]
Make the "lfull" output more succinct by omitting categories for which there are no violations.
svn path=/main/trunk/; revision=5928
Zac Medico [Thu, 8 Feb 2007 02:38:44 +0000 (02:38 -0000)]
Turn on strict dep checking to fix the isvalidatom test.
svn path=/main/trunk/; revision=5926
Zac Medico [Wed, 7 Feb 2007 23:40:25 +0000 (23:40 -0000)]
Synchronize required hash code in all relevant places.
svn path=/main/trunk/; revision=5924
Zac Medico [Wed, 7 Feb 2007 23:01:27 +0000 (23:01 -0000)]
For bug #165783, handle a potential InvalidDependString exception in repoman and report a SRC_URI.syntax failure.
svn path=/main/trunk/; revision=5922
Zac Medico [Wed, 7 Feb 2007 22:24:06 +0000 (22:24 -0000)]
For bug #165783, handle a potential InvalidDependString exception inside doebuild().
svn path=/main/trunk/; revision=5920
Zac Medico [Wed, 7 Feb 2007 21:54:41 +0000 (21:54 -0000)]
Enable strict dep checking for repoman.
svn path=/main/trunk/; revision=5918
Zac Medico [Wed, 7 Feb 2007 21:47:43 +0000 (21:47 -0000)]
For bug #165783, handle a potential InvalidDependString exception inside digestgen().
svn path=/main/trunk/; revision=5916
Zac Medico [Wed, 7 Feb 2007 21:11:44 +0000 (21:11 -0000)]
For bug #165780, make config-protect code consistently ignore '.*~' and '.*.bak'.
svn path=/main/trunk/; revision=5914
Zac Medico [Wed, 7 Feb 2007 20:45:49 +0000 (20:45 -0000)]
Only echo PORTAGE_LOG_FILE if it's actually set (may not be if sesandbox is enabled).
svn path=/main/trunk/; revision=5912
Alec Warner [Wed, 7 Feb 2007 20:33:45 +0000 (20:33 -0000)]
move die into isolated-functions.sh
svn path=/main/trunk/; revision=5910
Zac Medico [Wed, 7 Feb 2007 19:54:13 +0000 (19:54 -0000)]
For bug #165783, handle an InvalidDependString exception triggered by an invalid SRC_URI.
svn path=/main/trunk/; revision=5908
Zac Medico [Wed, 7 Feb 2007 19:27:50 +0000 (19:27 -0000)]
For backward compatibility with api consumers, _dep_check_strict behavior will be explicitly enabled as necessary. Thanks to Brian <dol-sen@telus.net> for reporting issues with porthole and equery.
svn path=/main/trunk/; revision=5907
Zac Medico [Tue, 6 Feb 2007 21:45:53 +0000 (21:45 -0000)]
Update modules doc for the new portage namespace.
svn path=/main/trunk/; revision=5906
Zac Medico [Tue, 6 Feb 2007 18:45:34 +0000 (18:45 -0000)]
Document PORTAGE_WORKDIR_MODE for bug #8688. Thanks to Peter Hjalmarsson in bug #164617.
svn path=/main/trunk/; revision=5904
Zac Medico [Tue, 6 Feb 2007 09:36:53 +0000 (09:36 -0000)]
Make sure to fetch files if MANIFEST2_REQUIRED_HASH is missing.
svn path=/main/trunk/; revision=5903
Marius Mauch [Tue, 6 Feb 2007 09:28:54 +0000 (09:28 -0000)]
Check if entries contain the required hashes before writing the Manifest
svn path=/main/trunk/; revision=5902
Zac Medico [Mon, 5 Feb 2007 21:24:01 +0000 (21:24 -0000)]
For bug #165382, show a helpful message if an exception is raised from cpv_expand().
svn path=/main/trunk/; revision=5897
Zac Medico [Mon, 5 Feb 2007 20:13:37 +0000 (20:13 -0000)]
Fix another UnboundLocalError (branches/prefix r5893)
svn path=/main/trunk/; revision=5895
Zac Medico [Mon, 5 Feb 2007 06:46:31 +0000 (06:46 -0000)]
Ensure that the code for bug #165342 only affects name collisions with virtuals.
svn path=/main/trunk/; revision=5891
Zac Medico [Mon, 5 Feb 2007 06:27:35 +0000 (06:27 -0000)]
For bug #165382, don't raise a ValueError in cpv_expand() if there are only two matches and one of them is a virtual. Prefer the non-virtual instead.
svn path=/main/trunk/; revision=5890
Zac Medico [Mon, 5 Feb 2007 01:22:22 +0000 (01:22 -0000)]
Document --config-root for bug #165334.
svn path=/main/trunk/; revision=5889
Zac Medico [Mon, 5 Feb 2007 00:00:11 +0000 (00:00 -0000)]
For bug #165349, use the portage_versions regex (via pkgsplit) instead of the incompatible ones that repoman currently uses.
svn path=/main/trunk/; revision=5888
Zac Medico [Sat, 3 Feb 2007 23:49:22 +0000 (23:49 -0000)]
Fix "UnboundLocalError: local variable 'portage' referenced before assignment" caused by a local import hiding a global import.
svn path=/main/trunk/; revision=5887
Zac Medico [Sat, 3 Feb 2007 12:03:23 +0000 (12:03 -0000)]
In order to correctly handl the case of target caches that don't have complete eclass entries, validate the set of interited eclasses to make sure it is correct (since timestamp validation is not applicable).
svn path=/main/trunk/; revision=5880
Zac Medico [Sat, 3 Feb 2007 11:16:18 +0000 (11:16 -0000)]
Fix a typo from the previos commit.
svn path=/main/trunk/; revision=5879
Zac Medico [Sat, 3 Feb 2007 11:13:03 +0000 (11:13 -0000)]
Use ! -type l to exclude symlinks better. Thanks to marienz.
svn path=/main/trunk/; revision=5878
Zac Medico [Sat, 3 Feb 2007 10:26:08 +0000 (10:26 -0000)]
For bug #165034, make sure that symlinks are excluded from chmod calls.
svn path=/main/trunk/; revision=5877
Zac Medico [Sat, 3 Feb 2007 05:20:05 +0000 (05:20 -0000)]
Make the tests pass.
svn path=/main/trunk/; revision=5876