portage.git
19 years agoMerged from trunk 6239:6242
Fabian Groffen [Sun, 18 Mar 2007 11:08:11 +0000 (11:08 -0000)]
Merged from trunk 6239:6242

make sure we prefix all arguments with $D, including ones that dont
start with a / (SpankMan)

Use locals() instead of setattr to insert generated functions into the
current module.  Thanks to Brian Harring for the suggestion.

Never use listdir with both recursion=True and followSymlinks=True since
it circular symlinks will lead to endless recursion loops.  Thanks to
Tobias Hahn <tobhahn@web.de> for this patch.

svn path=/main/branches/prefix/; revision=6243

19 years agoWhen using SVN and not signing, commit the Manifest on the first commit,
Fabian Groffen [Sat, 17 Mar 2007 18:06:15 +0000 (18:06 -0000)]
When using SVN and not signing, commit the Manifest on the first commit,
because the headers won't change, so it's faster... way faster.

svn path=/main/branches/prefix/; revision=6239

19 years agoMerged from trunk 6229:6234 (probably not prefix aware)
Fabian Groffen [Sat, 17 Mar 2007 14:49:53 +0000 (14:49 -0000)]
Merged from trunk 6229:6234 (probably not prefix aware)

start of framework for programs in portage bin (SpankMan)

Close /dev/null when finished.

Make paths independent of cwd.

Add "bin" to testDirs.

Call the base class destructor if it exists.

svn path=/main/branches/prefix/; revision=6238

19 years agoMerged from trunk 6221:6229
Fabian Groffen [Sat, 17 Mar 2007 14:36:40 +0000 (14:36 -0000)]
Merged from trunk 6221:6229

Fix a typo.

Fix broken exception handling.

Fix a broken test.

ignore *.py[co] (SpankMan)

Use mkstemp to create a random tempfile.

fix for older python who have oddly named __exc_info() (WarnerBro)

bump ________foo from the TestCase class since _exc_info() doesn't do
anything anyway (WarnerBro)

send stdout to /dev/null since we rely on the output of stdout here to
determine the proper suffix #171212 (SpankMan)

svn path=/main/branches/prefix/; revision=6237

19 years agoMerged from trunk 6218:6221
Fabian Groffen [Sat, 17 Mar 2007 14:32:58 +0000 (14:32 -0000)]
Merged from trunk 6218:6221

drop the need for the force flag by default and just delete the existing
files automatically #171007 (SpankMan)

redo compression so that it is queued up in src_install and then
dequeued post src_install (SpankMan)

forcibly break all hard links so we dont need to rely on --force in
compressor and tweak the _relocate_skip_dirs() func to handle whitespace
in paths (thanks to zmedico for tip) (SpankMan)

svn path=/main/branches/prefix/; revision=6236

19 years agoMerged from trunk 6209:6217
Fabian Groffen [Sat, 17 Mar 2007 14:22:40 +0000 (14:22 -0000)]
Merged from trunk 6209:6217

Automatically convert ROOT and PORTAGE_CONFIGROOT to absolute paths when
necessary since relative paths lead to problems.  Thanks to Christian
Heim <phreak@gentoo.org> for reporting.

Add back rstrip(os.path.sep) from the previous commit since it's needed
when ROOT="/".

For bug #163262 and conformance with section 7.2 of the PMS, make the
export attribute of variables persist between ebuild phases.

For bug #171117, ensure that the new and old config have different
timestamps (for the benefit of programs like rsync that need
distiguishable timestamps to detect file changes).  Thanks to Ben
Bennett <sink@limey.net> for reporting.

Fix a utime call to prevent a timestamp collision for bug #171117.

svn path=/main/branches/prefix/; revision=6235

19 years agoFix config protect from being broken in prefix: a prefix got lost here
Fabian Groffen [Thu, 15 Mar 2007 20:08:12 +0000 (20:08 -0000)]
Fix config protect from being broken in prefix: a prefix got lost here
when trying to follow genone's code moving I guess.

svn path=/main/branches/prefix/; revision=6209

19 years agoTidy up dylib QA check; aggregate found files, and check the .so files
Fabian Groffen [Thu, 15 Mar 2007 18:51:17 +0000 (18:51 -0000)]
Tidy up dylib QA check; aggregate found files, and check the .so files
we found are really Mach-O objects.  We do this, because portage
installs dolib.so, which is just a script.

svn path=/main/branches/prefix/; revision=6208

19 years agoMerged from trunk 6204:6205
Fabian Groffen [Wed, 14 Mar 2007 18:02:04 +0000 (18:02 -0000)]
Merged from trunk 6204:6205

