portage.git
17 years agoFix resume logic in binarytree.gettbz2().
Zac Medico [Mon, 25 Jun 2007 02:48:41 +0000 (02:48 -0000)]
Fix resume logic in binarytree.gettbz2().

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

17 years agoFor bug #175891, support ${FETCHCOMMAND}_${PROTOCOL} in binarytree.gettbz2().
Zac Medico [Mon, 25 Jun 2007 02:35:55 +0000 (02:35 -0000)]
For bug #175891, support ${FETCHCOMMAND}_${PROTOCOL} in binarytree.gettbz2().

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

17 years agoClean up file_get() to use shlex, varexpand, and spawn.
Zac Medico [Mon, 25 Jun 2007 02:07:11 +0000 (02:07 -0000)]
Clean up file_get() to use shlex, varexpand, and spawn.

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

17 years agoFix binarytree.isremote() to be consistent with binarytree.gettbz2() logic wrt partia...
Zac Medico [Sun, 24 Jun 2007 23:47:03 +0000 (23:47 -0000)]
Fix binarytree.isremote() to be consistent with binarytree.gettbz2() logic wrt partially downloaded files.

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

17 years agoRemove unused imports and unnecessary dict.keys() call.
Zac Medico [Sun, 24 Jun 2007 22:44:59 +0000 (22:44 -0000)]
Remove unused imports and unnecessary dict.keys() call.

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

17 years agoUse a set to optimize containment lookups.
Zac Medico [Sun, 24 Jun 2007 22:05:52 +0000 (22:05 -0000)]
Use a set to optimize containment lookups.

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

17 years agoClarify RESUMECOMMAND requirements.
Zac Medico [Sun, 24 Jun 2007 21:47:03 +0000 (21:47 -0000)]
Clarify RESUMECOMMAND requirements.

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

17 years agoUpdate the FETCHCOMMAND docs to indicate that the command should be +written to place...
Zac Medico [Sun, 24 Jun 2007 21:29:39 +0000 (21:29 -0000)]
Update the FETCHCOMMAND docs to indicate that the command should be +written to place the fetched file at ${DISTDIR}/${FILE}.

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

17 years agoFix broken base_uri handling for old-style binhosts in binarytree.gettbz2().
Zac Medico [Sun, 24 Jun 2007 20:36:52 +0000 (20:36 -0000)]
Fix broken base_uri handling for old-style binhosts in binarytree.gettbz2().

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

17 years agoFor bug #180706, add sorting and a trailing newline in the rest of the cases where...
Zac Medico [Sun, 24 Jun 2007 18:58:42 +0000 (18:58 -0000)]
For bug #180706, add sorting and a trailing newline in the rest of the cases where the world file is written.

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

17 years agoFix more typos from r6988.
Zac Medico [Sun, 24 Jun 2007 18:09:01 +0000 (18:09 -0000)]
Fix more typos from r6988.

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

17 years agoHandle 'Permission denied' errors that can occur if the current user isn't allowed...
Zac Medico [Sun, 24 Jun 2007 09:38:29 +0000 (09:38 -0000)]
Handle 'Permission denied' errors that can occur if the current user isn't allowed to access PRIVATE_PATH.

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

17 years agoFix typo.
Zac Medico [Sun, 24 Jun 2007 08:47:40 +0000 (08:47 -0000)]
Fix typo.

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

17 years agoFix column alignment in unmerge output.
Zac Medico [Sun, 24 Jun 2007 07:54:50 +0000 (07:54 -0000)]
Fix column alignment in unmerge output.

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

17 years agoMake the fix for bug #139600 slightly less icky by grabbing the ACCEPT_KEYWORDS throu...
Zac Medico [Sun, 24 Jun 2007 07:11:46 +0000 (07:11 -0000)]
Make the fix for bug #139600 slightly less icky by grabbing the ACCEPT_KEYWORDS through mysettings.configdict[backupenv] instead of directly through os.environ.

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

17 years agoAlways unlink the .installed flag prior to merge since portage.movefile() never leave...
Zac Medico [Sun, 24 Jun 2007 06:43:09 +0000 (06:43 -0000)]
Always unlink the .installed flag prior to merge since portage.movefile() never leaves  intact.

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

17 years agoProvide a default value for PORTAGE_BINPKG_TMPFILE in case the package phase is calle...
Zac Medico [Sun, 24 Jun 2007 06:40:36 +0000 (06:40 -0000)]
Provide a default value for PORTAGE_BINPKG_TMPFILE in case the package phase is called by the ebuild command.

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

