portage.git
17 years agoRemove more unnecessary list generation.
Zac Medico [Thu, 21 Jun 2007 12:01:43 +0000 (12:01 -0000)]
Remove more unnecessary list generation.

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

17 years agoRemove more unnecessary list generation.
Zac Medico [Thu, 21 Jun 2007 11:40:51 +0000 (11:40 -0000)]
Remove more unnecessary list generation.

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

17 years agoRemove lots of unnecessary list generation via dict.keys().
Zac Medico [Thu, 21 Jun 2007 10:57:55 +0000 (10:57 -0000)]
Remove lots of unnecessary list generation via dict.keys().

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

17 years agoDon't generate a list of keys for a containment test.
Zac Medico [Thu, 21 Jun 2007 06:25:32 +0000 (06:25 -0000)]
Don't generate a list of keys for a containment test.

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

17 years agoDon't call digraph.hasallzeros() in --resume mode because the digraph isn't currently...
Zac Medico [Thu, 21 Jun 2007 05:59:57 +0000 (05:59 -0000)]
Don't call digraph.hasallzeros() in --resume mode because the digraph isn't currently populated in that case.

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

17 years agoMake IUSE handling safe for IUSE defaults.
Zac Medico [Thu, 21 Jun 2007 03:42:16 +0000 (03:42 -0000)]
Make IUSE handling safe for IUSE defaults.

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

17 years agoas noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try...
Mike Frysinger [Thu, 21 Jun 2007 03:04:41 +0000 (03:04 -0000)]
as noted by Josh Saddler on the gentoo-dev mailing list, issue a warning if we try to create a binpkg for something that has IUSE=bindist but was emerged with USE=-bindist

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

17 years agoIn dblink._security_check(), use os.path.realpath to make sure that the same path...
Zac Medico [Thu, 21 Jun 2007 02:19:54 +0000 (02:19 -0000)]
In dblink._security_check(), use os.path.realpath to make sure that the same path isn't counted twice.

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

17 years agoAdd an --ignore-default-opts option that is analogous to the corresponding emerge...
Zac Medico [Wed, 20 Jun 2007 23:53:23 +0000 (23:53 -0000)]
Add an --ignore-default-opts option that is analogous to the corresponding emerge option.

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

17 years agoUse the the optparse options for --ignore-default-opts since that allows option abrev...
Zac Medico [Wed, 20 Jun 2007 23:43:29 +0000 (23:43 -0000)]
Use the the optparse options for --ignore-default-opts since that allows option abreviation to work.

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

17 years agoMake the progress bar percentage indicator stop at 100% instead of just 99%.
Zac Medico [Wed, 20 Jun 2007 10:06:30 +0000 (10:06 -0000)]
Make the progress bar percentage indicator stop at 100% instead of just 99%.

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

17 years agoShow a "world problems" warning for packages that aren't installed, even if they...
Zac Medico [Wed, 20 Jun 2007 09:46:33 +0000 (09:46 -0000)]
Show a "world problems" warning for packages that aren't installed, even if they are available.

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

17 years agoMake all the classes inherit from object.
Zac Medico [Wed, 20 Jun 2007 07:11:52 +0000 (07:11 -0000)]
Make all the classes inherit from object.

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

17 years agoIf a package is in the world set but it's not installed, go ahead and install it...
Zac Medico [Wed, 20 Jun 2007 05:08:10 +0000 (05:08 -0000)]
If a package is in the world set but it's not installed, go ahead and install it if it's available (instead of telling the user to run emaint).

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

17 years agoFor bug #180165, make has_version dir if portageq has an unexpected exit code.
Zac Medico [Wed, 20 Jun 2007 00:17:17 +0000 (00:17 -0000)]
For bug #180165, make has_version dir if portageq has an unexpected exit code.

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

17 years agoFor bug #180165, make portageq print a "Permission denied" error when appropriate...
Zac Medico [Wed, 20 Jun 2007 00:01:49 +0000 (00:01 -0000)]
For bug #180165, make portageq print a "Permission denied" error when appropriate.  A PermissionDenied exception is raised from portage.listdir() enven when EmptyOnError is True since errno.EACCES is very likely to indicate a condition that should be reported in any case.

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