Make prepinfo remove installed info indexes recursively.  Thanks to
Christian Faulhammer <opfer@gentoo.org> for reporting (see bugs #162675
and #170133).

svn path=/main/branches/prefix/; revision=6207

19 years agoMerged from trunk 620{0,3}
Fabian Groffen [Sat, 10 Mar 2007 20:07:46 +0000 (20:07 -0000)]
Merged from trunk 620{0,3}

Add back a missing `source isolated-functions.sh`.  The color logic is
handled internally.

import portage.xpak to avoid deprecation warning

For bug #170178, remove all hardcoded references to '/usr/lib/portage'.

svn path=/main/branches/prefix/; revision=6204

19 years agoMerged from trunk 6185:6199
Fabian Groffen [Fri, 9 Mar 2007 11:23:18 +0000 (11:23 -0000)]
Merged from trunk 6185:6199

For bug #169620, in --tree display always show the dowload size on the
node that is "ordered" rather than one of it's "nomerge" counterparts.

Fix 2 more types.InstanceType comparisons that are broken by the
transition of dbapi to new-style classes.

Take marien's advice, turn Skips into Todos for clarity sake

Part of my attempt now involves cleaning up config; this means for me;
removing the file-based stuff from it (config_path) and encapsulating
that into classes.  This is the first one, a simple PackageKeywords
class that does file-based stuff, no recursion yet but soon. Trying to
do TDD here as well,so tests first then code.

Change load() to have no default arguments, makes caller specifiy
explicitly...I think assuming a default arg is bad here.  Also add
PackageUse and PackageUseFile, change up the comments a bit.  I've
started to notice code re-use here; these are basically the same
code.  I think I will write up the rest of the package* classes and
then perform code merges to save LOC and memory and whatnot

add PackageMask{File} classes, change unit tests to use try/finally,
makes sure the tempfile gets destroyed even if something weird
happens

whoopse, s/;/:/ (WarnerBro)

Remove legacy "masked by: profile" support as per bug #149508.
Profiles should use package.mask to mask unwanted versions of system
packages.

Use the full atoms from the system set, since profile masking does
not automatically constrain the matches anymore.

Remove the "masked by: profile" support from getmaskingstatus().

Remove profile masking of system packages from the docs.

Display message about --buildpkgonly restriction in pretend mode as
well

svn path=/main/branches/prefix/; revision=6200

19 years agoDon't blindly rely on the "character position" of the data we need,
Fabian Groffen [Tue, 6 Mar 2007 15:44:03 +0000 (15:44 -0000)]
Don't blindly rely on the "character position" of the data we need,
because in locales other than C this makes completely no sense.  Instead
(because my python skills are far from good) split on the colon and take
the righthand side.

svn path=/main/branches/prefix/; revision=6185

19 years agoMerged from trunk 6180:6183
Fabian Groffen [Tue, 6 Mar 2007 09:12:30 +0000 (09:12 -0000)]
Merged from trunk 6180:6183

Roll our own unittest framework to add skip support.  (WarnerBro)

Update all the unittests to use the new framework, test skipping with
isValidAtom, add silly xpak test since I have it 'done'  (WarnerBro)

Add part about new framework and skipping to test notes  (WarnerBro)

svn path=/main/branches/prefix/; revision=6184

19 years agoMerged from trunk 6173:6178
Fabian Groffen [Mon, 5 Mar 2007 21:50:20 +0000 (21:50 -0000)]
Merged from trunk 6173:6178

allow people to disable compression by setting the PORTAGE_COMPRESS
variables to "" (SpankMan)

Avoid pointless population of the binary tree when --buildpkg is
enabled.  Thanks to vapier for reporting.

these will fail now (WarnerBro)

svn path=/main/branches/prefix/; revision=6180

19 years agoJust rely on the PATH. This should be fine, and avoids ugly EPREFIX
Fabian Groffen [Mon, 5 Mar 2007 21:41:29 +0000 (21:41 -0000)]
Just rely on the PATH.  This should be fine, and avoids ugly EPREFIX
stuff all the time.  Solves bug when the tools are just not exactly in
the location they were hardcoded to be.

svn path=/main/branches/prefix/; revision=6179

19 years agoWiden the search, as soon as we see $D inside $ED we bail out. We don't
Fabian Groffen [Sun, 4 Mar 2007 15:07:17 +0000 (15:07 -0000)]
Widen the search, as soon as we see $D inside $ED we bail out.  We don't
have to check for $D in $D, because everything in $D that is not also in
$ED causes an emergency breakdown anyway.

svn path=/main/branches/prefix/; revision=6173

19 years agoMerged from trunk 6152:6169
Fabian Groffen [Sun, 4 Mar 2007 15:04:17 +0000 (15:04 -0000)]
Merged from trunk 6152:6169

you can't insert into sys.path without importing sys... (WarnerBro)

In the same vein as copyright, add Id and svn:keywords to it (WarnerBro)

make sure uid is an int (WarnerBro)

Pass waiting_msg into recursive lockfile() calls.

Only prune duplicate consecutive nodes if they both have depth == 0.

For bug #169187, make --depclean prune unneeded slots such that it is
consistent with the world update algorithm.

Add a note about --with-bdeps in the --depclean failure message.

Fix the minimum index for pruning consecutive duplicate nodes.

Remove the KVERS environment variable since it's code that creates it is
broken anyway (only sets KVERS="." in the general case).

Display blockers at the end of the list so that it will more often be
easy for the user to see them in a terminal.  Thanks to iapitus and
hydrogen for the suggestion.

svn path=/main/branches/prefix/; revision=6172

19 years agoIt makes sense to first import sys, before using it. If this patch in
Fabian Groffen [Sat, 3 Mar 2007 15:49:41 +0000 (15:49 -0000)]
It makes sense to first import sys, before using it.  If this patch in
itself makes sense, I don't know.  At least it allows people to use
emerge.

svn path=/main/branches/prefix/; revision=6152

19 years agoMerged from trunk -r614{7,8}
Fabian Groffen [Sat, 3 Mar 2007 11:37:00 +0000 (11:37 -0000)]
Merged from trunk -r614{7,8}

Make sure that excess "nomerge" nodes are pruned correctly.

svn path=/main/branches/prefix/; revision=6151

19 years agoMerged from trunk 6132:6146
Fabian Groffen [Sat, 3 Mar 2007 11:33:22 +0000 (11:33 -0000)]
Merged from trunk 6132:6146

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.

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.

Fix types.InstanceType test which is failing now for some reason.

remove category regex, dumb idea, sorry I did it (WarnerBro)

s/node/selected_parent/ for clarity

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.

Add missing sys import.

svn path=/main/branches/prefix/; revision=6150

19 years agoRemove "BeOS","Haiku","HP-UX", add "AIX"
Fabian Groffen [Sat, 3 Mar 2007 10:35:08 +0000 (10:35 -0000)]
Remove "BeOS","Haiku","HP-UX", add "AIX"

svn path=/main/branches/prefix/; revision=6145

19 years agodon't do the BSD thing in prefix
Fabian Groffen [Fri, 2 Mar 2007 14:18:50 +0000 (14:18 -0000)]
don't do the BSD thing in prefix

svn path=/main/branches/prefix/; revision=6132

19 years agoMerged from trunk 6108:6129
Fabian Groffen [Fri, 2 Mar 2007 14:17:18 +0000 (14:17 -0000)]
Merged from trunk 6108:6129

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.

Make sure pids are appropriately removed from
portage.process.spawned_pids.

please be --quiet emerge. still need to hunt down one more newline
(Solar)

Add compatibility code to avoid the GNU specific --reference option of
chmod.  Thanks to Timothy Redaelli <drizzt@gentoo.org>.

For consistency, remove exit code 2 (protocol incompatibility) from the
other list of rsync exit codes.

Fix broken except statement syntax.

Fix the rest of the broken except statement syntax.

Fix broken rsync exitcode shift.

Remove unnecessary print statement reported by solar.

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.

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/branches/prefix/; revision=6131

19 years agoMerged hotfix from trunk 6106:6107
Fabian Groffen [Thu, 1 Mar 2007 19:07:23 +0000 (19:07 -0000)]
Merged hotfix from trunk 6106:6107

Fix misplaced [1]

svn path=/main/branches/prefix/; revision=6108

19 years agoMerged from trunk 6101:6104
Fabian Groffen [Thu, 1 Mar 2007 16:42:13 +0000 (16:42 -0000)]
Merged from trunk 6101:6104

For bug #168823, fix broken except statement syntax that prevents the
ValueError from being caught as intended.

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/branches/prefix/; revision=6106

19 years agoMerged from trunk 6099:6100
Fabian Groffen [Wed, 28 Feb 2007 17:08:39 +0000 (17:08 -0000)]
Merged from trunk 6099:6100

update --help example to match current behavior #168678 by Arthur Hagen
(SpankMan)

svn path=/main/branches/prefix/; revision=6101

19 years agoSuggestion from zmedico: use hasq to avoid QA errors about kernel_Darwin
Fabian Groffen [Tue, 27 Feb 2007 20:53:22 +0000 (20:53 -0000)]
Suggestion from zmedico: use hasq to avoid QA errors about kernel_Darwin
not in IUSE.

svn path=/main/branches/prefix/; revision=6097

19 years agoDuh... use use
Fabian Groffen [Tue, 27 Feb 2007 20:17:14 +0000 (20:17 -0000)]
Duh... use use

svn path=/main/branches/prefix/; revision=6096

19 years agoFirst shot at getting some checks for potentially wrong dynamic
Fabian Groffen [Tue, 27 Feb 2007 20:05:07 +0000 (20:05 -0000)]
First shot at getting some checks for potentially wrong dynamic
libraries on Darwin.

svn path=/main/branches/prefix/; revision=6095

19 years agoAlso look for .dylibs, as we can use the QA on Darwin too
Fabian Groffen [Tue, 27 Feb 2007 19:50:25 +0000 (19:50 -0000)]
Also look for .dylibs, as we can use the QA on Darwin too

svn path=/main/branches/prefix/; revision=6094

19 years agoAvoid "TypeError: unpack non-sequence" backtraces, and return a set of
Fabian Groffen [Tue, 27 Feb 2007 19:35:27 +0000 (19:35 -0000)]
Avoid "TypeError: unpack non-sequence" backtraces, and return a set of
None, None when was asked for the location.

svn path=/main/branches/prefix/; revision=6093

19 years agoFix undefined whatever 'best' error by importing it from
Fabian Groffen [Tue, 27 Feb 2007 19:10:28 +0000 (19:10 -0000)]
Fix undefined whatever 'best' error by importing it from
portage.versions

svn path=/main/branches/prefix/; revision=6092

19 years agoIn contrast to CVS, SVN complains when a file is not there when you rm
Fabian Groffen [Tue, 27 Feb 2007 16:55:23 +0000 (16:55 -0000)]
In contrast to CVS, SVN complains when a file is not there when you rm
it.  Hence, we don't remove the file before calling svn rm, like we have
to do for cvs.

svn path=/main/branches/prefix/; revision=6091

19 years agoMerged from trunk 6085:6088
Fabian Groffen [Tue, 27 Feb 2007 16:52:33 +0000 (16:52 -0000)]
Merged from trunk 6085:6088

For compatibility with older findutils, don't use the -L predicate (bug
#168432).

For bug #168267, use add --force to the default PORTAGE_COMPRESS_FLAGS
so that hardlinks are automatically broken.

svn path=/main/branches/prefix/; revision=6090

19 years agoThe new counter_tick_core method code seems to get the prefix
Fabian Groffen [Mon, 26 Feb 2007 22:32:13 +0000 (22:32 -0000)]
The new counter_tick_core method code seems to get the prefix
automagically (via VDB_PATH), so no need to add prefix as well.  That
actually breaks merging.

svn path=/main/branches/prefix/; revision=6085

19 years agoMerged from trunk 6048:6070
Fabian Groffen [Mon, 26 Feb 2007 21:56:01 +0000 (21:56 -0000)]
Merged from trunk 6048:6070

spawn rsync without a shell.

Make verify_all() return an "insufficient data" error if there is not at
least one supported hash type.

Make fetch() bail out when an "Insufficient data for checksum
verification" error occurs.

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.

Filter paths matching '/<built-in>$' that come from debugedit.  Thanks
to Ed Catmur for this patch from bug #165342.

As requested by solar, never show a merge list unless it's explicitly
requested by --ask, --pretend, or --tree.

As requested by solar, never show a merge list unless it's explicitly
requested by --ask, --pretend, or --tree.

Allow --verbose to trigger a merge list even without --pretend, --ask,
or --tree.  Thanks to agaffney and zlin for the suggestion.

Clean up os.environ["USERLAND"] pollution from the portage.data module
so that it doesn't interfere with repoman.

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/branches/prefix/; revision=6084

19 years agoMerged from trunk 6039:6048
Fabian Groffen [Mon, 26 Feb 2007 21:52:36 +0000 (21:52 -0000)]
Merged from trunk 6039:6048

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.

For bug #167667, add support for ${PORTDIR}/manifest1_obsolete and
automatically remove ${FILESDIR}/digest-* from cvs when appropriate.
(prefix: do the same thing for SVN)

Don't bother to parse ${FILESDIR}/digest-* when manifest1_compat is
disabled.

For bug #167668, use an rsync "hide" filter rule to exclude
**/files/digest-* and delete them on the receiver.

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/branches/prefix/; revision=6083

19 years agoMerged from trunk 6036:6039
Fabian Groffen [Mon, 26 Feb 2007 21:40:18 +0000 (21:40 -0000)]
Merged from trunk 6036:6039

Fix "NameError: global name 'myfilelist' is not defined" when
collision-protect is enabled.

Make sure that ${A} in initialized in case pkg_nofetch() needs to be
called.  Thanks to Peper for reporting.

svn path=/main/branches/prefix/; revision=6082

19 years agoMerged from trunk 6021:6036
Fabian Groffen [Mon, 26 Feb 2007 21:38:08 +0000 (21:38 -0000)]
Merged from trunk 6021:6036

s/x/xs/ to fix a typo in a variable name.

For consistency, replace multiple os.getcwd() calls with the "mydir"
variable.

Fix stardir and repodir logic from the previous commit.

Avoid a TypeError when commitmessagefile is None.

Use startdir instead of mydir since mydir has a trailing slash which
triggers normalization issues with the dirname function.

Fix more broken commitmessagefile handling.

Fix broken file list handling for FEATUES=sign when only the Manifest
has changed.

Add some sanity checks for file list handling when repolevel < 3.

svn path=/main/branches/prefix/; revision=6081

19 years agoMerged from trunk 5995:6021
Fabian Groffen [Mon, 26 Feb 2007 21:26:27 +0000 (21:26 -0000)]
Merged from trunk 5995:6021

For bug #167450, optimize merge order by delaying the merge of root
nodes.

For bug #166880, always display the merge list (allowing --tree to be
obeyed in any case).

