portage.git
17 years agoWhen the metadata cache contains a negative EAPI, it means
Zac Medico [Thu, 4 Oct 2007 02:19:03 +0000 (02:19 -0000)]
When the metadata cache contains a negative EAPI, it means
that the cache entry was generated by a version of portage
that did not support the eapi. When the user upgrades to a
version that now supports the previously unsupported EAPI,
those cache entries need to be regenerated. Therefore,
when a cache entry has a negative EAPI, check if the EAPI
would be supported and trigger a regen if appropriate.

svn path=/main/trunk/; revision=7910

17 years agoBump EAPI from 0 to 1 and fix eapi_is_supported() so that
Zac Medico [Thu, 4 Oct 2007 01:52:20 +0000 (01:52 -0000)]
Bump EAPI from 0 to 1 and fix eapi_is_supported() so that
it works properly with both 0 and 1.

svn path=/main/trunk/; revision=7909

17 years agono need to use "function" when defining a function
Mike Frysinger [Wed, 3 Oct 2007 21:08:14 +0000 (21:08 -0000)]
no need to use "function" when defining a function

svn path=/main/trunk/; revision=7908

17 years agothis isnt part of gentoolkit anymore
Mike Frysinger [Wed, 3 Oct 2007 21:06:27 +0000 (21:06 -0000)]
this isnt part of gentoolkit anymore

svn path=/main/trunk/; revision=7907

