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
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
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
Zac Medico [Sun, 24 Jun 2007 21:47:03 +0000 (21:47 -0000)]
Clarify RESUMECOMMAND requirements.
svn path=/main/trunk/; revision=7005
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
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
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
Zac Medico [Sun, 24 Jun 2007 18:09:01 +0000 (18:09 -0000)]
Fix more typos from r6988.
svn path=/main/trunk/; revision=6996
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
Zac Medico [Sun, 24 Jun 2007 08:47:40 +0000 (08:47 -0000)]
Fix typo.
svn path=/main/trunk/; revision=6989
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
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
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
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
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
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
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
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
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
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
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
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
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
Marius Mauch [Sat, 23 Jun 2007 16:11:47 +0000 (16:11 -0000)]
syntax error
svn path=/main/trunk/; revision=6974
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
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
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
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
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
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
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
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
Zac Medico [Fri, 22 Jun 2007 23:17:08 +0000 (23:17 -0000)]
Remove confcache docs.
svn path=/main/trunk/; revision=6956
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Zac Medico [Thu, 21 Jun 2007 12:01:43 +0000 (12:01 -0000)]
Remove more unnecessary list generation.
svn path=/main/trunk/; revision=6913
Zac Medico [Thu, 21 Jun 2007 11:40:51 +0000 (11:40 -0000)]
Remove more unnecessary list generation.
svn path=/main/trunk/; revision=6912
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Zac Medico [Tue, 12 Jun 2007 22:07:51 +0000 (22:07 -0000)]
Reuse previously acquired lstat results.
svn path=/main/trunk/; revision=6821
Zac Medico [Tue, 12 Jun 2007 21:29:04 +0000 (21:29 -0000)]
Remove some useless dircache code.
svn path=/main/trunk/; revision=6818
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
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