For bug #166880, always display the merge list header.

When calling tar, always exclud . in order to preserver
PORTAGE_WORKDIR_MODE.  Thanks to Brian Harring in bug #167544.

Don't exclude . since that excludes the entire contents of some tar
files.

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.

Automatically enable --tree mode when displaying nodes with circular
deps.

For bug #167450, optimize leaf node selection by ordering nodes from
highest to lowest overall reference count.

Make digraph._merge_order_bias() operate on a single digraph that's
passed in.

Optimize order for --tree display of circular dependencies.

As requested by vapier, don't show the merge list in --quiet mode unless
it's explicitly requested via --ask or --pretend.

For bug #167795, try avoid the population routine when possible, so that
FEATURES=buildpkg doesn't always force population.

Raise a CommandNotFound exception when necessary, to ease
troubleshooting.  Thanks to marienz for reporting.

svn path=/main/branches/prefix/; revision=6080

19 years agoMerged from trunk 5990:5995
Fabian Groffen [Mon, 26 Feb 2007 21:22:52 +0000 (21:22 -0000)]
Merged from trunk 5990:5995

Move reverse NEEDED cache into CACHE_PATH and use a more descriptive
name (genone)

extend check for internal references, should remove all libs that are
only used internally now (genone)

Move preserve-libs and collision-protect code from treewalk() into their
own functions (genone)

