portage.git
17 years agoBug #197965 - When fetch() encounters a checksum failure,
Zac Medico [Sat, 3 Nov 2007 22:18:42 +0000 (22:18 -0000)]
Bug #197965 - When fetch() encounters a checksum failure,
look for an identical file from a previous checksum failure
in order to avoid consuming unnecessary disk space with
duplicate files. (trunk r8401)

Bug #197965 - Make fetch() bail out after 5 checksum
failures for a particular file since downloading the
same file repeatedly from every single available
mirror is a waste of bandwidth and time. (trunk r8403)

svn path=/main/branches/2.1.2/; revision=8404

17 years agoFix update_config_files() so that it uses update_dbentry()
Zac Medico [Sat, 3 Nov 2007 19:19:56 +0000 (19:19 -0000)]
Fix update_config_files() so that it uses update_dbentry()
to handle update commands since that already supports
slotmove commands for SLOT atoms. (trunk r8397)

svn path=/main/branches/2.1.2/; revision=8398

17 years agoRevert to backward compatible masking behavior with respect
Zac Medico [Sat, 3 Nov 2007 17:13:18 +0000 (17:13 -0000)]
Revert to backward compatible masking behavior with respect
to -* in KEYWORDS and package.keywords since -* behavior
changes are not essential at this time and a change in this
long standing behavior has potential to confuse lots of
users.

svn path=/main/branches/2.1.2/; revision=8395

17 years agoIn portage.fetch(), condense digest check output to a single
Zac Medico [Sat, 3 Nov 2007 16:48:06 +0000 (16:48 -0000)]
In portage.fetch(), condense digest check output to a single
line for all digests. (trunk r8385)

svn path=/main/branches/2.1.2/; revision=8394

17 years agoRemove redundant code from previous commit. (trunk r8392)
Zac Medico [Sat, 3 Nov 2007 16:38:03 +0000 (16:38 -0000)]
Remove redundant code from previous commit. (trunk r8392)

svn path=/main/branches/2.1.2/; revision=8393

17 years agoBug #197932 - Make dbapi._cpv_sort_ascending()
Zac Medico [Sat, 3 Nov 2007 16:34:57 +0000 (16:34 -0000)]
Bug #197932 - Make dbapi._cpv_sort_ascending()
preserve explicit -r0 for consistency in findname
and aux_get calls. (trunk r8390)

svn path=/main/branches/2.1.2/; revision=8391

17 years agoSynchronize getmaskingreason() and getmaskingstatus() with
Zac Medico [Sat, 3 Nov 2007 08:21:10 +0000 (08:21 -0000)]
Synchronize getmaskingreason() and getmaskingstatus() with
trunk so that behavior is the same for things like SLOT deps
and -* in package.keywords.

svn path=/main/branches/2.1.2/; revision=8386

17 years agoSort scanlist and ebuildlist to ensure that repoman always
Zac Medico [Fri, 2 Nov 2007 22:39:58 +0000 (22:39 -0000)]
Sort scanlist and ebuildlist to ensure that repoman always
processes packages in a predictable order. (trunk r8383)

svn path=/main/branches/2.1.2/; revision=8384

17 years agoMake portdbapi.gvisible() use portdbapi._aux_cache_keys
Zac Medico [Fri, 2 Nov 2007 08:52:37 +0000 (08:52 -0000)]
Make portdbapi.gvisible() use portdbapi._aux_cache_keys
for metadata pulls. (trunk r8381)

svn path=/main/branches/2.1.2/; revision=8382

17 years agoReturn early from config._getMaskAtom() as soon as a matching
Zac Medico [Fri, 2 Nov 2007 08:35:07 +0000 (08:35 -0000)]
Return early from config._getMaskAtom() as soon as a matching
unmask atom is found. (trunk r8379)

svn path=/main/branches/2.1.2/; revision=8380

17 years agoOptimize merge order to try and select nodes that only have
Zac Medico [Fri, 2 Nov 2007 07:43:53 +0000 (07:43 -0000)]
Optimize merge order to try and select nodes that only have
unsatisfied PDEPEND slightly earlier. This solves a problem
with xorg-server being merged too early during an all binary
install (since DEPEND is ignored for binaries), triggering
built_with_use() calls to fail as reported in bug #189966.
Since DEPEND is discarded in cases like this, it is
important to exploit the difference between PDEPEND and
RDEPEND in order to optimize merge order. Without this
optimization, the merge order is technically correct, but
not as optimal as it should be and has lots of potential to
trigger issues with built_with_use() or similar things that
require better optimization of merge order.
(trunk r8357:8359)

Fix ignore_priority logic in depgraph.altlist() in order
to handle some cases where it was possible for nodes to
be selected without their PDEPENDs being propperly added
to the asap_nodes list. (trunk r8360)