17 years agoFor bug #182964, replace os.rename() with portage.movefile() in cases where the paren...
Zac Medico [Sun, 24 Jun 2007 00:32:05 +0000 (00:32 -0000)]
For bug #182964, replace os.rename() with portage.movefile() in cases where the parent directory might change.

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

17 years agoFix check_config_instance() weirdness when the ebuild command reloads the portage...
Zac Medico [Sat, 23 Jun 2007 23:03:17 +0000 (23:03 -0000)]
Fix check_config_instance() weirdness when the ebuild command reloads the portage module.

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

17 years agoget ACCEPT_KEYWORDS from the env in gvisible() to properly handle negated values...
Marius Mauch [Sat, 23 Jun 2007 19:36:30 +0000 (19:36 -0000)]
get ACCEPT_KEYWORDS from the env in gvisible() to properly handle negated values (bug #139600)

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

17 years agoAdd a pointer from FETCHCOMMAND to RESUMECOMMAND (bug #141550)
Marius Mauch [Sat, 23 Jun 2007 19:16:52 +0000 (19:16 -0000)]
Add a pointer from FETCHCOMMAND to RESUMECOMMAND (bug #141550)

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

17 years agohighlight world packages in --pretend output (bug #142473)
Marius Mauch [Sat, 23 Jun 2007 19:12:36 +0000 (19:12 -0000)]
highlight world packages in --pretend output (bug #142473)

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

17 years agodont break when the binhost url doesn't end with a slash (bug #144440)
Marius Mauch [Sat, 23 Jun 2007 18:47:55 +0000 (18:47 -0000)]
dont break when the binhost url doesn't end with a slash (bug #144440)

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

17 years agochange default diff_command for emacs (bug #147558)
Marius Mauch [Sat, 23 Jun 2007 18:16:45 +0000 (18:16 -0000)]
change default diff_command for emacs (bug #147558)

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

17 years agosort the world file before writing it and ensure that it's terminated by a newline
Marius Mauch [Sat, 23 Jun 2007 16:29:05 +0000 (16:29 -0000)]
sort the world file before writing it and ensure that it's terminated by a newline

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

17 years agos/!owned/replaced/ in merge output to clarify it
Marius Mauch [Sat, 23 Jun 2007 16:17:49 +0000 (16:17 -0000)]
s/!owned/replaced/ in merge output to clarify it

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

17 years agosyntax error
Marius Mauch [Sat, 23 Jun 2007 16:11:47 +0000 (16:11 -0000)]
syntax error

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

17 years agoAllow sync for unpriviledges users if they have write access to $PORTDIR
Marius Mauch [Sat, 23 Jun 2007 15:50:35 +0000 (15:50 -0000)]
Allow sync for unpriviledges users if they have write access to $PORTDIR

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

17 years agoadd hashlib support for checksum verification, refactor checksum functions to not...
Marius Mauch [Sat, 23 Jun 2007 13:12:07 +0000 (13:12 -0000)]
add hashlib support for checksum verification, refactor checksum functions to not look like a complete mess

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

17 years agoRevert r6967 since shutil.move() is broken internally.
Zac Medico [Sat, 23 Jun 2007 13:09:30 +0000 (13:09 -0000)]
Revert r6967 since shutil.move() is broken internally.

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

17 years agos/OSError/EnvironmentError/ since shutil.move() generally raises an IOError.
Zac Medico [Sat, 23 Jun 2007 11:09:45 +0000 (11:09 -0000)]
s/OSError/EnvironmentError/ since shutil.move() generally raises an IOError.

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

17 years agoFor bug #182964, replace os.rename() with shutil.move() in order to handle EXDEV...
Zac Medico [Sat, 23 Jun 2007 10:58:09 +0000 (10:58 -0000)]
For bug #182964, replace os.rename() with shutil.move() in order to handle EXDEV errors that are triggered by layered filesystems.

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

17 years agoRemove redundant 'Usage: ' from the usage message.
Zac Medico [Sat, 23 Jun 2007 03:58:10 +0000 (03:58 -0000)]
Remove redundant 'Usage: ' from the usage message.

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

17 years agoAdd a logrotate config for the save_summary elog module since it's enabled by default...
Zac Medico [Sat, 23 Jun 2007 00:21:36 +0000 (00:21 -0000)]
Add a logrotate config for the save_summary elog module since it's enabled by default now.

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

17 years agoShow which $ROOT a package was merged to when $ROOT is not /.
Zac Medico [Fri, 22 Jun 2007 23:42:22 +0000 (23:42 -0000)]
Show which $ROOT a package was merged to when $ROOT is not /.

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

17 years agoRemove confcache docs.
Zac Medico [Fri, 22 Jun 2007 23:17:08 +0000 (23:17 -0000)]
Remove confcache docs.

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

17 years agoMake elog finalize() handling safe for PORTAGE_CONFIGROOT.
Zac Medico [Fri, 22 Jun 2007 23:11:38 +0000 (23:11 -0000)]
Make elog finalize() handling safe for PORTAGE_CONFIGROOT.

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

17 years agoDocument RESTRICT=bindist and add a note about allowance for conditional syntax.
Zac Medico [Fri, 22 Jun 2007 21:55:05 +0000 (21:55 -0000)]
Document RESTRICT=bindist and add a note about allowance for conditional syntax.

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

17 years agoDump mod_echo elog output inside post_emerge(), just before the other notifications...
Zac Medico [Fri, 22 Jun 2007 13:43:46 +0000 (13:43 -0000)]
Dump mod_echo elog output inside post_emerge(), just before the other notifications that happen at exit.

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

17 years agoAdd a note about potential for config mixups in elog finalizers.
Zac Medico [Fri, 22 Jun 2007 12:57:41 +0000 (12:57 -0000)]
Add a note about potential for config mixups in elog finalizers.

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

17 years agoUpdate 2.1.3 news for elog stuff.
Zac Medico [Fri, 22 Jun 2007 11:00:39 +0000 (11:00 -0000)]
Update 2.1.3 news for elog stuff.

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

17 years agoFor bug #182428, make quickpkg exclude config files that are protected by CONFIG_PROT...
Zac Medico [Fri, 22 Jun 2007 08:47:02 +0000 (08:47 -0000)]
For bug #182428, make quickpkg exclude config files that are protected by CONFIG_PROTECT.  Add a --include-config option that includes all config files and a --include-unmodified-config that includes config files that have not been modified since installation (matching md5sum).

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

17 years agoMake quickpkg print a warning if "bindist" is in RESTRICT.
Zac Medico [Fri, 22 Jun 2007 06:13:46 +0000 (06:13 -0000)]
Make quickpkg print a warning if "bindist" is in RESTRICT.

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

17 years agocache the result of --suffix to reduce testing overhead as suggested by Mr_Bones_
Mike Frysinger [Thu, 21 Jun 2007 23:42:52 +0000 (23:42 -0000)]
cache the result of --suffix to reduce testing overhead as suggested by Mr_Bones_

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

17 years agoClean up config.__getitem__(), get() and setdefault() implementions.
Zac Medico [Thu, 21 Jun 2007 21:37:25 +0000 (21:37 -0000)]
Clean up config.__getitem__(), get() and setdefault() implementions.

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

17 years agoSimplify the implementation of config.__iter__ and also implement iterkeys().
Zac Medico [Thu, 21 Jun 2007 21:14:56 +0000 (21:14 -0000)]
Simplify the implementation of config.__iter__ and also implement iterkeys().

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

17 years agoImplement iterkeys on top of __iter__ instead of vice versa. Thanks to Brian Harring...
Zac Medico [Thu, 21 Jun 2007 21:10:00 +0000 (21:10 -0000)]
Implement iterkeys on top of __iter__ instead of vice versa.  Thanks to Brian Harring for the suggestion.

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

17 years agoAutodetect if sandbox is active in order to prevent recursive sandbox invocation...
Zac Medico [Thu, 21 Jun 2007 20:36:22 +0000 (20:36 -0000)]
Autodetect if sandbox is active in order to prevent recursive sandbox invocation.  Thanks to Brian Harring for the suggestion.

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

17 years agoImplement config.has_key() on top of __contains__ instead of vice versa.
Zac Medico [Thu, 21 Jun 2007 20:15:10 +0000 (20:15 -0000)]
Implement config.has_key() on top of __contains__ instead of vice versa.

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

17 years agoFix the test so that it can run inside a sandbox.
Zac Medico [Thu, 21 Jun 2007 12:16:49 +0000 (12:16 -0000)]
Fix the test so that it can run inside a sandbox.

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

17 years agoImplement UserConfigKlass.__iter__() so that tests pass.
Zac Medico [Thu, 21 Jun 2007 12:12:01 +0000 (12:12 -0000)]
Implement UserConfigKlass.__iter__() so that tests pass.

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

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