set.remove() returns None, so can't use it in a function call (genone)

svn path=/main/branches/prefix/; revision=6079

19 years agoMerged from trunk 5981:5990
Fabian Groffen [Mon, 26 Feb 2007 21:20:23 +0000 (21:20 -0000)]
Merged from trunk 5981:5990

For bug #166939, make --nodeps work like a normal package for new-style
virtuals.

Remove unnecessary import that triggers DEPRECATION NOTICE.

Fix package.provided breakage from the fix for bug #166939.

For bug #166785, check for invalid categories in the world file.

For bug #163990, warn about ebuilds with invalid categories and do not
allow them to be installed.

For bug #163990, warn about binary packages with invalid categories and
do not allow them to be installed.

svn path=/main/branches/prefix/; revision=6078

19 years agoMerged from trunk 2980:5981
Fabian Groffen [Mon, 26 Feb 2007 21:16:35 +0000 (21:16 -0000)]
Merged from trunk 2980:5981

(prefix: now also using the emulation for non-modularised situation)

Replace compat symlinks with a new compat module as the symlink solution
prevents reuse of state information (requested by ferringb)

svn path=/main/branches/prefix/; revision=6077

19 years agoReplay of trunk 5978
Fabian Groffen [Mon, 26 Feb 2007 21:04:24 +0000 (21:04 -0000)]
Replay of trunk 5978

Move bin/emerge to pym/emerge/__init__.py to restore old import behavior
as the load_source solution doesn't work properly (genone)

svn path=/main/branches/prefix/; revision=6076

19 years agoMerged from trunk 5976:5977
Fabian Groffen [Mon, 26 Feb 2007 20:54:10 +0000 (20:54 -0000)]
Merged from trunk 5976:5977

Make emerge importable again without relying on module search path order
(genone) (prefix: let's take emerge from prefix)

svn path=/main/branches/prefix/; revision=6075

19 years agoMerged from trunk 5964:5976
Fabian Groffen [Mon, 26 Feb 2007 20:43:09 +0000 (20:43 -0000)]
Merged from trunk 5964:5976

For bug #158100, use an exact reversal of the actual merge order for
--tree output.  It's more efficient than doing 2 order calculations.

Optimize merge order calculation for --tree output when necessary.

Fix CONFIG_PROTECT_MASK support.  Thanks to piavlo <piavka@cs.bgu.ac.il>
for this patch from bug #166837.

Add missing quotes.

Add support for RSYNC_EXTRA_OPTS to webrsync (genone)

Print filename when displaying package.mask comments (genone)

[[
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.
]] (genone)

Print hostname in xterm title if sheridan is available in the
environment (genone)

svn path=/main/branches/prefix/; revision=6074

19 years agoInstead of grepping what should be the last line of SVN's output, simply
Fabian Groffen [Mon, 26 Feb 2007 20:33:15 +0000 (20:33 -0000)]
Instead of grepping what should be the last line of SVN's output, simply
cut it off.  This is a lazy hack for what already was quite lazy, but to
fix it when the user doesn't use a C locale (the message will be
translated into something else)

svn path=/main/branches/prefix/; revision=6073

19 years agoTypo: we run status, not update
Fabian Groffen [Mon, 26 Feb 2007 20:06:38 +0000 (20:06 -0000)]
Typo: we run status, not update

svn path=/main/branches/prefix/; revision=6072

19 years agoMerged from trunk 596{2,3}
Fabian Groffen [Tue, 13 Feb 2007 20:03:15 +0000 (20:03 -0000)]
Merged from trunk 596{2,3}

Fix broken imports.

svn path=/main/branches/prefix/; revision=5964

19 years agoMerged from trunk 5937:5961 (hi genone!)
Fabian Groffen [Tue, 13 Feb 2007 19:51:52 +0000 (19:51 -0000)]
Merged from trunk 5937:5961 (hi genone!)

add docstrings (WarnerBro)

Move dbapi and related classes  out of __init__.py into their own
subpackage.  Also perform some minor cleanups. (genone)

fix syntax

Fix imports from the emerge package.

Fix automatic sys.path insertions so that they're relative instead of
absolute hard coded.

remove broken dblink import

fix broken imports

Use os.path.realpath to handle symlinks properly.

Break a recursive loop.

Fix missing stat import.

Fix vardb.cpv_all() breakage.

Add missing VDB_PATH to fix vardbapi.aux_get() breakage.

Make xterm titles work even when color is disabled.  Thanks to Joachim
Kaeber <joachim.kaeber@web.de> in bug #166255.

Use the real symbols in import statements, not the references in
__init__.py (genone)

import best() from portage.versions

Make subpackage naming consistent (genone)

In the event of a circular dependency panic, eliminate root nodes in
order to reduce the noise level to a minimum.

tweak PORT_LOGDIR comments so as to not give the wrong impression about
the default value (SpankMan)

Fix missing imports.

Detect potential issues with mtime granlarity in env_update() and sleep
if necessary.  Thanks to Brian Harring for reporting.

svn path=/main/branches/prefix/; revision=5962

19 years agoMerged from trunk 5933:5935
Fabian Groffen [Sat, 10 Feb 2007 12:50:42 +0000 (12:50 -0000)]
Merged from trunk 5933:5935

update test notes (WarnerBro)

fix a few broken tests (WarnerBro)

svn path=/main/branches/prefix/; revision=5937

19 years agoMake emerge working again (failed with:
Fabian Groffen [Sat, 10 Feb 2007 12:49:22 +0000 (12:49 -0000)]
Make emerge working again (failed with:
% emerge
Traceback (most recent call last):
  File "/Library/Gentoo/usr/bin/emerge", line 35, in ?
    import emerge.help
ImportError: No module named emerge.help), adding a __init__.py seems to
help.

svn path=/main/branches/prefix/; revision=5936

19 years agoMerged from trunk 5905:5931
Fabian Groffen [Fri, 9 Feb 2007 22:28:52 +0000 (22:28 -0000)]
Merged from trunk 5905:5931

Update modules doc for the new portage namespace.

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.

For bug #165783, handle an InvalidDependString exception triggered by an
invalid SRC_URI.

move die into isolated-functions.sh (WarnerBro)

Only echo PORTAGE_LOG_FILE if it's actually set (may not be if sesandbox
is enabled).

For bug #165780, make config-protect code consistently ignore '.*~' and
'.*.bak'.