svn path=/main/branches/2.1.2/; revision=8378

17 years agoRemove an extra \$ from the EbuildQuote.var_reference regex
Zac Medico [Fri, 2 Nov 2007 07:30:30 +0000 (07:30 -0000)]
Remove an extra \$ from the EbuildQuote.var_reference regex
so that it will properly match things like variable references
without braces, like $S. (trunk r8354)

Properly escape { and } characters in regular expressions even
though it seems to work either way. (trunk r8355)

svn path=/main/branches/2.1.2/; revision=8377

17 years agoAdd a check for redundant cd "${S}" statements on the first
Zac Medico [Fri, 2 Nov 2007 07:24:55 +0000 (07:24 -0000)]
Add a check for redundant cd "${S}" statements on the first
line of src_(compile|install|test) ebuild methods. Thanks to
Petteri Räty <betelgeuse@gentoo.org> for this patch.
(trunk r8351 and r8353)

svn path=/main/branches/2.1.2/; revision=8376

17 years agoFix diefunc() so that it doesn't report that the ebuild is from
Zac Medico [Fri, 2 Nov 2007 07:18:43 +0000 (07:18 -0000)]
Fix diefunc() so that it doesn't report that the ebuild is from
an overlay when EMERGE_FROM == binary. (trunk r8349)

svn path=/main/branches/2.1.2/; revision=8375

17 years agoUpdate the FEATURES=mirror docs to more accurately reflect behavior.
Zac Medico [Fri, 2 Nov 2007 07:17:45 +0000 (07:17 -0000)]
Update the FEATURES=mirror docs to more accurately reflect behavior.
(trunk r8348)

Bug #197594 - Document FEATURES="lmirror". (trunk r8373)

svn path=/main/branches/2.1.2/; revision=8374

17 years agoRemove a few unused depgraph attributes. (trunk r8345)
Zac Medico [Fri, 2 Nov 2007 06:50:18 +0000 (06:50 -0000)]
Remove a few unused depgraph attributes. (trunk r8345)

svn path=/main/branches/2.1.2/; revision=8372

17 years agoOptimize stdout_spinner.update() methods so that they don't
Zac Medico [Fri, 2 Nov 2007 06:46:34 +0000 (06:46 -0000)]
Optimize stdout_spinner.update() methods so that they don't
waste cpu time by flushing output to the tty too frequently.
(trunk r8332)

svn path=/main/branches/2.1.2/; revision=8371

17 years agoIn portage.fetch(), condense digest check output to a single
Zac Medico [Fri, 2 Nov 2007 06:41:21 +0000 (06:41 -0000)]
In portage.fetch(), condense digest check output to a single
line for all digests. (trunk r8316)

svn path=/main/branches/2.1.2/; revision=8370

17 years agoOptimize repoman visibility checks to access as little
Zac Medico [Fri, 2 Nov 2007 06:39:03 +0000 (06:39 -0000)]
Optimize repoman visibility checks to access as little
metadata as possible. (improves performance especially
in cases where metadata needs to be generated). This
works by starting at the lowest version since that's
most likely to have keywords and it returns as soon as
the first visible package is found. (trunk r8309)

svn path=/main/branches/2.1.2/; revision=8369

17 years agoOptimize repoman to share portdbapi.cp_list() results
Zac Medico [Fri, 2 Nov 2007 06:25:08 +0000 (06:25 -0000)]
Optimize repoman to share portdbapi.cp_list() results
between all profiles since those results never change.
The cached results also propagate to the xmatch
match-all when appropriate (old-style virtuals are
excluded since they are profile dependent).
(trunk r8313)

svn path=/main/branches/2.1.2/; revision=8368

17 years agoSort all dbapi.cp_list() results in ascending order and
Zac Medico [Fri, 2 Nov 2007 06:20:49 +0000 (06:20 -0000)]
Sort all dbapi.cp_list() results in ascending order and
cache the results when possible. The order is preserved
in dbapi.match() so those results are also sorted.
(trunk r8329)

svn path=/main/branches/2.1.2/; revision=8367

17 years agoFactor the KEYWORDS masking logic out of portdbapi.visible()
Zac Medico [Fri, 2 Nov 2007 06:05:00 +0000 (06:05 -0000)]
Factor the KEYWORDS masking logic out of portdbapi.visible()
and move it to config._getMissingEeywords(). (trunk r7997)

Factor package.mask and profile masking logic out of
portdbapi.visible() and move it to config._getMaskAtom()
and _getProfileMaskAtom(). (trunk r8001)

These are prerequisites for important repoman optimizations
that will be ported from trunk.