17 years agoEliminate confusing false positive error messages
Zac Medico [Wed, 3 Oct 2007 07:50:57 +0000 (07:50 -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". Also,
update the docs for the "ebuild.syntax" error to
indicate that a digest verification failure can
trigger it.

svn path=/main/trunk/; revision=7905

17 years agoIn the EbuildQuote check, combine the var_assignment
Zac Medico [Wed, 3 Oct 2007 00:12:18 +0000 (00:12 -0000)]
In the EbuildQuote check, combine the var_assignment
regex together with the ignore_line regex. This also
fixes an issue with the var_assignment regex allowing
violations like `make DESTDIR=${D}` to slip through.

svn path=/main/trunk/; revision=7904

17 years agoFilter some false positives out of the EbuildQuote check.
Zac Medico [Tue, 2 Oct 2007 04:03:12 +0000 (04:03 -0000)]
Filter some false positives out of the EbuildQuote check.
It might work well enough now so that we don't have to
degrade it to a warning.

svn path=/main/trunk/; revision=7901

17 years agoBug #194398 - Do not log "exiting successfully" in emerge.log
Zac Medico [Mon, 1 Oct 2007 19:44:39 +0000 (19:44 -0000)]
Bug #194398 - Do not log "exiting successfully" in emerge.log
unless the status really is successful. Otherwise, log
"exiting unsuccessfully". Thanks to David Watzke.

svn path=/main/trunk/; revision=7900

17 years agoApply new checks, minor cleanup
Alec Warner [Mon, 1 Oct 2007 12:28:17 +0000 (12:28 -0000)]
Apply new checks, minor cleanup

svn path=/main/trunk/; revision=7899

17 years agoRename checks as the naming was overkill (they are all obviously checks being in...
Alec Warner [Mon, 1 Oct 2007 12:27:45 +0000 (12:27 -0000)]
Rename checks as the naming was overkill (they are all obviously checks being in the check module), add nesteddie check

svn path=/main/trunk/; revision=7898

17 years agoDelete some extra leaky vars, also after some testing I discovered read() is much...
Alec Warner [Mon, 1 Oct 2007 11:05:10 +0000 (11:05 -0000)]
Delete some extra leaky vars, also after some testing I discovered read() is much faster than readlines(), see dev.gentoo.org/~antarus/projects/portage/stats/StringIOVsFiles.txt

svn path=/main/trunk/; revision=7897

17 years agokeep old repoman names so we don't confuse people
Alec Warner [Mon, 1 Oct 2007 10:26:09 +0000 (10:26 -0000)]
keep old repoman names so we don't confuse people

svn path=/main/trunk/; revision=7896

17 years agoAdd Donnie's quote check, refactor other ebuild-content checks into classes and get...
Alec Warner [Mon, 1 Oct 2007 10:20:32 +0000 (10:20 -0000)]
Add Donnie's quote check, refactor other ebuild-content checks into classes and get them out of repoman in an attempt to start moving other checks out as well.  Again wonder at the price of StringIO and N passes, is the readability worth it?

svn path=/main/trunk/; revision=7895

17 years agoAdd new repoman check classes using StringIO; possibly need some testing, obviously...
Alec Warner [Mon, 1 Oct 2007 10:19:21 +0000 (10:19 -0000)]
Add new repoman check classes using StringIO; possibly need some testing, obviously the old code was faster (1 iteration over the file), here we do one iteration per check, StringIO was to try and negate this by doing the checks in memory...how much of a price do we pay here?

svn path=/main/trunk/; revision=7894

17 years agoBug #142508 - Clear the screen each time before calling
Zac Medico [Mon, 1 Oct 2007 03:13:59 +0000 (03:13 -0000)]
Bug #142508 - Clear the screen each time before calling
the "diff" command so that any remnants of the previous
config are now shown with the current one.
command so that

svn path=/main/trunk/; revision=7893

17 years agoReimplement portdbapi.visible() so that is works without
Zac Medico [Sun, 30 Sep 2007 21:25:28 +0000 (21:25 -0000)]
Reimplement portdbapi.visible() so that is works without
using self.xmatch(). This should be 100% compatible with
the previous implementation and have comparable
performance. By eliminating the xmatch() dependency, the
code becomes more generically usable, like for
visibility filtering of binary packages. It seems that
it will be necessary to move this code outside of the
dbapi since visiblity filtering is really a resolver
level function and to solve things like bug #88613 will
require a more flexible approach.
since the current internal

svn path=/main/trunk/; revision=7892

17 years agoDocument interaction between config.setinst() and
Zac Medico [Sun, 30 Sep 2007 18:57:25 +0000 (18:57 -0000)]
Document interaction between config.setinst() and
old-style virtuals preferences.

svn path=/main/trunk/; revision=7891

17 years agoRemove redundant trailing slashes from ${D}. (branches/prefix r7886)
Zac Medico [Sat, 29 Sep 2007 21:23:32 +0000 (21:23 -0000)]
Remove redundant trailing slashes from ${D}. (branches/prefix r7886)

svn path=/main/trunk/; revision=7890

17 years agoInitialize PORTAGE_TMPDIR before using it.
Zac Medico [Sat, 29 Sep 2007 21:09:45 +0000 (21:09 -0000)]
Initialize PORTAGE_TMPDIR before using it.

svn path=/main/trunk/; revision=7887

17 years agorevert useless quoting
Mike Frysinger [Sat, 29 Sep 2007 08:27:51 +0000 (08:27 -0000)]
revert useless quoting

svn path=/main/trunk/; revision=7879

17 years agoFix quoting as reported by Drac in bug 194169
Alec Warner [Sat, 29 Sep 2007 07:45:01 +0000 (07:45 -0000)]
Fix quoting as reported by Drac in bug 194169

svn path=/main/trunk/; revision=7878

17 years agoBug #194095 - Validate dispatch-conf input in order to
Zac Medico [Sat, 29 Sep 2007 01:49:05 +0000 (01:49 -0000)]
Bug #194095 - Validate dispatch-conf input in order to
prevent spurious input characters from being interpreted
as user input (which can be quite confusing and gives
an "out of control" feeling).

svn path=/main/trunk/; revision=7877

17 years agoBug #193548 - When scanning for config updates and an error
Zac Medico [Fri, 28 Sep 2007 21:51:13 +0000 (21:51 -0000)]
Bug #193548 - When scanning for config updates and an error
occurs, send find's stdout to /dev/null so that only an
error message is shown.

svn path=/main/trunk/; revision=7875

17 years agoWhen scanning for config updates, treat a symlink to an existing
Zac Medico [Fri, 28 Sep 2007 20:16:02 +0000 (20:16 -0000)]
When scanning for config updates, treat a symlink to an existing
directory as if it's just a normal directory.

svn path=/main/trunk/; revision=7873

17 years agoBug #193548 - When emerge spawns find to search for config updates,
Zac Medico [Fri, 28 Sep 2007 18:11:45 +0000 (18:11 -0000)]
Bug #193548 - When emerge spawns find to search for config updates,
show the find output if there is an error.

svn path=/main/trunk/; revision=7871

17 years agoBug #194081 - Add EBUSY to the list of ignored errnos for unlink
Zac Medico [Fri, 28 Sep 2007 17:07:37 +0000 (17:07 -0000)]
Bug #194081 - Add EBUSY to the list of ignored errnos for unlink
and rmdir calls during unmerge.

svn path=/main/trunk/; revision=7869

17 years agoHandle KeyError thrown from aux_get().
Zac Medico [Thu, 27 Sep 2007 22:47:30 +0000 (22:47 -0000)]
Handle KeyError thrown from aux_get().

svn path=/main/trunk/; revision=7866

17 years agoMove prelink tempfile cleanup to the finally block and
Zac Medico [Thu, 27 Sep 2007 22:26:42 +0000 (22:26 -0000)]
Move prelink tempfile cleanup to the finally block and
remove unused locking code.

svn path=/main/trunk/; revision=7864

17 years agoSimplify update_eclasses() a little.
Zac Medico [Thu, 27 Sep 2007 20:59:16 +0000 (20:59 -0000)]
Simplify update_eclasses() a little.

svn path=/main/trunk/; revision=7861

17 years agoMove a newline to fix formatting.
Zac Medico [Thu, 27 Sep 2007 20:41:52 +0000 (20:41 -0000)]
Move a newline to fix formatting.

svn path=/main/trunk/; revision=7858

17 years agoIgnore ENOTDIR from unmerge unlink calls.
Zac Medico [Thu, 27 Sep 2007 19:22:05 +0000 (19:22 -0000)]
Ignore ENOTDIR from unmerge unlink calls.

svn path=/main/trunk/; revision=7856

17 years agoBug #194025 - Lock /var/db/pkg in post_merge() during the
Zac Medico [Thu, 27 Sep 2007 17:54:34 +0000 (17:54 -0000)]
Bug #194025 - Lock /var/db/pkg in post_merge() during the
"Regenerating GNU info directory index" routine.

svn path=/main/trunk/; revision=7853

17 years agowith help from Donnie and Ulrich, use sed to extract the statement that led to the...
Mike Frysinger [Thu, 27 Sep 2007 17:12:03 +0000 (17:12 -0000)]
with help from Donnie and Ulrich, use sed to extract the statement that led to the call to die so we can print it out in our error message

svn path=/main/trunk/; revision=7852

17 years agoBug #193486 - Use echo -n and properly quote the array argument.
Zac Medico [Thu, 27 Sep 2007 15:46:51 +0000 (15:46 -0000)]
Bug #193486 - Use echo -n and properly quote the array argument.

svn path=/main/trunk/; revision=7850

17 years agoBug #193486 - Use xargs to avoid 'bash: /bin/rm: Argument list too long'
Zac Medico [Thu, 27 Sep 2007 15:40:26 +0000 (15:40 -0000)]
Bug #193486 - Use xargs to avoid 'bash: /bin/rm: Argument list too long'
errors. This patch uses a weird tr '\001' '\000' workaround since bash
doesn't echo null bytes like one might expect.

svn path=/main/trunk/; revision=7848

17 years agoDo the stale env check/warning after the digest/manifest
Zac Medico [Thu, 27 Sep 2007 15:34:07 +0000 (15:34 -0000)]
Do the stale env check/warning after the digest/manifest
phase when necessary.

svn path=/main/trunk/; revision=7846

17 years agoDisplay a short notification when an existing ${T}/environment
Zac Medico [Thu, 27 Sep 2007 06:50:15 +0000 (06:50 -0000)]
Display a short notification when an existing ${T}/environment
sourced since it is easy to ignore and ignorance of it often
leads to mysterious problems and general confusion. This
message should not show in cases where it is obviously
irrelevant, FEATURES=noauto, or PORTAGE_QUIET=1.

svn path=/main/trunk/; revision=7844

17 years agoalign the filename and line numbers in the output of the stack dump so that it is...
Mike Frysinger [Wed, 26 Sep 2007 23:49:01 +0000 (23:49 -0000)]
align the filename and line numbers in the output of the stack dump so that it is much easier to read

svn path=/main/trunk/; revision=7842

17 years agoFix a typo.
Zac Medico [Wed, 26 Sep 2007 23:46:28 +0000 (23:46 -0000)]
Fix a typo.

svn path=/main/trunk/; revision=7840

17 years agosomeone seriously screwed the pooch on whitespacing here so clean it all up
Mike Frysinger [Wed, 26 Sep 2007 23:38:16 +0000 (23:38 -0000)]
someone seriously screwed the pooch on whitespacing here so clean it all up

svn path=/main/trunk/; revision=7839

17 years agoBug #192706 - Do not print a summary at the end of --depclean
Zac Medico [Wed, 26 Sep 2007 21:58:28 +0000 (21:58 -0000)]
Bug #192706 - Do not print a summary at the end of --depclean
if there is nothing to clean and --quiet is enabled.

svn path=/main/trunk/; revision=7838

17 years agoSet non-blocking mode on the pty master file descriptor while
Zac Medico [Wed, 26 Sep 2007 20:01:23 +0000 (20:01 -0000)]
Set non-blocking mode on the pty master file descriptor while
the slave file descriptor is still held open since otherwise
the fcntl call can fail on FreeBSD (the child process might
have already exited and closed the slave file descriptor so we
have to keep it open in order to avoid FreeBSD potentially
generating an EAGAIN exception). This appoach is cleaner than
triggering the exception and being forced to handle it
somehow.

svn path=/main/trunk/; revision=7835

17 years agoBug #192341 - When the chflags command does not exit successfully,
Zac Medico [Wed, 26 Sep 2007 17:03:18 +0000 (17:03 -0000)]
Bug #192341 - When the chflags command does not exit successfully,
try to generate an informative error. First, use stat or lstat to
try and generate an ENOENT error.  It the path exists, verify that
the chflags binary exists and raise CommandNotFound if necessary.
Finally, simply generate an EPERM OSError with the output of the
command since we're not sure exactly why it failed or what the
real errno was.

svn path=/main/trunk/; revision=7834

17 years agoBug #192341 - Eliminate the dependency on py-freebsd by implementing
Zac Medico [Wed, 26 Sep 2007 03:30:54 +0000 (03:30 -0000)]
Bug #192341 - Eliminate the dependency on py-freebsd by implementing
it's chflags() and lchflags() functions as wrappers around the
chflags command (which should always be available in any case). The
functions are only called when merging/unmerging files that actually
have flags set so the performance difference should be negligible.

svn path=/main/trunk/; revision=7808

17 years agoBug #193695 - Add FreeBSD chflags support for rmdir()
Zac Medico [Tue, 25 Sep 2007 15:33:33 +0000 (15:33 -0000)]
Bug #193695 - Add FreeBSD chflags support for rmdir()
calls during unmerge.

svn path=/main/trunk/; revision=7807

17 years agoIn movefile() FreeBSD chflags handling, use chflags instead of
Zac Medico [Tue, 25 Sep 2007 05:29:32 +0000 (05:29 -0000)]
In movefile() FreeBSD chflags handling, use chflags instead of
lchflags when temporarily adjusting the flags on the parent
directory since we want to follow any symlinks to the real
parent directory.

svn path=/main/trunk/; revision=7806

17 years agoBug #193695 - Add support for FreeBSD chflags during unmerge. This
Zac Medico [Tue, 25 Sep 2007 05:22:18 +0000 (05:22 -0000)]
Bug #193695 - Add support for FreeBSD chflags during unmerge. This
code is adapted from the code that already exists in movefile()
for the merge phase.

svn path=/main/trunk/; revision=7805

17 years agoBugs #168772 and #193695 - During unmerge, only ignore specific
Zac Medico [Mon, 24 Sep 2007 23:25:57 +0000 (23:25 -0000)]
Bugs #168772 and #193695 - During unmerge, only ignore specific
exceptions raised from unlink() and rmdir() calls.

svn path=/main/trunk/; revision=7804

17 years agoBug #74615 - Quote all file paths inside dispatch-conf shell commands.
Zac Medico [Mon, 24 Sep 2007 22:15:16 +0000 (22:15 -0000)]
Bug #74615 - Quote all file paths inside dispatch-conf shell commands.

svn path=/main/trunk/; revision=7803

17 years agoInitialize ${TMP} before registering the die trap so that
Zac Medico [Mon, 24 Sep 2007 21:20:34 +0000 (21:20 -0000)]
Initialize ${TMP} before registering the die trap so that
we're sure which directory die will clean up.

svn path=/main/trunk/; revision=7802

17 years agoBug #190179 - Use `prelink --verify filename` to write the
Zac Medico [Mon, 24 Sep 2007 20:26:09 +0000 (20:26 -0000)]
Bug #190179 - Use `prelink --verify filename` to write the
temp file via stdout since --undo fails when run as a normal
non-superuser because it tries to chown the output file. Also,
use mkstemp() to eliminate the need for locking the temp file.
Thanks to Israel G. Lugo <israel.lugo@lugosys.com> for the
initial patch.

svn path=/main/trunk/; revision=7801

17 years agos/note/not/ reported by p-y.
Zac Medico [Mon, 24 Sep 2007 16:48:34 +0000 (16:48 -0000)]
s/note/not/ reported by p-y.

svn path=/main/trunk/; revision=7800

17 years agofix possible information leak vulnerability when doing a merge of configuration files...
Mike Frysinger [Mon, 24 Sep 2007 07:09:41 +0000 (07:09 -0000)]
fix possible information leak vulnerability when doing a merge of configuration files and be better about handling of whitespace in $TMP in a few places

svn path=/main/trunk/; revision=7799

17 years agotweak get_config() so that it only executes one external binary (sed) instead of...
Mike Frysinger [Mon, 24 Sep 2007 06:49:37 +0000 (06:49 -0000)]
tweak get_config() so that it only executes one external binary (sed) instead of chaining multiple ones

svn path=/main/trunk/; revision=7798

17 years agoWhen --deep is not enabled, many dependencies are dicarded and
Zac Medico [Sun, 23 Sep 2007 23:56:28 +0000 (23:56 -0000)]
When --deep is not enabled, many dependencies are dicarded and
left out of the digraph. This patch prevents dependencies from
being discarded in some cases where the are needed in order to
optimize merge order. It also modifies the DepPriority.rebuild
attribute so that it only applies to build time dependencies.
This leads to better merge order in some cases when --deep is
not enabled. For example, `emerge xf86-input-keyboard
xorg-server` will now properly merge xorg-server before
xf86-input-keyboard (problem from bug #192254, comment #5).

svn path=/main/trunk/; revision=7797

17 years agoIn spawn(), initialize default fd_pipes before doing the stdout/stderr flush.
Zac Medico [Sun, 23 Sep 2007 18:08:03 +0000 (18:08 -0000)]
In spawn(), initialize default fd_pipes before doing the stdout/stderr flush.

svn path=/main/trunk/; revision=7796

17 years agoFlush stderr and stdout if their file descriptors are in fd_pipes at the beginning...
Zac Medico [Sat, 22 Sep 2007 18:54:46 +0000 (18:54 -0000)]
Flush stderr and stdout if their file descriptors are in fd_pipes at the beginning of spawn().

svn path=/main/trunk/; revision=7795

17 years agoFlush stdout before calling pkg_info() to ensure that output always shows in the...
Zac Medico [Sat, 22 Sep 2007 18:40:32 +0000 (18:40 -0000)]
Flush stdout before calling pkg_info() to ensure that output always shows in the correct order.

svn path=/main/trunk/; revision=7794

17 years agoWhen --with-bdeps=y is enabled for built packages, pull in build time deps as
Zac Medico [Sat, 22 Sep 2007 02:30:04 +0000 (02:30 -0000)]
When --with-bdeps=y is enabled for built packages, pull in build time deps as
requested, but marked them as "satisfied" since they are not strictly
required. This allows more freedom in the merge order calculation for solving
circular dependencies. Don't convert to PDEPEND since that could make
--with-bdeps=y less effective if it is used to adjust merge order to prevent
built_with_use() calls from failing.

svn path=/main/trunk/; revision=7793

17 years agoMask binary packages if their CHOST does not match the one defined in make.conf.
Zac Medico [Wed, 19 Sep 2007 22:01:07 +0000 (22:01 -0000)]
Mask binary packages if their CHOST does not match the one defined in make.conf.

svn path=/main/trunk/; revision=7792

17 years agoBug #190781 - Don't include --oneshot in the options that --update implies.
Zac Medico [Tue, 18 Sep 2007 06:01:47 +0000 (06:01 -0000)]
Bug #190781 - Don't include --oneshot in the options that --update implies.

svn path=/main/trunk/; revision=7790

17 years agoUse ensure_dirs() and apply_permissions() to avoid redundant chown/chmod calls. This...
Zac Medico [Sun, 16 Sep 2007 22:01:25 +0000 (22:01 -0000)]
Use ensure_dirs() and apply_permissions() to avoid redundant chown/chmod calls. This helps avoid 'Permission denied' errors during elog_process() when the ebuild command is run by normal user (issue reported by graaff).

svn path=/main/trunk/; revision=7789

17 years agoRevert the workaround for bug #192341 since it will be much cleaner if we fall back...
Zac Medico [Sat, 15 Sep 2007 17:32:05 +0000 (17:32 -0000)]
Revert the workaround for bug #192341 since it will be much cleaner if we fall back to spawning the chflags command when the freebsd module is unavailable.

svn path=/main/trunk/; revision=7785

17 years agoBug #192341 - Make emerge bail out on FreeBSD if the freebsd python module
Zac Medico [Thu, 13 Sep 2007 23:41:10 +0000 (23:41 -0000)]
Bug #192341 - Make emerge bail out on FreeBSD if the freebsd python module
fails to import. Display a notification that "ignore-missing-freebsd-module"
can be added to FEATURES in order to bypass the error. If that feature is
enabled but the freebsd python module imported successfully, show a warning
message since the user should remove if from FEATURES asap.

svn path=/main/trunk/; revision=7780

17 years agoBug #192346 - The emerge --help shows a -i option that does not exist.
Zac Medico [Thu, 13 Sep 2007 18:21:28 +0000 (18:21 -0000)]
Bug #192346 - The emerge --help shows a -i option that does not exist.

svn path=/main/trunk/; revision=7779

17 years agoBug #191645 - Cross-reference the `ebuild --force digest` docs with the
Zac Medico [Thu, 13 Sep 2007 18:12:10 +0000 (18:12 -0000)]
Bug #191645 -  Cross-reference the `ebuild --force digest` docs with the
FEATURES=assume-digests docs.

svn path=/main/trunk/; revision=7778

17 years agoAdd some additional notes about the behavior of FEATURES=assume-digests under
Zac Medico [Thu, 13 Sep 2007 17:40:39 +0000 (17:40 -0000)]
Add some additional notes about the behavior of FEATURES=assume-digests under
various conditions.

svn path=/main/trunk/; revision=7777

17 years agoBug #191645 - Document the --force option.
Zac Medico [Thu, 13 Sep 2007 17:19:21 +0000 (17:19 -0000)]
Bug #191645 - Document the --force option.

svn path=/main/trunk/; revision=7776

17 years agoBug #110443 - Add a KEYWORDS.stable check for ebuilds that are added directly
Zac Medico [Thu, 13 Sep 2007 16:55:26 +0000 (16:55 -0000)]
Bug #110443 - Add a KEYWORDS.stable check for ebuilds that are added directly
with stable KEYWORDS.

svn path=/main/trunk/; revision=7775

17 years agoBug #192321 - Clean dir.old cruft so that they don't prevent unmerge of
Zac Medico [Thu, 13 Sep 2007 16:48:05 +0000 (16:48 -0000)]
Bug #192321 - Clean dir.old cruft so that they don't prevent unmerge of
otherwise empty directories.

svn path=/main/trunk/; revision=7774

17 years agoBug #191645 - Document the --force option.
Zac Medico [Wed, 12 Sep 2007 19:36:03 +0000 (19:36 -0000)]
Bug #191645 - Document the --force option.

svn path=/main/trunk/; revision=7773

17 years agoBug #187795 - remove pointless digest.disjointed and digest.notadded warnings
Zac Medico [Wed, 12 Sep 2007 18:40:02 +0000 (18:40 -0000)]
Bug #187795 - remove pointless digest.disjointed and digest.notadded warnings
since they are always added to cvs automatically anyway.

svn path=/main/trunk/; revision=7772

17 years agoBug #192195 - In dir_get_list(), append a trailing / to the address when
Zac Medico [Wed, 12 Sep 2007 18:29:08 +0000 (18:29 -0000)]
Bug #192195 - In dir_get_list(), append a trailing / to the address when
necessary in order to avoid getting a 400 error from the http server.

svn path=/main/trunk/; revision=7771

17 years agoCatch errno.ENOTDIR instead of using os.path.isdir().
Zac Medico [Wed, 12 Sep 2007 15:27:40 +0000 (15:27 -0000)]
Catch errno.ENOTDIR instead of using os.path.isdir().

svn path=/main/trunk/; revision=7770

17 years agoBug #192298 - Handle PermissionDenied error in cache.update_eclasses().
Zac Medico [Wed, 12 Sep 2007 14:59:04 +0000 (14:59 -0000)]
Bug #192298 - Handle PermissionDenied error in cache.update_eclasses().

svn path=/main/trunk/; revision=7769

17 years agoAdjust for r7767
Marius Mauch [Tue, 11 Sep 2007 06:11:13 +0000 (06:11 -0000)]
Adjust for r7767

svn path=/main/trunk/; revision=7768

17 years agoRemove name from PackageSet, it's pointless as the caller has to keep track of the...
Marius Mauch [Tue, 11 Sep 2007 06:06:24 +0000 (06:06 -0000)]
Remove name from PackageSet, it's pointless as the caller has to keep track of the name himself anyway

svn path=/main/trunk/; revision=7767

17 years agoor I was right the first time :(
Alec Warner [Sun, 9 Sep 2007 00:36:21 +0000 (00:36 -0000)]
or I was right the first time :(

svn path=/main/trunk/; revision=7766

17 years agosigh, or, not and
Alec Warner [Sun, 9 Sep 2007 00:33:57 +0000 (00:33 -0000)]
sigh, or, not and

svn path=/main/trunk/; revision=7765

17 years agocompress two loop iterations into one
Alec Warner [Sat, 8 Sep 2007 21:52:55 +0000 (21:52 -0000)]
compress two loop iterations into one

svn path=/main/trunk/; revision=7764

17 years agoIn depgraph.altlist(), try to merge asap_nodes sooner by giving them an exemption...
Zac Medico [Sat, 8 Sep 2007 08:33:02 +0000 (08:33 -0000)]
In depgraph.altlist(), try to merge asap_nodes sooner by giving them an exemption from the accept_root_node flag. (branches/2.1.2 r7762)

svn path=/main/trunk/; revision=7763

17 years agoFix a typo.
Zac Medico [Sat, 8 Sep 2007 07:07:01 +0000 (07:07 -0000)]
Fix a typo.

svn path=/main/trunk/; revision=7761

17 years agoBug #190268 - Avoid unwanted sandbox violations in src_test().
Zac Medico [Sat, 8 Sep 2007 06:51:59 +0000 (06:51 -0000)]
Bug #190268 - Avoid unwanted sandbox violations in src_test().
  - Allow SANDBOX_* variables to pass through.
  - Don't try to create an sandbox instance inside a test case in order to
    interaction with SANDBOX_* variables in src_test().

svn path=/main/trunk/; revision=7759

17 years agoImplement/fix testcases for some PackageSet subclasses
Marius Mauch [Fri, 7 Sep 2007 12:30:53 +0000 (12:30 -0000)]
Implement/fix testcases for some PackageSet subclasses

svn path=/main/trunk/; revision=7758

17 years agoFix incorrect parse check as value lists in KeyListFileLoader might be empty, add...
Marius Mauch [Fri, 7 Sep 2007 12:30:00 +0000 (12:30 -0000)]
Fix incorrect parse check as value lists in KeyListFileLoader might be empty, add support for value validators in relevant Loaders

svn path=/main/trunk/; revision=7757

17 years agoUndo some unwanted changes
Marius Mauch [Fri, 7 Sep 2007 11:51:13 +0000 (11:51 -0000)]
Undo some unwanted changes

svn path=/main/trunk/; revision=7756

17 years agoreturn the full path, not just the filename
Marius Mauch [Fri, 7 Sep 2007 11:49:56 +0000 (11:49 -0000)]
return the full path, not just the filename

svn path=/main/trunk/; revision=7755

17 years agofix errors in call logic
Marius Mauch [Fri, 7 Sep 2007 11:41:25 +0000 (11:41 -0000)]
fix errors in call logic

svn path=/main/trunk/; revision=7754

17 years agoFix minor issues with loaders in the static file loader, fix quoting and import style...
Alec Warner [Fri, 7 Sep 2007 10:17:26 +0000 (10:17 -0000)]
Fix minor issues with loaders in the static file loader, fix quoting and import style in news.py.  Add TextFileLoader and EnvLoader loaders

svn path=/main/trunk/; revision=7753

17 years agodbapi currently depends on being subclassed and having the subclasses impelement...
Alec Warner [Fri, 7 Sep 2007 10:14:12 +0000 (10:14 -0000)]
dbapi currently depends on being subclassed and having the subclasses impelement certain functions (that aren't even implemented IN dbapi, so a particular child has no idea what functions are actually required).  Try to make this cleared by adding stubs in dbapi.  There should be no behavior change here because these cases would be Attribute errors in the current scheme.  Also add a horribly bad testdbapi with stub funcs to use in testing code.  Remove regexes with possibly faster string comparisons.

svn path=/main/trunk/; revision=7752

17 years agotest news item filtering
Alec Warner [Fri, 7 Sep 2007 10:08:18 +0000 (10:08 -0000)]
test news item filtering

svn path=/main/trunk/; revision=7751

17 years agoLast commit added more tests for sets and taught me what I was doing wrong ;) This...
Alec Warner [Fri, 7 Sep 2007 09:47:43 +0000 (09:47 -0000)]
Last commit added more tests for sets and taught me what I was doing wrong ;)  This commit adds yet more tests

svn path=/main/trunk/; revision=7750

17 years agofighting with svn over weirdness
Alec Warner [Fri, 7 Sep 2007 09:46:49 +0000 (09:46 -0000)]
fighting with svn over weirdness

svn path=/main/trunk/; revision=7749

17 years agoRewrite testing to use __test__ instead of hardcoded dirs
Alec Warner [Fri, 7 Sep 2007 09:40:39 +0000 (09:40 -0000)]
Rewrite testing to use __test__ instead of hardcoded dirs

svn path=/main/trunk/; revision=7748

17 years agoFor bug #190268, filter SANDBOX_* from the calling environment so that they can't...
Zac Medico [Fri, 7 Sep 2007 03:09:48 +0000 (03:09 -0000)]
For bug #190268, filter SANDBOX_* from the calling environment so that they can't interfere with ebuild.sh.

svn path=/main/trunk/; revision=7746

17 years agoFix a typo.
Zac Medico [Thu, 6 Sep 2007 01:33:01 +0000 (01:33 -0000)]
Fix a typo.

svn path=/main/trunk/; revision=7729

17 years agoIn the topological sort for merge order, try to avoid selecting root nodes
Zac Medico [Wed, 5 Sep 2007 23:09:21 +0000 (23:09 -0000)]
In the topological sort for merge order, try to avoid selecting root nodes
whenever possible. This helps ensure that the maximimum possible number of
soft dependencies  have been removed from the graph before their parent nodes
have been selected. This is especially important when those dependencies are
going to be rebuilt by revdep-rebuild or `emerge -e system` after the CHOST
has been changed (like when building a stage3 from a stage2). With this patch,
`emerge -e system` properly rebuilds dev-lang/python before sys-apps/file,
which helps to avoid a potential build failure.

svn path=/main/trunk/; revision=7728

17 years agoMove the note about not needing pycrypto with python-2.5 to the 2.1.3 section.
Zac Medico [Tue, 4 Sep 2007 20:41:32 +0000 (20:41 -0000)]
Move the note about not needing pycrypto with python-2.5 to the 2.1.3 section.

svn path=/main/trunk/; revision=7726

17 years agoReformat collision-protect output so that the list of file collisions is shown below...
Zac Medico [Thu, 30 Aug 2007 22:03:50 +0000 (22:03 -0000)]
Reformat collision-protect output so that the list of file collisions is shown below the banner. This puts more distance between the collision list and the list of files that prepstrip often displays just above, hopefully preventing user confusion about which files had collisions.

svn path=/main/trunk/; revision=7720

17 years agoMove some of the less expensive QA checks before dep_check() so that they're still...
Zac Medico [Tue, 28 Aug 2007 15:36:18 +0000 (15:36 -0000)]
Move some of the less expensive QA checks before dep_check() so that they're still done even in --force mode.

svn path=/main/trunk/; revision=7718