For bug #165783, handle a potential InvalidDependString exception inside
digestgen().

Enable strict dep checking for repoman.

For bug #165783, handle a potential InvalidDependString exception inside
doebuild().

For bug #165783, handle a potential InvalidDependString exception in
repoman and report a SRC_URI.syntax failure.

Synchronize required hash code in all relevant places.

Turn on strict dep checking to fix the isvalidatom test.

Make the "lfull" output more succinct by omitting categories for which
there are no violations.

die requires diefunc and dump_trace too; duh; also move extdebug into
isolated-functions.sh (WarnerBro)

Create namespace for emerge (genone)

svn path=/main/branches/prefix/; revision=5933

19 years agoMessing around with the autojungle. Fixing/cleaning up the acinclude
Fabian Groffen [Fri, 9 Feb 2007 22:23:48 +0000 (22:23 -0000)]
Messing around with the autojungle.  Fixing/cleaning up the acinclude
file.  Add functions for things we need.  Dropped many tests for tools
that are never used by portage.  We require GNU versions of some core
tools now.  This should help me stop wasting time on crappy
implementations of vital tools.

svn path=/main/branches/prefix/; revision=5932

19 years agoMerged from trunk -r5896 -r5904
Fabian Groffen [Tue, 6 Feb 2007 21:30:50 +0000 (21:30 -0000)]
Merged from trunk -r5896 -r5904

For bug #165382, show a helpful message if an exception is raised from
cpv_expand().

Check if entries contain the required hashes before writing the Manifest
(genone)

Make sure to fetch files if MANIFEST2_REQUIRED_HASH is missing.

Document PORTAGE_WORKDIR_MODE for bug #8688.  Thanks to Peter
Hjalmarsson in bug #164617.

svn path=/main/branches/prefix/; revision=5905

19 years agoMerged from trunk 5888
Fabian Groffen [Mon, 5 Feb 2007 19:37:04 +0000 (19:37 -0000)]
Merged from trunk 5888

For bug #165349, use the portage_versions regex (via pkgsplit) instead
of the incompatible ones that repoman currently uses.

svn path=/main/branches/prefix/; revision=5894

19 years agoFix another UnboundLocalError, this time the way Zac fixed the previous
Fabian Groffen [Mon, 5 Feb 2007 19:12:47 +0000 (19:12 -0000)]
Fix another UnboundLocalError, this time the way Zac fixed the previous
one.

svn path=/main/branches/prefix/; revision=5893

19 years agoMerged from trunk 5885:5891
Fabian Groffen [Mon, 5 Feb 2007 19:05:36 +0000 (19:05 -0000)]
Merged from trunk 5885:5891

Fix "UnboundLocalError: local variable 'portage' referenced before
assignment" caused by a local import hiding a global import
(undid changeset 5884:5885 for this)

For bug #165349, use the portage_versions regex (via pkgsplit) instead
of the incompatible ones that repoman currently uses.

Document --config-root for bug #165334.

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.

Ensure that the code for bug #165342 only affects name collisions with
virtuals.

svn path=/main/branches/prefix/; revision=5892

19 years agoAvoid another unbounded error by not importing portage.* somewhere in
Fabian Groffen [Sat, 3 Feb 2007 22:05:47 +0000 (22:05 -0000)]
Avoid another unbounded error by not importing portage.* somewhere in
the function such that "portage" as variable doesn't get overridden.

svn path=/main/branches/prefix/; revision=5886

19 years agoMerged from trunk 5861:5880
Fabian Groffen [Sat, 3 Feb 2007 21:52:00 +0000 (21:52 -0000)]
Merged from trunk 5861:5880

fix doc typo; more test fiddling (WarnerBro)

A somewhat more intelligent layout, move tests into portaage namespace
so we can import them easier, seems to be a more common layout from what
I've seen.  Also rewrite the test runner to work with new layout
(WarnerBro)

apparently I'm retarded and missed some of the tests.. (WarnerBro)

Rename dir.bz2 since that's the most likely case now.

add warning about storing data in PORTDIR (WarnerBro)

For bug #153109, replace our old chflags module with the one provided by
the py-freebsd package.  Thanks to Diego Petten?\195?\178
<flameeyes@gentoo.org> for the initial patch.

remove redundant directory now (WarnerBro)

grrr I thought I removed this (WarnerBro)

For bug #165065, use the proper RESTRICT setting when fetching files in
digestgen().

Make the tests pass.

For bug #165034, make sure that symlinks are excluded from chmod calls.

Use ! -type l to exclude symlinks better.  Thanks to marienz.

Fix a typo from the previos commit.

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/branches/prefix/; revision=5885

19 years agoMerged from trunk 585{1,9}
Fabian Groffen [Thu, 1 Feb 2007 08:34:00 +0000 (08:34 -0000)]
Merged from trunk 585{1,9}

Don't use os.path.isdir() because it can swallow errors related to
filesystem/disk corruption.

add some new tests (WarnerBro)

rename file (WarnerBro)

Round one of dep_getusedeps() (WarnerBro)

increase test coverage to cover slots, uncovering a few corner cases
that need fixing (WarnerBro)

fix regression in test changes (WarnerBro)

Load the most current variables from /etc/profile.env for post_emerge
stuff.

Fix --newuse so that it works correctly with --usepkg.

svn path=/main/branches/prefix/; revision=5861

19 years agoMerged from trunk 5839:5849
Fabian Groffen [Wed, 31 Jan 2007 13:12:43 +0000 (13:12 -0000)]
Merged from trunk 5839:5849

For bug #164532, don't rely on ${USERLAND} since the portage tree might
be empty.

For bug #164617, don't change permissions on ${WORKDIR} with unpack().

Use find + xargs to avoid a potential 'Argument list too long' from
bash.  Thanks to solar for reporting.

add some useful options (SpankMan)

try and fix $LastChangedRevision$ (SpankMan)

try and fix $Rev$ (SpankMan)

svn path=/main/branches/prefix/; revision=5850