svn path=/main/branches/2.1.2/; revision=8365

17 years agoRewrite the dblink.getcontents() code to use str.split(" ")
Zac Medico [Fri, 2 Nov 2007 05:29:03 +0000 (05:29 -0000)]
Rewrite the dblink.getcontents() code to use str.split(" ")
for splitting CONTENTS lines so that even file paths that
end with spaces can be handled. This patch makes the fix for
bug #196836#c6 more complete. Some code for parsing old
malformed symlink entries has been removed sinces it's
probably not useful or worth maintaining anymore.
(trunk r8337)

svn path=/main/branches/2.1.2/; revision=8364

17 years agoIf the title string is too big then xtermTitle() can
Zac Medico [Fri, 2 Nov 2007 05:15:35 +0000 (05:15 -0000)]
If the title string is too big then xtermTitle() can
misbehave by causing the terminal to echo some of the
characters and generate a "beep" sound. (trunk r8289)

svn path=/main/branches/2.1.2/; revision=8363

17 years agoMake world atoms non-greedy for SLOTs in action_depclean()
Zac Medico [Fri, 2 Nov 2007 05:11:15 +0000 (05:11 -0000)]
Make world atoms non-greedy for SLOTs in action_depclean()
and depgraph.xcreate() since users can simply add SLOT atoms
to world for any specific SLOTs that they want to keep.

svn path=/main/branches/2.1.2/; revision=8362

17 years agoprotect variables specified in PROFILE_ONLY_VARIABLES from
Zac Medico [Fri, 2 Nov 2007 04:56:09 +0000 (04:56 -0000)]
protect variables specified in PROFILE_ONLY_VARIABLES from
being set by the user (trunk r8251:8253, r8255, and r8259)

svn path=/main/branches/2.1.2/; revision=8361

17 years agoDon't show the "checking files for package collisions" message v2.1.3.16
Zac Medico [Tue, 23 Oct 2007 05:44:11 +0000 (05:44 -0000)]
Don't show the "checking files for package collisions" message
when --quiet is enabled. (trunk r8248)

svn path=/main/branches/2.1.2/; revision=8249

17 years agoFix the version Id tag. (trunk r8243)
Zac Medico [Tue, 23 Oct 2007 02:41:45 +0000 (02:41 -0000)]
Fix the version Id tag. (trunk r8243)

svn path=/main/branches/2.1.2/; revision=8244

17 years agoFix config.setinst() to return early when the given
Zac Medico [Tue, 23 Oct 2007 01:13:06 +0000 (01:13 -0000)]
Fix config.setinst() to return early when the given
package already provides the virtual. (trunk r8240)

svn path=/main/branches/2.1.2/; revision=8241

17 years agoRemove a redundant self.treeVirtuals deepcopy from the
Zac Medico [Tue, 23 Oct 2007 00:50:42 +0000 (00:50 -0000)]
Remove a redundant self.treeVirtuals deepcopy from the
config constructor. (trunk r8238)

svn path=/main/branches/2.1.2/; revision=8239

17 years agoBug #196652 - Check for useless ABOUT-NLS|COPYING|LICENSE
Zac Medico [Tue, 23 Oct 2007 00:32:07 +0000 (00:32 -0000)]
Bug #196652 - Check for useless ABOUT-NLS|COPYING|LICENSE
files in dodoc arguments. (trunk r8236)

svn path=/main/branches/2.1.2/; revision=8237

17 years agoIn depgraph.create(), if a direct circular dependency is
Zac Medico [Mon, 22 Oct 2007 22:41:32 +0000 (22:41 -0000)]
In depgraph.create(), if a direct circular dependency is
not an unsatisfied buildtime dependency then drop it here
since otherwise it can skew the merge order calculation
in an unwanted way. (trunk r8233)

svn path=/main/branches/2.1.2/; revision=8234

17 years agoFix portage_exception namespace typo.
Zac Medico [Mon, 22 Oct 2007 21:09:28 +0000 (21:09 -0000)]
Fix portage_exception namespace typo.

svn path=/main/branches/2.1.2/; revision=8232