17 years agoFix cacheddir() to behave properly if os.listdir() raises errno.EACCES (Permission...
Zac Medico [Tue, 19 Jun 2007 21:59:55 +0000 (21:59 -0000)]
Fix cacheddir() to behave properly if os.listdir() raises errno.EACCES (Permission denied).

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

17 years agoFor bug #143340, give an appropriate message when there is no read access to a binary...
Zac Medico [Tue, 19 Jun 2007 21:37:02 +0000 (21:37 -0000)]
For bug #143340, give an appropriate message when there is no read access to a binary package.

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

17 years agoReturn early from get_term_size() is stdout is not a tty.
Zac Medico [Tue, 19 Jun 2007 20:11:34 +0000 (20:11 -0000)]
Return early from get_term_size() is stdout is not a tty.

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

17 years agoFor bug #182571, handle curses.error if it's thrown inside get_term_size().
Zac Medico [Tue, 19 Jun 2007 19:56:49 +0000 (19:56 -0000)]
For bug #182571, handle curses.error if it's thrown inside get_term_size().

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

17 years agoFor bug #182428, make quickpkg use a more secure umask by default and allow it to...
Zac Medico [Tue, 19 Jun 2007 09:35:56 +0000 (09:35 -0000)]
For bug #182428, make quickpkg use a more secure umask by default and allow it to be overridden by a --umask option.  Add support for QUICKPKG_DEFAULT_OPTS so that default options can be set in make.conf.

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

17 years agoAdd a test case for the logfile functionality of portage.spawn().
Zac Medico [Tue, 19 Jun 2007 07:22:18 +0000 (07:22 -0000)]
Add a test case for the logfile functionality of portage.spawn().

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

17 years agoAdd PORTAGE_BIN_PATH to the environment since it's used by dobin to locate isolated...
Zac Medico [Tue, 19 Jun 2007 06:16:27 +0000 (06:16 -0000)]
Add PORTAGE_BIN_PATH to the environment since it's used by dobin to locate isolated-functions.sh.

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

17 years agoDuring unmerge, always verify that the file isn't a symlink before doing chmod.
Zac Medico [Mon, 18 Jun 2007 10:26:17 +0000 (10:26 -0000)]
During unmerge, always verify that the file isn't a symlink before doing chmod.

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

17 years agoIn dblink.isowner() don't bother to stat the file when it's contained in the contents.
Zac Medico [Sun, 17 Jun 2007 22:42:52 +0000 (22:42 -0000)]
In dblink.isowner() don't bother to stat the file when it's contained in the contents.

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

17 years agoFor bug #182346, use dblink.isowner() during unmerge so that device/inode numbers...
Zac Medico [Sun, 17 Jun 2007 22:05:40 +0000 (22:05 -0000)]
For bug #182346, use dblink.isowner() during unmerge so that device/inode numbers are used to determine ownership (despite path mismatch due to symlinks).

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

17 years agoFix profile and config arguments to NewsItem.isRelevant() inside NewsManager.updateIt...
Zac Medico [Sat, 16 Jun 2007 21:19:11 +0000 (21:19 -0000)]
Fix profile and config arguments to NewsItem.isRelevant() inside NewsManager.updateItems().

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

17 years agoGo ahead and unlink symlinks to directories when they're actually recorded as symlink...
Zac Medico [Fri, 15 Jun 2007 22:53:05 +0000 (22:53 -0000)]
Go ahead and unlink symlinks to directories when they're actually recorded as symlinks in the contents.

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

17 years agoMake the collision-protect loop check for existance of the destination file before...
Zac Medico [Fri, 15 Jun 2007 22:39:58 +0000 (22:39 -0000)]
Make the collision-protect loop check for existance of the destination file before checking if it's owned.

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

17 years agoMake repoman exit with nonzero status whenever there are qa issues (already does...
Zac Medico [Fri, 15 Jun 2007 21:38:51 +0000 (21:38 -0000)]
Make repoman exit with nonzero status whenever there are qa issues (already does the same in commit mode). Thanks to Daniel Gryniewicz <dang@gentoo.org> in bug #182166.

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

17 years agoFor bug #182021, use active voice when notifying the user that superuser access is...
Zac Medico [Fri, 15 Jun 2007 21:31:50 +0000 (21:31 -0000)]
For bug #182021, use active voice when notifying the user that superuser access is required.

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

17 years agoHandle another case where removing a symlink to a directory can be harmful.
Zac Medico [Fri, 15 Jun 2007 20:42:32 +0000 (20:42 -0000)]
Handle another case where removing a symlink to a directory can be harmful.

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

17 years agoFor bug #182157, don't let unmerge-orphans unlink symlinks to directories since that...
Zac Medico [Fri, 15 Jun 2007 20:25:18 +0000 (20:25 -0000)]
For bug #182157, don't let unmerge-orphans unlink symlinks to directories since that can remove /lib and /usr/lib symlinks.

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

17 years agoFor bug #182157, never chmod 0 symlinks before unlinking them.
Zac Medico [Fri, 15 Jun 2007 20:06:54 +0000 (20:06 -0000)]
For bug #182157, never chmod 0 symlinks before unlinking them.

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

17 years agoFor bug #182105, fix the spelling of the fd_pipes paremeter.
Zac Medico [Fri, 15 Jun 2007 10:22:04 +0000 (10:22 -0000)]
For bug #182105, fix the spelling of the fd_pipes paremeter.

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

17 years agoFix broken \!found logic so that any missing files are properly skipped.
Zac Medico [Thu, 14 Jun 2007 10:46:31 +0000 (10:46 -0000)]
Fix broken \!found logic so that any missing files are properly skipped.

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

17 years agoPass existing portdbapi and vardbapi instances into the NewsManager constructor.
Zac Medico [Wed, 13 Jun 2007 23:35:14 +0000 (23:35 -0000)]
Pass existing portdbapi and vardbapi instances into the NewsManager constructor.

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

17 years agoMake display_news_notification() reuse the existing portdbapi instance.
Zac Medico [Wed, 13 Jun 2007 23:01:26 +0000 (23:01 -0000)]
Make display_news_notification() reuse the existing portdbapi instance.

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

17 years agoPass all the of the existing package databases into post_emerge() so that we can...
Zac Medico [Wed, 13 Jun 2007 22:56:07 +0000 (22:56 -0000)]
Pass all the of the existing package databases into post_emerge() so that we can use them for news and preserve-libs.

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

17 years agoFor bug #181953, prevent the circular_blocks code from selecting a node that's alread...
Zac Medico [Wed, 13 Jun 2007 21:46:59 +0000 (21:46 -0000)]
For bug #181953, prevent the circular_blocks code from selecting a node that's already been selected by the normal node selection process.

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

17 years agoGet registry object from vardbapi directly instead of creating another one
Marius Mauch [Wed, 13 Jun 2007 17:40:35 +0000 (17:40 -0000)]
Get registry object from vardbapi directly instead of creating another one

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

17 years agoAdd portageq command to list preserved libs
Marius Mauch [Wed, 13 Jun 2007 17:29:03 +0000 (17:29 -0000)]
Add portageq command to list preserved libs

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

17 years agoIn dblink.treewalk(), handle the case where the current cpv is already installed...
Zac Medico [Wed, 13 Jun 2007 10:09:06 +0000 (10:09 -0000)]
In dblink.treewalk(), handle the case where the current cpv is already installed but it has a different slot (multislot or unapplied slotmove).

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

17 years agoAdd a note about the new unmerge-orphans behavior.
Zac Medico [Wed, 13 Jun 2007 08:08:55 +0000 (08:08 -0000)]
Add a note about the new unmerge-orphans behavior.

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

17 years agoFor bug #134620, add a FEATURES=unmerge-orphans option that causes unmerge to remove...
Zac Medico [Wed, 13 Jun 2007 07:21:59 +0000 (07:21 -0000)]
For bug #134620, add a FEATURES=unmerge-orphans option that causes unmerge to remove files more aggressively.  If a file is not claimed by another package in the same slot and it is not protected by CONFIG_PROTECT, unmerge it even if the modification time or checksum differs from the file that was originally installed.  This is enabled in make.globals since the vast majority of users probably want this.

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

17 years agoFix dblink.isowner() so it works properly when ROOT!=/.
Zac Medico [Wed, 13 Jun 2007 05:53:07 +0000 (05:53 -0000)]
Fix dblink.isowner() so it works properly when ROOT!=/.

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

17 years agoUse cached dblink instances for collision-protect.
Zac Medico [Wed, 13 Jun 2007 05:40:40 +0000 (05:40 -0000)]
Use cached dblink instances for collision-protect.

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

17 years agoCache dblink instances for security checks and reference counts during merge/unmerge...
Zac Medico [Wed, 13 Jun 2007 05:16:00 +0000 (05:16 -0000)]
Cache dblink instances for security checks and reference counts during merge/unmerge so that each CONTENTS only has to be parsed once.  These can also be reused for collision-protect.

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

17 years agoReuse previously acquired lstat results.
Zac Medico [Tue, 12 Jun 2007 22:07:51 +0000 (22:07 -0000)]
Reuse previously acquired lstat results.

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

17 years agoRemove some useless dircache code.
Zac Medico [Tue, 12 Jun 2007 21:29:04 +0000 (21:29 -0000)]
Remove some useless dircache code.

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

17 years agoAlways return a dict from dblink.getcontents() since callers never expect to get...
Zac Medico [Tue, 12 Jun 2007 21:08:30 +0000 (21:08 -0000)]
Always return a dict from dblink.getcontents() since callers never expect to get None.

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

17 years agoFor bug #181021, during unmerge use all slot matches for reference counts (in case...
Zac Medico [Tue, 12 Jun 2007 02:44:26 +0000 (02:44 -0000)]
For bug #181021, during unmerge use all slot matches for reference counts (in case the user has set AUTOCLEAN=no).

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

17 years agoAdd a note about preservation of timestamps on merged files.
Zac Medico [Tue, 12 Jun 2007 01:41:04 +0000 (01:41 -0000)]
Add a note about preservation of timestamps on merged files.

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

17 years agoRemove stray newline.
Zac Medico [Mon, 11 Jun 2007 21:23:32 +0000 (21:23 -0000)]
Remove stray newline.

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

17 years agoUpdate the PORT_LOGDIR docs for bug #82378. Thanks to Arfrever FTA for reporting.
Zac Medico [Mon, 11 Jun 2007 21:20:42 +0000 (21:20 -0000)]
Update the PORT_LOGDIR docs for bug #82378.  Thanks to Arfrever FTA for reporting.

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

17 years agoUpdate the PORT_LOGDIR docs for bug #82378. Thanks to Arfrever FTA for reporting.
Zac Medico [Mon, 11 Jun 2007 21:14:25 +0000 (21:14 -0000)]
Update the PORT_LOGDIR docs for bug #82378.  Thanks to Arfrever FTA for reporting.

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

17 years agoMove news about ** token in package.keywords to the 2.1.3 section.
Zac Medico [Mon, 11 Jun 2007 19:55:50 +0000 (19:55 -0000)]
Move news about ** token in package.keywords to the 2.1.3 section.

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

17 years agoBump 2.1.3 to 2.2 for some features and add news about USE_EXPAND wildcards.
Zac Medico [Mon, 11 Jun 2007 10:57:29 +0000 (10:57 -0000)]
Bump 2.1.3 to 2.2 for some features and add news about USE_EXPAND wildcards.

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

17 years agoFor consistency with other xterm titles code, redirect $PROMPT_COMMAND output to...
Zac Medico [Mon, 11 Jun 2007 08:41:34 +0000 (08:41 -0000)]
For consistency with other xterm titles code, redirect $PROMPT_COMMAND output to stderr.

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

17 years agoRemove the "missing left parenthesis" test for now since it gives false positives.
Zac Medico [Mon, 11 Jun 2007 02:12:59 +0000 (02:12 -0000)]
Remove the "missing left parenthesis" test for now since it gives false positives.

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

17 years agoFor bug #181355, detect parenthesis mismatch in paren_reduce(), raise an InvalidDepen...
Zac Medico [Mon, 11 Jun 2007 02:05:43 +0000 (02:05 -0000)]
For bug #181355, detect parenthesis mismatch in paren_reduce(), raise an InvalidDependString exception, and make sure that all callers handle the exception properly.

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

17 years agoFix the suid/sgid check so it only looks at regular files since it can generate false...
Zac Medico [Sun, 10 Jun 2007 22:41:42 +0000 (22:41 -0000)]
Fix the suid/sgid check so it only looks at regular files since it can generate false positives otherwise.

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

17 years agoDon't bother to warn about hardlinks to suid/sgid files before unlink since it can...
Zac Medico [Sun, 10 Jun 2007 22:15:33 +0000 (22:15 -0000)]
Don't bother to warn about hardlinks to suid/sgid files before unlink since it can give false positives and the existing suid/sgid security check should spot problems before this anyway.

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

17 years agoFor bug #81097, detect and report suspicious hardlinks to suid/sgid files. False...
Zac Medico [Sun, 10 Jun 2007 21:44:15 +0000 (21:44 -0000)]
For bug #81097, detect and report suspicious hardlinks to suid/sgid files.  False positives are prevented by doing reference counts for each inode having suid/sgid bits and multiple hardlinks.  The security check is done prior to each merge or unmerge phase and it will cause the phase to abort if a problem is found (so that the user can investigate before any files are removed).

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

17 years agoFor bug #181551, support slot deps in package.keywords.
Zac Medico [Sun, 10 Jun 2007 19:28:31 +0000 (19:28 -0000)]
For bug #181551, support slot deps in package.keywords.

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

17 years agoMake repoman work with both + and - flags in IUSE.
Zac Medico [Sun, 10 Jun 2007 10:22:47 +0000 (10:22 -0000)]
Make repoman work with both + and - flags in IUSE.

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

17 years agoPreserve order of flags from IUSE in wildcard expansion.
Zac Medico [Sun, 10 Jun 2007 10:12:10 +0000 (10:12 -0000)]
Preserve order of flags from IUSE in wildcard expansion.

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

17 years agoFor bug #148702, use the * token to trigger wildcard expansion of IUSE. This adds...
Zac Medico [Sat, 9 Jun 2007 23:06:19 +0000 (23:06 -0000)]
For bug #148702, use the * token to trigger wildcard expansion of IUSE.  This adds flexibility and prevents flags from being enabled unexpectedly.

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

17 years agoWhen an update is discarded due to confmem, record it's mtime in the contents (it...
Zac Medico [Sat, 9 Jun 2007 13:17:27 +0000 (13:17 -0000)]
When an update is discarded due to confmem, record it's mtime in the contents (it's md5 is already recorded there too).

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

17 years agoFor bug #148702, automatically enable flags from IUSE if they correspond to unset...
Zac Medico [Sat, 9 Jun 2007 11:42:24 +0000 (11:42 -0000)]
For bug #148702, automatically enable flags from IUSE if they correspond to unset USE_EXPAND variables such as LINGUAS.  The variable only has to be set to some value or an empty string in order to disable these flags.

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

17 years agoFor bug #181387, fix an UnboundLocalError for the mymtime variable that is triggered...
Zac Medico [Sat, 9 Jun 2007 10:55:34 +0000 (10:55 -0000)]
For bug #181387, fix an UnboundLocalError for the mymtime variable that is triggered by confmem.

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

17 years agoSkip bogus '$ECLASS inherited illegally' messages when installing from a binary package.
Zac Medico [Sat, 9 Jun 2007 04:45:57 +0000 (04:45 -0000)]
Skip bogus '$ECLASS inherited illegally' messages when installing from a binary package.

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

17 years agoOnly execute $PROMPT_COMMAND when appropriate.
Zac Medico [Sat, 9 Jun 2007 03:48:51 +0000 (03:48 -0000)]
Only execute $PROMPT_COMMAND when appropriate.

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

17 years agoFor bug #152828, run ${CHOST}-ldconfig when ${CBUILD} != ${CHOST}.
Zac Medico [Sat, 9 Jun 2007 00:17:22 +0000 (00:17 -0000)]
For bug #152828, run ${CHOST}-ldconfig when ${CBUILD} != ${CHOST}.

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

17 years agoFor bug #139383, in xtermTitleReset() use os.system() instead of commands.getoutput...
Zac Medico [Fri, 8 Jun 2007 23:10:46 +0000 (23:10 -0000)]
For bug #139383, in xtermTitleReset() use os.system() instead of commands.getoutput() since the latter puts too much restriction on what $PROMPT_COMMAND may contain.

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

17 years agoFor bug #181104, make econf give an appropriate error message when configure is not...
Zac Medico [Fri, 8 Jun 2007 21:40:53 +0000 (21:40 -0000)]
For bug #181104, make econf give an appropriate error message when configure is not executable.

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

17 years agoIgnore InvalidDependString exceptions from the RESTRICT of "nomerge" nodes.
Zac Medico [Thu, 7 Jun 2007 23:38:07 +0000 (23:38 -0000)]
Ignore InvalidDependString exceptions from the RESTRICT of "nomerge" nodes.

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

17 years agoMake all the python code respect USE conditionals in RESTRICT. It's already handled...
Zac Medico [Thu, 7 Jun 2007 18:57:04 +0000 (18:57 -0000)]
Make all the python code respect USE conditionals in RESTRICT.  It's already handled on the bash side since RESTRICT is assigned the value of PORTAGE_RESTRICT.

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

17 years agoMake pkgsplit and catpkgsplit return imutable tuples instead of mutable lists so...
Zac Medico [Thu, 7 Jun 2007 14:47:39 +0000 (14:47 -0000)]
Make pkgsplit and catpkgsplit return imutable tuples instead of mutable lists so that cached values can be safely returned without cloning them first.  Thanks to Brian Harring for the suggestion.

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

17 years agoFix strange _DevNull instance has no attribute 'isatty' warnings that occur when...
Zac Medico [Thu, 7 Jun 2007 12:17:10 +0000 (12:17 -0000)]
Fix strange _DevNull instance has no attribute 'isatty' warnings that occur when epydoc generates docs.

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

17 years agoWhen using a pty for logging, use setsid() to create a new session and make the pty...
Zac Medico [Thu, 7 Jun 2007 12:02:59 +0000 (12:02 -0000)]
When using a pty for logging, use setsid() to create a new session and make the pty into the controlling terminal of the new session.  This makes interactive ebuild behave properly in interactive cases like check_license() where ${PAGER:-less} is invoked.

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

17 years agoReturn copies of the cached values from pkgsplit and catpkgsplit.
Zac Medico [Wed, 6 Jun 2007 07:54:25 +0000 (07:54 -0000)]
Return copies of the cached values from pkgsplit and catpkgsplit.

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

17 years agoFor bug #181021, don't compare attributes of contents entries when deciding which...
Zac Medico [Wed, 6 Jun 2007 07:45:19 +0000 (07:45 -0000)]
For bug #181021, don't compare attributes of contents entries when deciding which files not to unmerge.  Simply keep any file that's listed in the new contents in order to avoid problematic scenarios such as those described in comments #32 and #40 of bug #8423.

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

17 years agoFor bug #82378, only set permissions on PORT_LOGDIR if it is created automatically.
Zac Medico [Wed, 6 Jun 2007 05:58:17 +0000 (05:58 -0000)]
For bug #82378, only set permissions on PORT_LOGDIR if it is created automatically.

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

17 years agoFor bug #156536, update --resume docs to show that the resume history is capable...
Zac Medico [Wed, 6 Jun 2007 05:25:06 +0000 (05:25 -0000)]
For bug #156536, update --resume docs to show that the resume history is capable of storing two merge lists.

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

17 years agoFor bug #153967, use -O ${DISTDIR}/${FILE} in the default FETCHCOMMAND.
Zac Medico [Wed, 6 Jun 2007 04:09:08 +0000 (04:09 -0000)]
For bug #153967, use -O ${DISTDIR}/${FILE} in the default FETCHCOMMAND.

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

17 years agoComment in portage.movefile() that it's impossible to preserve timestamps of a symlin...
Zac Medico [Wed, 6 Jun 2007 03:37:11 +0000 (03:37 -0000)]
Comment in portage.movefile() that it's impossible to preserve timestamps of a symlink since utime() only works on the target.

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

17 years agoFor bug #181021, preserve timestamps from ${D} during merge. For replacement operati...
Zac Medico [Wed, 6 Jun 2007 02:59:37 +0000 (02:59 -0000)]
For bug #181021, preserve timestamps from ${D} during merge.  For replacement operations, the unmerge phase checks the contents of the newer instance in order to prevent identical files in the newer instance from being unmerged.

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

17 years agoFix typo, split SPACE_SEPARATED variables on whitespace.
Zac Medico [Wed, 6 Jun 2007 00:59:49 +0000 (00:59 -0000)]
Fix typo, split SPACE_SEPARATED variables on whitespace.

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

17 years agoWhen dblink.treewalk() looks for an installed instance in the same slot, make sure...
Zac Medico [Tue, 5 Jun 2007 23:34:04 +0000 (23:34 -0000)]
When dblink.treewalk() looks for an installed instance in the same slot, make sure that it selects the one with the highest COUNTER in case there are multiple matches.

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

17 years agoRemove duplicate entries from special variables processed by env_update() (bug #172194)
Marius Mauch [Tue, 5 Jun 2007 17:55:03 +0000 (17:55 -0000)]
Remove duplicate entries from special variables processed by env_update() (bug #172194)

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

17 years agoUse user-provided $mv_opts for -5 (bug #47442)
Marius Mauch [Tue, 5 Jun 2007 16:58:08 +0000 (16:58 -0000)]
Use user-provided $mv_opts for -5 (bug #47442)

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

17 years agoAdd ECONF_SOURCE to the econf docs.
Zac Medico [Tue, 5 Jun 2007 02:28:26 +0000 (02:28 -0000)]
Add ECONF_SOURCE to the econf docs.

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

17 years agoDocument EXTRA_ECONF, thanks to Arfrever FTA in bug #167057.
Zac Medico [Tue, 5 Jun 2007 02:23:26 +0000 (02:23 -0000)]
Document EXTRA_ECONF, thanks to Arfrever FTA in bug #167057.

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

17 years agoImprove support for slot deps atoms given on the command line. Thanks to Flameeyes...
Zac Medico [Mon, 4 Jun 2007 09:29:13 +0000 (09:29 -0000)]
Improve support for slot deps atoms given on the command line.  Thanks to Flameeyes for reporting.

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

17 years agoFix typo.
Zac Medico [Mon, 4 Jun 2007 03:13:43 +0000 (03:13 -0000)]
Fix typo.

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

17 years agoFor bug #164655, port quickpkg to python and use the tarfile module for proper handli...
Zac Medico [Mon, 4 Jun 2007 01:44:34 +0000 (01:44 -0000)]
For bug #164655, port quickpkg to python and use the tarfile module for proper handling of symlinks to directories.  Thanks to Martin Parm <parmus@diku.dk> for the initial port.

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

17 years agoFix broken usage of lstrip in creating the PROFILE header field.
Zac Medico [Sun, 3 Jun 2007 21:48:56 +0000 (21:48 -0000)]
Fix broken usage of lstrip in creating the PROFILE header field.

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

17 years agoRemove pym/{cache,elog_modules} directory symlinks since they lead to upgrade/downgra...
Zac Medico [Sun, 3 Jun 2007 07:15:54 +0000 (07:15 -0000)]
Remove pym/{cache,elog_modules} directory symlinks since they lead to upgrade/downgrade issues.  These modules probably aren't referenced from outside of portage anyway.  There's a hack in config.load_best_module() so that cache.* in /etc/portage/modules will first try cache.* and then try portage.cache.* if there's an ImportError.

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

17 years agoUse the PORTAGE_BINHOST_HEADER_URI environment variable to define the URI header...
Zac Medico [Sat, 2 Jun 2007 04:45:39 +0000 (04:45 -0000)]
Use the PORTAGE_BINHOST_HEADER_URI environment variable to define the URI header field for the Packages index.  If the URI header field is defined then the client will use it as a base URI for fetching packages.

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