19 years agoIn prefix we _always_ have GNU xargs, so we can *always* use -r (which
Fabian Groffen [Tue, 30 Jan 2007 20:54:48 +0000 (20:54 -0000)]
In prefix we _always_ have GNU xargs, so we can *always* use -r (which
is short for --no-run-if-empty)

svn path=/main/branches/prefix/; revision=5839

19 years agoxpak -> portage.xpak
Fabian Groffen [Tue, 30 Jan 2007 20:34:37 +0000 (20:34 -0000)]
xpak -> portage.xpak

svn path=/main/branches/prefix/; revision=5837

19 years agoimport xpak -> import portage.xpak
Fabian Groffen [Tue, 30 Jan 2007 20:23:17 +0000 (20:23 -0000)]
import xpak -> import portage.xpak

svn path=/main/branches/prefix/; revision=5836

19 years agovimdiff against trunk, found some code that was not in.
Fabian Groffen [Tue, 30 Jan 2007 20:01:49 +0000 (20:01 -0000)]
vimdiff against trunk, found some code that was not in.
removed "import portage.process" call in function because this "unsets"
portage, such that portage.spawn yields in an UnboundLocalError.  In any
way, this allows us prefixers to sync the tree.

svn path=/main/branches/prefix/; revision=5835

19 years agoMerged from trunk r58{20,33}
Fabian Groffen [Tue, 30 Jan 2007 16:53:04 +0000 (16:53 -0000)]
Merged from trunk r58{20,33}

Minor cleanup for the LIVEVCS.stable code.

add support for transparently decompressing gz/Z/bz2 files since some
upstream packages will compress for us (SpankMan)

For bug #164078, don't trigger the CLEAN_DELAY countdown for autoclean
operations since those are most likely unattended.  Thanks to Dan
<hydrogen@notyetimplemented.com> for the initial patch.

For bug #164363, shuffle the ip addresses returned from
socket.getaddrinfo().

svn path=/main/branches/prefix/; revision=5834

19 years agoBleh... can't commit when repoman is still broken.
Fabian Groffen [Sun, 28 Jan 2007 21:57:29 +0000 (21:57 -0000)]
Bleh... can't commit when repoman is still broken.

svn path=/main/branches/prefix/; revision=5820

19 years agoMerged from trunk 5816:5817
Fabian Groffen [Sun, 28 Jan 2007 21:46:18 +0000 (21:46 -0000)]
Merged from trunk 5816:5817

Can't delete variable that doesn't exist anymore (bug #164280) (genone)

svn path=/main/branches/prefix/; revision=5819

19 years agoFix a first batch of _ vs .
Fabian Groffen [Sun, 28 Jan 2007 21:43:00 +0000 (21:43 -0000)]
Fix a first batch of _ vs .

svn path=/main/branches/prefix/; revision=5818

19 years agoMerged from trunk 5813:5814
Fabian Groffen [Sun, 28 Jan 2007 19:37:45 +0000 (19:37 -0000)]
Merged from trunk 5813:5814

use errno.EACCES as suggested by Brian Harring (WarnerBro)

svn path=/main/branches/prefix/; revision=5816

19 years agoFix tarball.sh using the right file
Fabian Groffen [Sun, 28 Jan 2007 19:36:53 +0000 (19:36 -0000)]
Fix tarball.sh using the right file

svn path=/main/branches/prefix/; revision=5815

19 years agoMerged from trunk 5795:5804
Fabian Groffen [Sun, 28 Jan 2007 18:22:17 +0000 (18:22 -0000)]
Merged from trunk 5795:5804

add support for parsing of unicode quotes (SpankMan)

Ignore EEXIST from rmdir since some kernels (such as solaris) return
that instead of ENOTEMPTY.

Remove a stray print statement.  Thanks to Rick Warner in bug #125261.

fix format bug and mention default built_with_use behavior (SpankMan)

Add a warning about confcache to make.conf(5) (genone)

Catch EACCESS when running env-update, orignal patch by
<phajdan.jr@gmail.com> (bug #106061) (genone)

translate unicode quotes to ascii ones so we can keep our regex simple
(SpankMan)

svn path=/main/branches/prefix/; revision=5813

19 years agoMerged from trunk 5791:5795 (WarnerBro)
Fabian Groffen [Sun, 28 Jan 2007 17:49:39 +0000 (17:49 -0000)]
Merged from trunk 5791:5795  (WarnerBro)

fix namespacing in tests

add test to entice svn mv

Move tests into new directory structure

fix minor sed overzeallousness

svn path=/main/branches/prefix/; revision=5812

19 years agoMerged from trunk 5789:5791
Fabian Groffen [Sun, 28 Jan 2007 17:46:43 +0000 (17:46 -0000)]
Merged from trunk 5789:5791

For consistency, do not imply --pretend with --changelog since that
prevents --changelog from being usable in EMERGE_DEFAULTS_OPTS.
Thanks to Ryan Hill <dirtyepic@gentoo.org> in #151250.

if requested argv cannot be matched to anything, exit with non-zero
status (SpankMan)

svn path=/main/branches/prefix/; revision=5811

19 years agoNamespace "sanitizing" into portage.const_autotool
Fabian Groffen [Sun, 28 Jan 2007 17:40:19 +0000 (17:40 -0000)]
Namespace "sanitizing" into portage.const_autotool

svn path=/main/branches/prefix/; revision=5810

19 years agoMerged from trunk 5785:5786
Fabian Groffen [Sun, 28 Jan 2007 17:38:18 +0000 (17:38 -0000)]
Merged from trunk 5785:5786

Document namespace sanitizing (genone)

svn path=/main/branches/prefix/; revision=5809

19 years agoThe great "try and see if you can do what genone did" challenge part 3:
Fabian Groffen [Sun, 28 Jan 2007 17:36:33 +0000 (17:36 -0000)]
The great "try and see if you can do what genone did" challenge part 3:
"namespace sanitizing" (trunk 5780:5785)

svn path=/main/branches/prefix/; revision=5808

19 years agoThe great "try and see if you can do what genone did" challenge part 2:
Fabian Groffen [Sun, 28 Jan 2007 17:23:45 +0000 (17:23 -0000)]
The great "try and see if you can do what genone did" challenge part 2:
merged "rename of exec to process", which included the change of all
portage_XXX calls to portage.XXX.  Commit message could have been
clearer there genone...

svn path=/main/branches/prefix/; revision=5807

19 years agoThe great "try and see if you can do what genone did" challenge part 1:
Fabian Groffen [Sun, 28 Jan 2007 17:15:29 +0000 (17:15 -0000)]
The great "try and see if you can do what genone did" challenge part 1:
move the files into the "right" location

svn path=/main/branches/prefix/; revision=5806

19 years agoRemove seemingly stale file
Fabian Groffen [Sun, 28 Jan 2007 11:08:57 +0000 (11:08 -0000)]
Remove seemingly stale file

svn path=/main/branches/prefix/; revision=5805

19 years agoMerged from trunk 5758:5768
Fabian Groffen [Sat, 27 Jan 2007 22:54:55 +0000 (22:54 -0000)]
Merged from trunk 5758:5768

Add new ** for package.keywords token to bypass keyword visibility layer
(genone)

Update package.keywords section in portage(5) with info about new **
token (genone)

For bug #142279, detect and warn about null bytes in CONTENTS.

Fix broken line number counting for CONTENTS.

demote KEYWORDS.missing to a warning to make KEYWORDS='' valid (genone)

svn path=/main/branches/prefix/; revision=5797

19 years agofix a tiny logic error in repoman (grobian plz don't kill me)
Alec Warner [Wed, 24 Jan 2007 02:02:18 +0000 (02:02 -0000)]
fix a tiny logic error in repoman (grobian plz don't kill me)

svn path=/main/branches/prefix/; revision=5769

19 years agoMerged from trunk 5748:5757
Fabian Groffen [Tue, 23 Jan 2007 08:54:55 +0000 (08:54 -0000)]
Merged from trunk 5748:5757

For bug #163083, handle an UnsupportedAPIException thrown from the prerm
phase.

use svn export (SpankMan)

move gen_usr_ldscript from eutils to toolchain-funcs to reflect actual
eclass status (SpankMan)

remove functions that dont exist anymore: draw_line get_number_of_jobs
have_NPTL (SpankMan)

document the functions built_with_use doicon newicon domenu newmenu
ebeep emktemp epause make_wrapper preserve_old_lib
preserve_old_lib_notify (SpankMan)

For bug #163219, handle binpkgs that have missing PF metadata.

svn path=/main/branches/prefix/; revision=5758

19 years agoMerged from trunk 5740:5746
Fabian Groffen [Sun, 21 Jan 2007 20:55:09 +0000 (20:55 -0000)]
Merged from trunk 5740:5746

Use XARGS for portable xargs handling when find doesn't find any files.

Minor fixes thanks to Fabio Correa <facorread@alexandria.cc> in bug
#162647.

Don't require MANIFEST2 hashes since that can trigger excessive fetches
when sufficient digests already exist.  Thanks to vapier for reporting.

To ease transition while Manifest 1 is being removed, only require
hashes that will exist before and after the transition.

svn path=/main/branches/prefix/; revision=5748

19 years agoMerged from trunk 5732:5737
Fabian Groffen [Sat, 20 Jan 2007 20:36:23 +0000 (20:36 -0000)]
Merged from trunk 5732:5737

forgot to document strict alias warnings (SpankMan)

fix programlisting output to match the sections they are in (SpankMan)

Some minor fixes for manifest code (genone)

For bug #161356, fix the SLOT match code to handle a KeyError thrown due
to a corrupt ebuild.

For bug #161356, prevent an AttributeError if the exception has no
__module__ attribute.

svn path=/main/branches/prefix/; revision=5739

19 years agoRemove code that I forgot to remove after I "ported" it.
Fabian Groffen [Fri, 19 Jan 2007 20:44:26 +0000 (20:44 -0000)]
Remove code that I forgot to remove after I "ported" it.

svn path=/main/branches/prefix/; revision=5732

19 years agoTypo (, not .)
Fabian Groffen [Fri, 19 Jan 2007 20:28:11 +0000 (20:28 -0000)]
Typo (, not .)

svn path=/main/branches/prefix/; revision=5731

19 years agoReduce confusement a bit, by including the prefix in the directory being
Fabian Groffen [Fri, 19 Jan 2007 20:24:09 +0000 (20:24 -0000)]
Reduce confusement a bit, by including the prefix in the directory being
processed.

svn path=/main/branches/prefix/; revision=5730

19 years agoFix ecompressdir looking into prefix, and use prefix shells/tools in
Fabian Groffen [Fri, 19 Jan 2007 20:10:13 +0000 (20:10 -0000)]
Fix ecompressdir looking into prefix, and use prefix shells/tools in
shebangs.

svn path=/main/branches/prefix/; revision=5729

19 years agoMerged from trunk 5697:5722
Fabian Groffen [Fri, 19 Jan 2007 19:44:53 +0000 (19:44 -0000)]
Merged from trunk 5697:5722

dump emerge's normpath in favor of portage_util's normalize_path
(WarnerBro)

fix apply_permissions import and use keyworded args in the call, as well
as PORTAGE_INST_UID instead of root, also fix some spacies in
emerge, thanks for Zac for reporting (WarnerBro)

lock file around chown/chmod (WarnerBro)

locking, try 100 (WarnerBro)

Syntax error (genone)

Attribute error (genone)

I really meant NEWS_LIB_PATH (/var/lib/gentoo) but decent idea to have a
timestamp per repo ;) (WarnerBro)

but news lib path is global, not an attr (WarnerBro)

more trivial fixes (genone)

Allow per-module filtering based on loglevels in addition to the global
PORTAGE_ELOG_CLASSES one, add wildcard support for loglevels (genone)

update make.conf.example with per-module filtering (genone)

Don't load a module if there is nothing to process after filtering
(genone)

don't force a comparison (WarnerBro)

Unified try-except-finally only works with python-2.5 (genone)

Remove -- from params so the length check works (genone)

Validate ebuild names inside portdbapi.cp_list() in order to prevent
problems later on.  Thanks to delusions for reporting on irc.

Raise an informative InvalidData exception instead of 'TypeError:
unsubscriptable object' when pkgsplit returns None.

Simplify rsync timestamp.chk handling and print the correct path for bug
#50738.  Thanks to jeka for reporting on irc.

For bug #162404, when sesandbox is enabled, only log if PORT_LOGDIR is
explicitly enabled since it is possible that local SELinux security
policies do not allow ouput to be piped out of the sesandbox domain.

Fix syntax.

svn path=/main/branches/prefix/; revision=5728

19 years agoMerged from trunk 5673:5697
Fabian Groffen [Fri, 19 Jan 2007 19:31:53 +0000 (19:31 -0000)]
Merged from trunk 5673:5697

For consistency, respect the use_binaries flag inside
_expand_new_virtuals().

Allow --usepkgonly/--getbinpkgonly to work with installed deps when
binpkgs aren't available for some packages.  Thanks to Brent Baude
<ranger@gentoo.org> for reporting.

Use the portable -o option for tar.  Thanks to Timothy Redaelli
<drizzt@gentoo.org> for the patch.

make it executable (SpankMan)

make sure we rename links and not just what they point to #162451
(SpankMan)

Prevent packages that are installed but masked from being incorrectly
flagged as "available" (unless --usepkgonly is enabled, which currently
has no package.mask support).

For --usepkgonly, allow _expand_new_virtuals() to fall back to the vardb
in case all binaries aren't available.

Fix elimination of duplicate virtuals between the binpkg repo and
installed packages.

Remove one last reference to ${tarvars}.

For bug #162404, spawn tee outside the sesandbox domain so that it reads
from a pipe between two domains.

Use elif where appropriate.  Thanks to ferringb.

start documenting qa notices so antarus stops whining (SpankMan)

superh supports sane exec stack stuff now (SpankMan)

arm supports sane exec stack stuff now (SpankMan)

add try finally blocks around locking for news (WarnerBro)

svn path=/main/branches/prefix/; revision=5727

19 years agoMerged from trunk 5659:5673
Fabian Groffen [Fri, 19 Jan 2007 19:24:28 +0000 (19:24 -0000)]
Merged from trunk 5659:5673

fix minor syntax issues with locking (WarnerBro)

Enable repoman to commit a Manifest alone instead of bailing out with
"Didn't find any changed files".

ferringb pointed out this portroot parameter, ended up not using it, try
an os.path.exists to save a very common (and slow) except on missing
repo_name files for overlays, use a dict to facility a nicer regex
comparison loop for news restrictions. (WarnerBro)

document FEATURES=sesandbox #161985 (SpankMan)

make.conf is not a manual so only list common FEATURES #161985 (SpankMan)

dirty dirty lies (WarnerBro)

Make repoman commit removals together with the other changes (instead of
with the final Manifest commit).

For consistency, just use os.environ.

Fix broken commitmessagefile handling.

Replace mktemp with mkstemp since the former is deprecated for security
reasons.

Various glep 42 fixes, fix up the portageq calls to fail properly,
rewrite the news checking code to check news for all repos with a name.
(WarnerBro)

fix a few typos in tests (WarnerBro)

If repo/profiles/news doesn't exist, return 0 updates (WarnerBro)

switch news timestamp and unread/read storage to '/var/lib/gentoo' like
the GLEP states. (WarnerBro)
(Prefix adjusted)

svn path=/main/branches/prefix/; revision=5726

19 years agoMerged from trunk 5657:5659
Fabian Groffen [Fri, 19 Jan 2007 19:07:50 +0000 (19:07 -0000)]
Merged from trunk 5657:5659

merge glep42 into trunk (WarnerBro)

merge didn't bring in portage_news, no idea why (WarnerBro)

svn path=/main/branches/prefix/; revision=5725

19 years agoMerged from trunk 5649:5657
Fabian Groffen [Fri, 19 Jan 2007 18:58:31 +0000 (18:58 -0000)]
Merged from trunk 5649:5657

exithandler is not a portageq func, so ignore it (WarnerBro)

For bug #162275, make doebuild validate *DEPEND and bail out if
necessary.

Clean up variables when finished.

Make invalid deps non-fatal for some phases.

elevate the importance of 64bit clean code on 64bit hosts (SpankMan)

Clean up imports in portage_locks.py

svn path=/main/branches/prefix/; revision=5724

19 years agoMerged from trunk 5631:5649
Fabian Groffen [Fri, 19 Jan 2007 18:55:56 +0000 (18:55 -0000)]
Merged from trunk 5631:5649

make sure people call addread/addwrite/adddeny/addpredict correctly
(SpankMan)

fix tabs with patch from Grobian and bug # 161911, fix developing a bit
(WarnerBro)

Fix 'TypeError: not all arguments converted during string formatting'.
Thanks to marienz.

Fix reversed arguments.

Fix dohtml so that it continues to install files even after some fail.
Thanks to brad walker <bradmwalker@cableone.net> in bug #149745.

Document PORTAGE_LOG_FILE, update PORTAGE_TMPDIR path which now includes
CATEGORY, and lots of style/syntax fixes.  Thanks to Arfrever Frehtes
Taifersar Arahesis <FFTA@WP.PL> from bug #161979.

For bug #161975, document the fact that GENTOO_MIRRORS supports mounted
filesystem mirrors.

For bug #69021, add news about FEATURES="test" implying USE="test".

Disable the test phase when USE=test is masked (for consistency with the
fix for bug #69021).

Don't warn about /etc/make.profile not being a symlink if it has a
parent file.

Document DOC_SYMLINKS_DIR.

Fix alphabetical order.

svn path=/main/branches/prefix/; revision=5723

19 years agoRemoving file which seems not to be used.
Fabian Groffen [Sat, 13 Jan 2007 16:41:40 +0000 (16:41 -0000)]
Removing file which seems not to be used.
Fixing tabcheck warnings (now I know how to read them).  The remaining
tabcheck warnings, are up for "upstream" to solve them.

svn path=/main/branches/prefix/; revision=5631

19 years agoMerged from trunk 5620:5629
Fabian Groffen [Sat, 13 Jan 2007 16:30:33 +0000 (16:30 -0000)]
Merged from trunk 5620:5629

Send the slot collision notice to stderr and only show minimal output in
--quiet mode.

Send the unmerge failure message to stderr.

Use end_paragraph(1) instead of add_line_break() so that there is really
a blank line.

For bug #144380, disable color at emerge startup and then enable it only
when it's absolutely sure that color should be enabled (after
EMERGE_DEFAULT_OPTS has been parsed).

Document PORTAGE_COMPRESS and PORTAGE_COMPRESS_FLAGS.

Obey the silent parameter when parsing options.

Fix a typo.

Catch InvalidData exceptions for bad atoms passed as emerge arguments.

svn path=/main/branches/prefix/; revision=5630

19 years agoMerged from trunk 5597:5620
Fabian Groffen [Fri, 12 Jan 2007 23:25:41 +0000 (23:25 -0000)]
Merged from trunk 5597:5620

Use startswith and endswith to simplify code.

Fix typos from the previous commit.

purge string module from emerge (WarnerBro)

fix "" " " bug (WarnerBro)

another annoy space bug (WarnerBro)

purge string module from repoman (WarnerBro)

purge string from portage.py, fix minor bug in portage_util (WarnerBro)

Fix a typo.

Fix a typo.

Revert accidentally modified joins.

Fix more typos.

Fix another typo.

Add a few pretty basic comments on writing code, particularly things
that portage used to do (and still does) that are...a bit out of style
;) (WarnerBro)

ignore py[co] in tests (WarnerBro)

remove the last of the string module from portage.py (WarnerBro)

svn path=/main/branches/prefix/; revision=5622

19 years agoMerged from trunk 5581:5597
Fabian Groffen [Fri, 12 Jan 2007 23:05:07 +0000 (23:05 -0000)]
Merged from trunk 5581:5597

portage_versions.py, more string.atoi -> int, fix another except: that
should be ValueError (WarnerBro)
(Prefix: string.atof -> float)

Fix broad except statement, should only be KeyError (WarnerBro)

comment the excepts in a few places (WarnerBro)

getbinpkg.py fix except: open can be IOERror or OSError and cPickle can
throw an unpicklingError (WarnerBro)

EOFError is also important according to Zac (WarnerBro)

os.cwd can return OSError (maybe IOError with wrong perms for ./, will
test actually), load_mod should be IMportError, nuke a stupid try except
around shuffle which used to break years ago with old glibcs, remove try
except around what appears to be a regex? and make the try except around
the unlink a bit cleaner (WarnerBro)

FIx a bunch of random Except: statements in portage.py, most of them are
IO/OS related (WarnerBro)

Return early from finddigest if findname2 found nothing.

For bug #88485, show the location of the build log whenever a build
fails.

Prevent an InvalidData exception during global updates due to the new
stricter catpkgsplit behavior.

Fix incremental virtuals code for the new stricter catpkgsplit behavior.

Remove a duplicate % character.

Begin the deprecation of the string module (WarnerBro)

more string deprecation (WarnerBro)

set Id on tests (WarnerBro)

More String deprecation (WarnerBro)

svn path=/main/branches/prefix/; revision=5619