17 years agoRemove slashes that cause problems when unpacking files with
Zac Medico [Mon, 22 Oct 2007 20:33:08 +0000 (20:33 -0000)]
Remove slashes that cause problems when unpacking files with
relative paths (bug #196565) (trunk r8200)

svn path=/main/branches/2.1.2/; revision=8231

17 years agoBug #196435 - Add some more references to quickpkg(1) since
Zac Medico [Mon, 22 Oct 2007 20:28:22 +0000 (20:28 -0000)]
Bug #196435 - Add some more references to quickpkg(1) since
sometimes people don't realize that it exists. (trunk r8185)

svn path=/main/branches/2.1.2/; revision=8230

17 years agoIn depgraph.create(), don't ignore direct circular dependencies
Zac Medico [Mon, 22 Oct 2007 18:49:02 +0000 (18:49 -0000)]
In depgraph.create(), don't ignore direct circular dependencies
anymore since altlist() is able to handle it properly in cases
where the dependency is satisfied. If the dep is unsatisfied
then it can not be ignored. (trunk r8225)

Allow the depgraph to add old-style virtual providers but prefer
any pre-existing providers over new ones that are added. This
prevents things like ghc-6.4.2 from selecting itself to satisfy
it's own virtual/ghc dependency (creating a circular dependency)
in cases where it should select the default ghc-bin provider.
(trunk r8185:8187)

svn path=/main/branches/2.1.2/; revision=8229

17 years agoBug #196680 - Handle a CacheError inside mirror_cache() when
Zac Medico [Mon, 22 Oct 2007 03:52:44 +0000 (03:52 -0000)]
Bug #196680 - Handle a CacheError inside mirror_cache() when
reading from the source cache. (trunk r8222)

svn path=/main/branches/2.1.2/; revision=8223

17 years agoBug #196537 - Make portageq check that the <root> parameter
Zac Medico [Sun, 21 Oct 2007 06:24:20 +0000 (06:24 -0000)]
Bug #196537 - Make portageq check that the <root> parameter
is an existing directory and exit gracefully if not.
(trunk r8195)

svn path=/main/branches/2.1.2/; revision=8196

17 years agoHandle EnvironmentError instead of OSError since open()
Zac Medico [Thu, 18 Oct 2007 21:10:21 +0000 (21:10 -0000)]
Handle EnvironmentError instead of OSError since open()
actually raises IOError. Also, treat a missing SLOT
file as SLOT="" since it is currently possible to
install an ebuild with an undefined SLOT even though
repoman generates a SLOT.missing error with such an
ebuild. (trunk r8174)

svn path=/main/branches/2.1.2/; revision=8175

17 years agoBug #195375 - Make dblink.treewalk() read inforoot/SLOT since
Zac Medico [Thu, 18 Oct 2007 19:33:04 +0000 (19:33 -0000)]
Bug #195375 - Make dblink.treewalk() read inforoot/SLOT since
it differs from the expected SLOT value when when USE=multislot
is enabled. A warning message will be shown if the slot differs
and --quiet mode is not enabled. (trunk r8172)

svn path=/main/branches/2.1.2/; revision=8173

17 years agoAdjust quote usage in collision-protect eerror
Zac Medico [Thu, 18 Oct 2007 03:20:53 +0000 (03:20 -0000)]
Adjust quote usage in collision-protect eerror
output. (trunk r8170)

svn path=/main/branches/2.1.2/; revision=8171

17 years agoFix collision-protect so that it properly cancels the
Zac Medico [Thu, 18 Oct 2007 02:41:45 +0000 (02:41 -0000)]
Fix collision-protect so that it properly cancels the
preinst phase like it used to. (trunk r8168)

svn path=/main/branches/2.1.2/; revision=8169

17 years agoFix the normalize_needed regex to properly match //
Zac Medico [Wed, 17 Oct 2007 21:44:42 +0000 (21:44 -0000)]
Fix the normalize_needed regex to properly match //
anywhere in the path. Also add support for detection
of . or .. where appropriate. (trunk r8166)

svn path=/main/branches/2.1.2/; revision=8167

17 years agoBug #196043 - Unify the ouput handling for file collisions
Zac Medico [Wed, 17 Oct 2007 20:48:08 +0000 (20:48 -0000)]
Bug #196043 - Unify the ouput handling for file collisions
so that similar eerror messages are generated whether or
not collision-protect is enabled. (trunk r8163)

svn path=/main/branches/2.1.2/; revision=8165

17 years agoAlways unlink the .installed flag prior to merge since
Zac Medico [Wed, 17 Oct 2007 20:41:22 +0000 (20:41 -0000)]
Always unlink the .installed flag prior to merge since
portage.movefile() never leaves intact. (trunk r6986)

svn path=/main/branches/2.1.2/; revision=8164

17 years agoAdd missing "to" to fix grammar. (trunk r8161)
Zac Medico [Wed, 17 Oct 2007 04:36:19 +0000 (04:36 -0000)]
Add missing "to" to fix grammar. (trunk r8161)

svn path=/main/branches/2.1.2/; revision=8162

17 years agoBug #196043 - Update the file collision ewarn notice
Zac Medico [Wed, 17 Oct 2007 03:01:41 +0000 (03:01 -0000)]
Bug #196043 - Update the file collision ewarn notice
to try and clarify the cases when a bug should NOT
be filed. Also, recommend the new `portageq owners /
<filename>` command since it works properly even
when paths are ambiguous due to symlinked
directories. (trunk r8155)

svn path=/main/branches/2.1.2/; revision=8160

17 years agoBug #196043 - Implement a `portageq owners <root> [<filename>]+`
Zac Medico [Wed, 17 Oct 2007 02:59:48 +0000 (02:59 -0000)]
Bug #196043 - Implement a `portageq owners <root> [<filename>]+`
command that is suitable for identifying all packages that own
one or more files when a file collision has occurred. This uses
dblink.isowner() so that the query works properly even when
paths are ambiguous due to symlinked directories. (trunk r8154)

svn path=/main/branches/2.1.2/; revision=8159

17 years agoOptimize dblink.isowner() to use fewer stat calls by
Zac Medico [Wed, 17 Oct 2007 02:58:06 +0000 (02:58 -0000)]
Optimize dblink.isowner() to use fewer stat calls by
only collecting stat results for parent directories.
This provides equivalent accuracy to the previous
approach but will perform much better when used to
scan all installed packages for owners in the event
of a file collision. (trunk r8153)

svn path=/main/branches/2.1.2/; revision=8158

17 years agoFix a typo.
Zac Medico [Wed, 17 Oct 2007 02:56:19 +0000 (02:56 -0000)]
Fix a typo.

svn path=/main/branches/2.1.2/; revision=8157

17 years agoIn dblink.getcontents(), use a regular expression to detect
Zac Medico [Wed, 17 Oct 2007 02:51:48 +0000 (02:51 -0000)]
In dblink.getcontents(), use a regular expression to detect
when path normalization is required. Also, only join with
${ROOT} when necessary. This allows unnecessary normpath
and join calls to be optimized away in the general case,
reducing the cpu time for `equery belongs <filename>` by
about 50%. (trunk r8150:8152)

svn path=/main/branches/2.1.2/; revision=8156

17 years agoFix --help summary so that "commit" mode shows. (trunk r8140)
Zac Medico [Mon, 15 Oct 2007 19:52:49 +0000 (19:52 -0000)]
Fix --help summary so that "commit" mode shows. (trunk r8140)

svn path=/main/branches/2.1.2/; revision=8141

17 years agoUpdate emacs and vim docs to reference NOTE_2. (trunk r8138)
Zac Medico [Mon, 15 Oct 2007 19:36:37 +0000 (19:36 -0000)]
Update emacs and vim docs to reference NOTE_2. (trunk r8138)

svn path=/main/branches/2.1.2/; revision=8139

17 years agoUpdate NOTE_2 to document proper use of the using_editor
Zac Medico [Mon, 15 Oct 2007 19:30:27 +0000 (19:30 -0000)]
Update NOTE_2 to document proper use of the using_editor
config option. (trunk r8136)

svn path=/main/branches/2.1.2/; revision=8137

17 years agoBug #195949 - Add one more using_editor conditional for
Zac Medico [Mon, 15 Oct 2007 18:58:49 +0000 (18:58 -0000)]
Bug #195949 - Add one more using_editor conditional for
diff_command. (trunk r8130)

svn path=/main/branches/2.1.2/; revision=8135

17 years agoBug #195949 - Use a different diff_command sanity check
Zac Medico [Mon, 15 Oct 2007 18:56:20 +0000 (18:56 -0000)]
Bug #195949 - Use a different diff_command sanity check
when using_editor is true. (trunk r8129)

svn path=/main/branches/2.1.2/; revision=8134

17 years agoDocument the "manifest" mode. (trunk r8126)
Zac Medico [Mon, 15 Oct 2007 18:51:04 +0000 (18:51 -0000)]
Document the "manifest" mode. (trunk r8126)

svn path=/main/branches/2.1.2/; revision=8133

17 years agoSort the modes in the repoman --help output. (trunk r8125)
Zac Medico [Mon, 15 Oct 2007 18:49:15 +0000 (18:49 -0000)]
Sort the modes in the repoman --help output. (trunk r8125)

svn path=/main/branches/2.1.2/; revision=8132

17 years agoRemove the checks for files in symlinked directories
Zac Medico [Mon, 15 Oct 2007 18:46:12 +0000 (18:46 -0000)]
Remove the checks for files in symlinked directories
from the collision protect code since it hasn't been
needed ever since the followSymlinks parameter was
disabled for portage.listdir() calls in order to
prevent infinite recursion loops. (trunk r8120:8124)

svn path=/main/branches/2.1.2/; revision=8131

17 years agoIn some cases, openpty can be slow when it fails. Therefore,
Zac Medico [Sat, 13 Oct 2007 19:06:35 +0000 (19:06 -0000)]
In some cases, openpty can be slow when it fails. Therefore,
stop trying to use it after the first failure. (trunk r8119)

svn path=/main/branches/2.1.2/; revision=8120

17 years agoAvoid an error message from find when "${D}"/usr/share
Zac Medico [Sat, 13 Oct 2007 18:19:34 +0000 (18:19 -0000)]
Avoid an error message from find when "${D}"/usr/share
does not exist. (trunk r8117)

svn path=/main/branches/2.1.2/; revision=8118

17 years agoIn the file collision eerror output, don't colorize the
Zac Medico [Sat, 13 Oct 2007 17:48:01 +0000 (17:48 -0000)]
In the file collision eerror output, don't colorize the
file paths since the escape codes look ugly in the log.
(trunk r8113:8115)

svn path=/main/branches/2.1.2/; revision=8116

17 years agoHandle the PortageException that can be raised from
Zac Medico [Sat, 13 Oct 2007 06:46:15 +0000 (06:46 -0000)]
Handle the PortageException that can be raised from
portage.mail.send_mail(). (trunk r8102)

svn path=/main/branches/2.1.2/; revision=8103

17 years agoMake the file collision eerror message less verbose
Zac Medico [Sat, 13 Oct 2007 06:21:38 +0000 (06:21 -0000)]
Make the file collision eerror message less verbose
when in --quiet mode. (trunk r8100)

svn path=/main/branches/2.1.2/; revision=8101

17 years agoIn dblink.treewalk(), use os.walk() instead of portage.listdir()
Zac Medico [Sat, 13 Oct 2007 06:08:55 +0000 (06:08 -0000)]
In dblink.treewalk(), use os.walk() instead of portage.listdir()
in order to avoid cacheddir() bloat when listing the files to be
merged from ${D}.

Remove a chdir() call that's no longer needed for the
collision-protect symlink code.

(trunk r8095:8098)

svn path=/main/branches/2.1.2/; revision=8099

17 years agoBug #195370 - Filter some more bogus matches due to
Zac Medico [Fri, 12 Oct 2007 22:36:05 +0000 (22:36 -0000)]
Bug #195370 - Filter some more bogus matches due to
old-style virtuals. (trunk r8093)

svn path=/main/branches/2.1.2/; revision=8094

17 years agoRemove a redundant call to elog_process(). (trunk r8091)
Zac Medico [Fri, 12 Oct 2007 22:04:38 +0000 (22:04 -0000)]
Remove a redundant call to elog_process(). (trunk r8091)

svn path=/main/branches/2.1.2/; revision=8092

17 years agos:this package wants:this package will: (trunk r8089)
Zac Medico [Fri, 12 Oct 2007 21:44:11 +0000 (21:44 -0000)]
s:this package wants:this package will: (trunk r8089)

svn path=/main/branches/2.1.2/; revision=8090

17 years agoBug #195527 - Unconditionally detect file collisions and log
Zac Medico [Fri, 12 Oct 2007 21:10:50 +0000 (21:10 -0000)]
Bug #195527 - Unconditionally detect file collisions and log
them as eerror messages via elog. This will allow us to
collect more file collision data but it won't be quite as
annoying as enabling collision-protect by default would be.
(trunk r8085:8087)

svn path=/main/branches/2.1.2/; revision=8088

17 years agoRaise a PackageNotFound exception instead of a ValueError
Zac Medico [Fri, 12 Oct 2007 07:01:59 +0000 (07:01 -0000)]
Raise a PackageNotFound exception instead of a ValueError
in order to avoid ambiguity if an unexpected ValueError
occurs. (trunk r8043)

svn path=/main/branches/2.1.2/; revision=8072

17 years agoRemove ambiguous "you should edit this file" warning.
Zac Medico [Fri, 12 Oct 2007 06:59:16 +0000 (06:59 -0000)]
Remove ambiguous "you should edit this file" warning.
(trunk r8040)

svn path=/main/branches/2.1.2/; revision=8071

17 years agoBug #195370 - Prevent bogus upgrade display when a
Zac Medico [Fri, 12 Oct 2007 06:58:10 +0000 (06:58 -0000)]
Bug #195370 - Prevent bogus upgrade display when a
new-style virtual is first installed and it replaces
an old-style virtual. (trunk r8039)

svn path=/main/branches/2.1.2/; revision=8070

17 years agoMake portdbapi.aux_get() cache more often. (trunk r8011)
Zac Medico [Fri, 12 Oct 2007 06:26:39 +0000 (06:26 -0000)]
Make portdbapi.aux_get() cache more often. (trunk r8011)

svn path=/main/branches/2.1.2/; revision=8069

17 years agoProperly exclude old-style virtuals from the
Zac Medico [Fri, 12 Oct 2007 06:25:26 +0000 (06:25 -0000)]
Properly exclude old-style virtuals from the
portdbapi.cp_list() cache. (trunk r8010)

svn path=/main/branches/2.1.2/; revision=8068

17 years agoRemove a redundant os.access() call in portdbapi.aux_get()
Zac Medico [Fri, 12 Oct 2007 06:23:04 +0000 (06:23 -0000)]
Remove a redundant os.access() call in portdbapi.aux_get()
and handle the potential OSError instead. (trunk r8009)

svn path=/main/branches/2.1.2/; revision=8067

17 years agoOptimize away a match_from_list() call inside
Zac Medico [Fri, 12 Oct 2007 06:19:17 +0000 (06:19 -0000)]
Optimize away a match_from_list() call inside
portdbapi.xmatch("match-all") when given atom has no
operator or version. Also, make cp_list() use the
xmatch("match-all") cache when possible. (trunk r8008)

svn path=/main/branches/2.1.2/; revision=8066

17 years agoMove the "commit" mode manifest generation earlier in order
Zac Medico [Fri, 12 Oct 2007 06:14:04 +0000 (06:14 -0000)]
Move the "commit" mode manifest generation earlier in order
to avoid digest verification issues when FEATURES="strict"
is enabled. (trunk r7994:7996)

svn path=/main/branches/2.1.2/; revision=8065

17 years agoadd --debug option and display a message about skipping
Zac Medico [Fri, 12 Oct 2007 06:09:14 +0000 (06:09 -0000)]
add --debug option and display a message about skipping
non-files so we dont get confusing loops where portage
claims there are things to update but etc-update claims
there are not (trunk r7994)

svn path=/main/branches/2.1.2/; revision=8064

17 years agoadd standard --help/--version options (trunk r7993)
Zac Medico [Fri, 12 Oct 2007 06:04:05 +0000 (06:04 -0000)]
add standard --help/--version options (trunk r7993)

svn path=/main/branches/2.1.2/; revision=8063

17 years agounify diff_command handling (trunk r7992)
Zac Medico [Fri, 12 Oct 2007 06:02:31 +0000 (06:02 -0000)]
unify diff_command handling (trunk r7992)

svn path=/main/branches/2.1.2/; revision=8062

17 years agoadd support for .lzma / .tar.lzma to unpack
Zac Medico [Fri, 12 Oct 2007 05:56:36 +0000 (05:56 -0000)]
add support for .lzma / .tar.lzma to unpack
(trunk r7991)

svn path=/main/branches/2.1.2/; revision=8061

17 years agoadd QA check for .pyc/.pyo files in /usr/share
Zac Medico [Fri, 12 Oct 2007 05:53:05 +0000 (05:53 -0000)]
add QA check for .pyc/.pyo files in /usr/share
(trunk r7990)

svn path=/main/branches/2.1.2/; revision=8060

17 years agoHandle Exceptions in mod_mail_summary.finalize() and
Zac Medico [Fri, 12 Oct 2007 05:51:13 +0000 (05:51 -0000)]
Handle Exceptions in mod_mail_summary.finalize() and
check if the server actually supports TLS, bug #183808
(trunk r7984 and r8058)

svn path=/main/branches/2.1.2/; revision=8059

17 years agolet dohtml handle weird filenames, patch by TGL
Zac Medico [Fri, 12 Oct 2007 05:35:25 +0000 (05:35 -0000)]
let dohtml handle weird filenames, patch by TGL
(bug #171272) (trunk r7983)

svn path=/main/branches/2.1.2/; revision=8057

17 years agoAdd @localhost to default PORTAGE_ELOG_MAILFROM to
Zac Medico [Fri, 12 Oct 2007 05:32:21 +0000 (05:32 -0000)]
Add @localhost to default PORTAGE_ELOG_MAILFROM to
account for mail servers that don't accept mails
without a domainname (trunk r7982)

svn path=/main/branches/2.1.2/; revision=8056

17 years agoStrip the - prefix from EAPI in getmaskingstatus()
Zac Medico [Fri, 5 Oct 2007 23:11:22 +0000 (23:11 -0000)]
Strip the - prefix from EAPI in getmaskingstatus()
if necessary. (trunk r7975)

svn path=/main/branches/2.1.2/; revision=7976

17 years agoShorten the reference to IUSE defaults since it's
Zac Medico [Fri, 5 Oct 2007 21:39:20 +0000 (21:39 -0000)]
Shorten the reference to IUSE defaults since it's
now documented in ebuild(5). (trunk r7967)

svn path=/main/branches/2.1.2/; revision=7973

17 years agoDocument IUSE defaults. (trunk r7966)
Zac Medico [Fri, 5 Oct 2007 21:38:21 +0000 (21:38 -0000)]
Document IUSE defaults. (trunk r7966)

svn path=/main/branches/2.1.2/; revision=7972

17 years agoDocument SLOT dependencies. (trunk r7962)
Zac Medico [Fri, 5 Oct 2007 21:36:24 +0000 (21:36 -0000)]
Document SLOT dependencies. (trunk r7962)

svn path=/main/branches/2.1.2/; revision=7971

17 years agoGeneralize the first paragraph of the MASKED PACKAGES section
Zac Medico [Fri, 5 Oct 2007 21:34:27 +0000 (21:34 -0000)]
Generalize the first paragraph of the MASKED PACKAGES section
and document binary package CHOST masking. (trunk r7958)

svn path=/main/branches/2.1.2/; revision=7970

17 years agoDocumnet EAPI in the MASKED PACKAGES section. (trunk r7951)
Zac Medico [Fri, 5 Oct 2007 21:33:04 +0000 (21:33 -0000)]
Documnet EAPI in the MASKED PACKAGES section. (trunk r7951)

svn path=/main/branches/2.1.2/; revision=7969

17 years agoDocument the EAPI variable. (trunk r7948:7950)
Zac Medico [Fri, 5 Oct 2007 21:32:00 +0000 (21:32 -0000)]
Document the EAPI variable. (trunk r7948:7950)

svn path=/main/branches/2.1.2/; revision=7968

17 years agoBug #194764 - All the match* functions can raise
Zac Medico [Fri, 5 Oct 2007 04:20:56 +0000 (04:20 -0000)]
Bug #194764 - All the match* functions can raise
a ValueError if cpv_expand() receives an ambiguous
atom. Therefore, move the ValueError handling code
out of match() and use it to handle all such errors
when appropriate. (trunk r7944)

svn path=/main/branches/2.1.2/; revision=7945

17 years agoMake the EbuildQuote check ignore lines beginning
Zac Medico [Fri, 5 Oct 2007 04:00:20 +0000 (04:00 -0000)]
Make the EbuildQuote check ignore lines beginning
with local or export builtins since unquoted
assignments are okay there. (trunk r7942)

svn path=/main/branches/2.1.2/; revision=7943

17 years agoEliminate confusing false positive error messages
Zac Medico [Fri, 5 Oct 2007 03:33:12 +0000 (03:33 -0000)]
Eliminate confusing false positive error messages
for SRC_URI.syntax and digestentry.unused that are
reported when the SRC_URI for one or more ebuilds
can't be parsed for some reason. There's no point
in producing a false error here since the root
cause will produce a valid error elsewhere, such
as "SRC_URI.syntax" or "ebuild.sytax".
(trunk r7905)

svn path=/main/branches/2.1.2/; revision=7941

17 years agoHandle UnsupportedAPIException when running the ebuild(1)
Zac Medico [Fri, 5 Oct 2007 03:24:17 +0000 (03:24 -0000)]
Handle UnsupportedAPIException when running the ebuild(1)
command. (trunk r7918)

svn path=/main/branches/2.1.2/; revision=7940

17 years agoInclude the package name in all exceptions raised from
Zac Medico [Fri, 5 Oct 2007 03:20:50 +0000 (03:20 -0000)]
Include the package name in all exceptions raised from
portdbapi.getfetchlist() so that a redundant and
sometimes inaccurate message doesn't have to be shown
when the error is caught in digestgen(). (trunk r7917)

svn path=/main/branches/2.1.2/; revision=7939

17 years agoMake portdbapi.getfetchlist() bail out if the EAPI
Zac Medico [Fri, 5 Oct 2007 03:17:02 +0000 (03:17 -0000)]
Make portdbapi.getfetchlist() bail out if the EAPI
is unsupported. This makes it impossible for an
unsupported EAPI to result in invalid Manifest
generation. (trunk r7916)

svn path=/main/branches/2.1.2/; revision=7938

17 years agoFix logic for the message that's show when
Zac Medico [Fri, 5 Oct 2007 03:13:52 +0000 (03:13 -0000)]
Fix logic for the message that's show when
--force is disabled. (trunk r7915)

svn path=/main/branches/2.1.2/; revision=7937

17 years agoMake repoman bail out if it is unable to properly
Zac Medico [Fri, 5 Oct 2007 03:12:39 +0000 (03:12 -0000)]
Make repoman bail out if it is unable to properly
access ebuild metadata for some reason. In this
case it's impossible to generate a Manifest and
therefore the --force option has to be disabled.
(trunk r7914)

svn path=/main/branches/2.1.2/; revision=7936