Zac Medico [Tue, 25 Mar 2008 04:04:44 +0000 (04:04 -0000)]
Bug #212621 - Make the EbuildQuote check do quoting validation for misc
variables from games.eclass.
svn path=/main/trunk/; revision=9507
Zac Medico [Tue, 25 Mar 2008 03:54:34 +0000 (03:54 -0000)]
Fix typo.
svn path=/main/trunk/; revision=9506
Zac Medico [Tue, 25 Mar 2008 03:51:51 +0000 (03:51 -0000)]
Bug #212152 - Account pre-existing files when calculating whether there
is enough space for a download.
svn path=/main/trunk/; revision=9505
Zac Medico [Tue, 25 Mar 2008 03:18:28 +0000 (03:18 -0000)]
Bug #211294 - Make repoman bail out if arch.list contains unrecognized
lines since we don't want people to commit with old versions of portage
that don't support the current arch.list format.
svn path=/main/trunk/; revision=9504
Zac Medico [Mon, 24 Mar 2008 23:14:37 +0000 (23:14 -0000)]
Bug #214499 - When compiler flags are unset, many packages will substitute
their own implicit flags. For uniformity, use an empty string as the default.
svn path=/main/trunk/; revision=9503
Zac Medico [Mon, 24 Mar 2008 23:05:00 +0000 (23:05 -0000)]
Check is os.statvfs() is implemented before trying to us it.
(branches/prefix r9500)
svn path=/main/trunk/; revision=9502
Zac Medico [Thu, 20 Mar 2008 21:35:45 +0000 (21:35 -0000)]
Improve logic from the previous commit.
svn path=/main/trunk/; revision=9496
Zac Medico [Thu, 20 Mar 2008 21:31:38 +0000 (21:31 -0000)]
Fix depgraph._select_package() to make sure the installed package is a real
match before rejecting other available packages.
svn path=/main/trunk/; revision=9495
Marius Mauch [Wed, 19 Mar 2008 22:46:19 +0000 (22:46 -0000)]
readd digestentry.unused category as it's still relevant
svn path=/main/trunk/; revision=9491
Zac Medico [Wed, 19 Mar 2008 19:49:00 +0000 (19:49 -0000)]
Fix quoting.
svn path=/main/trunk/; revision=9489
Marius Mauch [Wed, 19 Mar 2008 18:44:52 +0000 (18:44 -0000)]
display versions of other slots for new-slot installs (bug #213790)
svn path=/main/trunk/; revision=9488
Zac Medico [Wed, 19 Mar 2008 11:34:10 +0000 (11:34 -0000)]
Strip trailing slashes from directory paths if necessary.
svn path=/main/trunk/; revision=9487
Zac Medico [Wed, 19 Mar 2008 10:31:43 +0000 (10:31 -0000)]
Bug #210690 - Fix --help output to show the leading slash on the path to
the world file.
svn path=/main/trunk/; revision=9486
Zac Medico [Wed, 19 Mar 2008 10:24:26 +0000 (10:24 -0000)]
Bug #210575 - Optimize doins -r so that it doesn't call itself recursively,
since it's faster to handle the recursion internally. Thanks to Benedikt
Böhm <hollow@gentoo.org> for the initial patch.
svn path=/main/trunk/; revision=9485
Zac Medico [Wed, 19 Mar 2008 09:45:51 +0000 (09:45 -0000)]
Only show the eqawarn from bug #149745 when nothing is found to install. Also,
exit successfully unless nothing is found to install.
svn path=/main/trunk/; revision=9484
Zac Medico [Wed, 19 Mar 2008 07:03:05 +0000 (07:03 -0000)]
Bug #201045 - Fix unmerge() to preserve unmerge order so that dependencies
are respected. Also, eliminate duplicate package selections since the same
package may be selected by multiple atoms but we can only unmerge it once.
svn path=/main/trunk/; revision=9483
Zac Medico [Tue, 18 Mar 2008 23:44:12 +0000 (23:44 -0000)]
Bug #139023 - When the --digest option is enabled, advise the user that
`repoman manifest` is the preferred way to generate manifests.
svn path=/main/trunk/; revision=9482
Marius Mauch [Tue, 18 Mar 2008 23:41:52 +0000 (23:41 -0000)]
make filesets non-greedy by default
svn path=/main/trunk/; revision=9481
Marius Mauch [Tue, 18 Mar 2008 23:38:27 +0000 (23:38 -0000)]
add unmerge protection for packages still referenced by installed package sets
svn path=/main/trunk/; revision=9480
Marius Mauch [Tue, 18 Mar 2008 23:37:18 +0000 (23:37 -0000)]
add @ to the list of invalid atom chars so sets with prefix aren't considered as atoms accidentally
svn path=/main/trunk/; revision=9479
Marius Mauch [Tue, 18 Mar 2008 22:40:31 +0000 (22:40 -0000)]
fix artifact from r9477
svn path=/main/trunk/; revision=9478
Marius Mauch [Tue, 18 Mar 2008 22:36:57 +0000 (22:36 -0000)]
use a dict with CP keys in unmerge() to avoid double unmerges if a package is matched by multiple atoms
svn path=/main/trunk/; revision=9477
Zac Medico [Tue, 18 Mar 2008 22:12:52 +0000 (22:12 -0000)]
Bug #149745 - Generate an eqawarn message if dohtml is called on a directory
without the recursive option. Thanks to brad walker <bradmwalker@cableone.net>
for reporting.
svn path=/main/trunk/; revision=9476
Zac Medico [Tue, 18 Mar 2008 21:22:53 +0000 (21:22 -0000)]
Bug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% identically and
update the docs to reflect this.
svn path=/main/trunk/; revision=9475
Zac Medico [Mon, 17 Mar 2008 02:23:33 +0000 (02:23 -0000)]
Bug #212882 - For compatibility with ENOENT exceptions raised from
fstat calls with CIFS, wrap fstat calls with an appropriate exception
handler.
svn path=/main/trunk/; revision=9474
Zac Medico [Sun, 16 Mar 2008 20:33:59 +0000 (20:33 -0000)]
Bug #213592 - Fix --onlydeps breakage.
svn path=/main/trunk/; revision=9473
Zac Medico [Sun, 16 Mar 2008 00:54:53 +0000 (00:54 -0000)]
Bug #213540 - Make sure DESTTREE=/usr is set before inherit calls.
svn path=/main/trunk/; revision=9472
Zac Medico [Sat, 15 Mar 2008 23:10:58 +0000 (23:10 -0000)]
When in strict mode, make paren_reduce() detect missing whitespace around
parenthesis tokens and raise an InvalidDependString exception. Strict mode
is not enabled when handling installed packages, so this will only affect
repoman and packages that haven't been installed yet. Thanks to zlin for
reporting.
svn path=/main/trunk/; revision=9471
Marius Mauch [Sat, 15 Mar 2008 22:43:25 +0000 (22:43 -0000)]
avoid importing portage to improve performance
svn path=/main/trunk/; revision=9470
Marius Mauch [Sat, 15 Mar 2008 19:33:45 +0000 (19:33 -0000)]
add a placeholder for repository paths in 'filename' and 'directory' options for StaticFileSet
svn path=/main/trunk/; revision=9469
Zac Medico [Sat, 15 Mar 2008 05:28:53 +0000 (05:28 -0000)]
Fix an UnboundLocalError for 'pkgindex'.
svn path=/main/trunk/; revision=9467
Zac Medico [Fri, 14 Mar 2008 18:23:58 +0000 (18:23 -0000)]
Fix grammar.
svn path=/main/trunk/; revision=9466
Zac Medico [Fri, 14 Mar 2008 06:53:25 +0000 (06:53 -0000)]
Bug #42456 - When a checksum failure occurs during fetch, use a new
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable to control how
many mirrors should be tried before aborting the download. This type
of behavior used to be enabled only in --fetchonly mode but now
it's enabled for all fetch() calls.
svn path=/main/trunk/; revision=9463
Zac Medico [Fri, 14 Mar 2008 02:41:31 +0000 (02:41 -0000)]
* Optimize parallel-fetch to avoid redundant checksum verification.
* Add parallel-fetch to the default FEATURES since it is more efficient now.
svn path=/main/trunk/; revision=9462
Zac Medico [Thu, 13 Mar 2008 18:04:50 +0000 (18:04 -0000)]
Make strip_empty() return a nedw list instead of working in-place. Thanks to
René Neumann <rene.neumann@necoro.net> for the suggestion.
svn path=/main/trunk/; revision=9460
Ned Ludd [Tue, 11 Mar 2008 00:52:20 +0000 (00:52 -0000)]
- news bugfix from ferringb
svn path=/main/trunk/; revision=9459
Zac Medico [Mon, 10 Mar 2008 16:42:49 +0000 (16:42 -0000)]
Bug #212882 - Fix lockfile() to handle errno.EACCES raised from the fcntl
call since the spec says that it's equivalent to EAGAIN and it appears that
CIFS returns EACCES in this case.
svn path=/main/trunk/; revision=9458
Zac Medico [Sun, 9 Mar 2008 20:13:58 +0000 (20:13 -0000)]
When all available ebuilds are masked, avoid producing warning message when
the package does not need to be reinstalled and the installed version is not
masked.
svn path=/main/trunk/; revision=9457
Zac Medico [Sun, 9 Mar 2008 02:36:47 +0000 (02:36 -0000)]
Fix var_assign_re to recognize a call to the 'declare' builtin even when
no options are given.
svn path=/main/trunk/; revision=9456
Marius Mauch [Sun, 9 Mar 2008 01:27:51 +0000 (01:27 -0000)]
add some status messages, try to copy the tarball into DISTDIR, use getopt for option parsing
svn path=/main/trunk/; revision=9455
Zac Medico [Sat, 8 Mar 2008 00:21:15 +0000 (00:21 -0000)]
Make readpkgindex() and writepkgindex() private methods of PackageIndex.
svn path=/main/trunk/; revision=9453
Zac Medico [Fri, 7 Mar 2008 23:52:35 +0000 (23:52 -0000)]
Convert PackageIndex.packages from a dict to a list so that in the future
it will be possible to support multiple packages with the same cpv.
svn path=/main/trunk/; revision=9452
Zac Medico [Fri, 7 Mar 2008 21:26:49 +0000 (21:26 -0000)]
Make --prune and --depclean operate with missing dependencies when only
asked to remove specific packages since it's relatively safe in this case.
svn path=/main/trunk/; revision=9451
Zac Medico [Thu, 6 Mar 2008 02:33:04 +0000 (02:33 -0000)]
Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox for
things like writing metadata cache. Thanks to ferringb for the suggestion.
svn path=/main/trunk/; revision=9448
Zac Medico [Thu, 6 Mar 2008 01:16:30 +0000 (01:16 -0000)]
Remove egrep syntax emulation since it's not really needed.
svn path=/main/trunk/; revision=9447
Zac Medico [Thu, 6 Mar 2008 01:03:42 +0000 (01:03 -0000)]
Implement the sed-based declare -r filter in python.
svn path=/main/trunk/; revision=9446
Zac Medico [Thu, 6 Mar 2008 00:23:32 +0000 (00:23 -0000)]
Move the variable name validation regexes (for bug 211949) into
filter-bash-environment.py instead of passing them in from bash.
svn path=/main/trunk/; revision=9445
Zac Medico [Wed, 5 Mar 2008 23:54:33 +0000 (23:54 -0000)]
Update the description to reflect the new meaning of PATTERN.
svn path=/main/trunk/; revision=9444
Zac Medico [Wed, 5 Mar 2008 23:48:50 +0000 (23:48 -0000)]
Pass a space-separated list of variables into filter-bash-environment.py and
generate the final regex on the python side instead of in bash. Also, properly
anchor the regex so that it actually works.
svn path=/main/trunk/; revision=9443
Zac Medico [Wed, 5 Mar 2008 22:03:31 +0000 (22:03 -0000)]
Fix have_end_quote() to compare the quote against the correct group.
svn path=/main/trunk/; revision=9442
Zac Medico [Wed, 5 Mar 2008 19:59:27 +0000 (19:59 -0000)]
Bug #211949 - Tighten the variable name filter to exclude any variables
with names containing any non-alphanumeric characters.
svn path=/main/trunk/; revision=9441
Zac Medico [Wed, 5 Mar 2008 19:51:12 +0000 (19:51 -0000)]
Handle multi-line quoted variable assignments.
svn path=/main/trunk/; revision=9440
Zac Medico [Wed, 5 Mar 2008 19:01:29 +0000 (19:01 -0000)]
As requested by wolf31o2, use the ROOT setting from make.conf as long as
it's not overridden by the calling environment.
svn path=/main/trunk/; revision=9439
Zac Medico [Wed, 5 Mar 2008 09:34:37 +0000 (09:34 -0000)]
TODO: Move variable name validation and declare -r filtering
into filter-bash-environment.py.
svn path=/main/trunk/; revision=9438
Zac Medico [Wed, 5 Mar 2008 09:23:51 +0000 (09:23 -0000)]
Update description to reflect the new meaning of the PATTERN argument.
svn path=/main/trunk/; revision=9437
Zac Medico [Wed, 5 Mar 2008 09:20:27 +0000 (09:20 -0000)]
Implement variable assignment handling in python so that we can eventually
make it more flexible and robust.
svn path=/main/trunk/; revision=9436
Zac Medico [Wed, 5 Mar 2008 00:19:16 +0000 (00:19 -0000)]
Remove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS variable so
that /etc/portage/profile/profile.bashrc will only be sourced once if
it exists.
svn path=/main/trunk/; revision=9435
Zac Medico [Tue, 4 Mar 2008 18:43:58 +0000 (18:43 -0000)]
Fix func_start_re so that it requires at least one alphanumeric character.
svn path=/main/trunk/; revision=9434
Zac Medico [Tue, 4 Mar 2008 18:42:39 +0000 (18:42 -0000)]
Tighten the funct_start_re so that it doesn't match leading whitespace
since that's not needed.
svn path=/main/trunk/; revision=9433
Zac Medico [Tue, 4 Mar 2008 08:11:20 +0000 (08:11 -0000)]
Bug #211949 - Temporarily revert back to a less strict regex in order to
avoid false positives with multi-line variable definitions that can be
produced by the 'export' builtin.
svn path=/main/trunk/; revision=9432
Zac Medico [Tue, 4 Mar 2008 07:44:11 +0000 (07:44 -0000)]
Add support for idendification of function definitions since it's needed
in some cases in order to prevent some odd function contents from being
mistakenly identified as invalid variable assignments. For example, this
line from _gcc-specs-directive_raw() is commonly found in environment.bz2
files:
$1=="*"directive":" { pspec=spec; spec=""; outside=0; next }
svn path=/main/trunk/; revision=9431
Zac Medico [Tue, 4 Mar 2008 04:48:11 +0000 (04:48 -0000)]
Bug #211949 - Fix the regex so that it won't match the = character (equals
sign).
svn path=/main/trunk/; revision=9429
Marius Mauch [Mon, 3 Mar 2008 22:17:43 +0000 (22:17 -0000)]
tell rpmbuild to clean it's working files after completion, bug #97776
svn path=/main/trunk/; revision=9428
Marius Mauch [Mon, 3 Mar 2008 20:53:33 +0000 (20:53 -0000)]
fix message on ValueError to not sound like crap
svn path=/main/trunk/; revision=9427
Marius Mauch [Mon, 3 Mar 2008 20:28:22 +0000 (20:28 -0000)]
don't list files as being merged when they are ignored due to confmem, bug #212080
svn path=/main/trunk/; revision=9426
Marius Mauch [Mon, 3 Mar 2008 19:43:18 +0000 (19:43 -0000)]
check available space in DISTDIR before trying to fetch/copy a file, bug #212152
svn path=/main/trunk/; revision=9425
Zac Medico [Mon, 3 Mar 2008 19:21:11 +0000 (19:21 -0000)]
Buf #210372 - Fix FEATURES=suidctl so that it really works again.
svn path=/main/trunk/; revision=9423
Zac Medico [Mon, 3 Mar 2008 10:24:46 +0000 (10:24 -0000)]
Bug #211949 - Tweak the regex so that a leading whitespace character
cannot match the required non-alphanumeric group.
svn path=/main/trunk/; revision=9421
Zac Medico [Mon, 3 Mar 2008 10:16:26 +0000 (10:16 -0000)]
Fix the regex for bug #211949 so that it correctly matches variable
names that contain more than one non-alphanumeric character.
svn path=/main/trunk/; revision=9419
Zac Medico [Mon, 3 Mar 2008 04:28:19 +0000 (04:28 -0000)]
Quote the file path and uri inside FETCHCOMMAND and RESUMECOMMAND. Thanks
to igli for suggesting.
svn path=/main/trunk/; revision=9418
Zac Medico [Sun, 2 Mar 2008 23:26:42 +0000 (23:26 -0000)]
Bug #211949 - As suggested by vapier, tighten the variable filter to also
exclude variable names that begin with a digit or that contain any
non-alphanumeric characters that are not be supported by bash.
svn path=/main/trunk/; revision=9416
Zac Medico [Sun, 2 Mar 2008 21:42:32 +0000 (21:42 -0000)]
Make profile stacking of default USE and package.* slightly more efficient
by skipping list.insert() calls when possible.
svn path=/main/trunk/; revision=9415
Marius Mauch [Sun, 2 Mar 2008 20:02:12 +0000 (20:02 -0000)]
one more fix to restore correct order for usemask/useforce
svn path=/main/trunk/; revision=9414
Marius Mauch [Sun, 2 Mar 2008 19:44:01 +0000 (19:44 -0000)]
fix indentation screwup from r9412
svn path=/main/trunk/; revision=9413
Marius Mauch [Sun, 2 Mar 2008 19:36:53 +0000 (19:36 -0000)]
change stacking order of r9408 so more specific atoms override generic ones
svn path=/main/trunk/; revision=9412
Zac Medico [Sun, 2 Mar 2008 19:20:45 +0000 (19:20 -0000)]
Fix typo.
svn path=/main/trunk/; revision=9411
Marius Mauch [Sun, 2 Mar 2008 19:08:52 +0000 (19:08 -0000)]
apply r9408 also for profile-base package.*use* files
svn path=/main/trunk/; revision=9410
Marius Mauch [Sun, 2 Mar 2008 18:56:10 +0000 (18:56 -0000)]
remove FEATURES=livecvsportage
svn path=/main/trunk/; revision=9409
Marius Mauch [Sun, 2 Mar 2008 14:45:52 +0000 (14:45 -0000)]
stack use flags from package.use for multiple matching atoms (bug #200385)
svn path=/main/trunk/; revision=9408
Marius Mauch [Sun, 2 Mar 2008 13:44:03 +0000 (13:44 -0000)]
ensure that global variables are used to prevent confusing issues like bug #212055
svn path=/main/trunk/; revision=9407
Marius Mauch [Sun, 2 Mar 2008 11:40:50 +0000 (11:40 -0000)]
undo registrations of preserved libraries if the merge fails, bug #210501
svn path=/main/trunk/; revision=9406
Zac Medico [Sat, 1 Mar 2008 08:30:13 +0000 (08:30 -0000)]
Bug #211949 - Make filter_readonly_variables() remove any variables
with names containing a hyphen since bash does not allow them.
svn path=/main/trunk/; revision=9402
Zac Medico [Sat, 1 Mar 2008 00:04:09 +0000 (00:04 -0000)]
Make 'import portage' statements more tolerant to broken source statements
in make.conf since exceptions thrown during 'import portage' statements
can practically render the api unusable for api consumers. Thanks to lxnay
for the suggestion.
svn path=/main/trunk/; revision=9400
Zac Medico [Fri, 29 Feb 2008 22:58:15 +0000 (22:58 -0000)]
In the suidctl code, move the addwrite call out of the loop. Thanks to ferringb.
svn path=/main/trunk/; revision=9399
Marius Mauch [Thu, 28 Feb 2008 15:08:40 +0000 (15:08 -0000)]
remove code for manifest1 support
svn path=/main/trunk/; revision=9398
Marius Mauch [Thu, 28 Feb 2008 14:55:51 +0000 (14:55 -0000)]
supress stupid line echo in deprecation notices
svn path=/main/trunk/; revision=9397
Marius Mauch [Thu, 28 Feb 2008 13:09:10 +0000 (13:09 -0000)]
remove obsolete information from preserve-libs post-emerge message
svn path=/main/trunk/; revision=9395
Marius Mauch [Thu, 28 Feb 2008 13:08:07 +0000 (13:08 -0000)]
separate different messages with newlines in post-emerge output
svn path=/main/trunk/; revision=9394
Zac Medico [Thu, 28 Feb 2008 10:12:32 +0000 (10:12 -0000)]
Fix some references to config["PORTAGE_USE"] to prevent potential
KeyErrors.
svn path=/main/trunk/; revision=9393
Zac Medico [Wed, 27 Feb 2008 19:43:45 +0000 (19:43 -0000)]
Bug #211554 - Replace references to config["USE"] with references to
config["PORTAGE_USE"] (which is filtered for intersection with IUSE)
so that dependency calculations at installation time are consistent
with those at depclean time.
svn path=/main/trunk/; revision=9392
Zac Medico [Wed, 27 Feb 2008 16:16:30 +0000 (16:16 -0000)]
Revert r9387 (the fix for bug #211554) until I figure out why it's messing
up USE calculations for world updates.
svn path=/main/trunk/; revision=9391
Zac Medico [Wed, 27 Feb 2008 16:00:54 +0000 (16:00 -0000)]
Bug #211294 - Make repoman ignore profiles labeled with anything other
than "stable" or "dev" in profiles.desc so that we can extend it with
new labels such as "exp".
svn path=/main/trunk/; revision=9389
Zac Medico [Wed, 27 Feb 2008 08:57:06 +0000 (08:57 -0000)]
Don't filter USE flags in emerge --info output.
svn path=/main/trunk/; revision=9388
Zac Medico [Wed, 27 Feb 2008 04:06:50 +0000 (04:06 -0000)]
Bug #211554 - Replace references to config["USE"] with references to
config["PORTAGE_USE"] (which is filtered for intersection with IUSE)
so that dependency calculations at installation time are consistent
with those at depclean time.
svn path=/main/trunk/; revision=9387
Zac Medico [Tue, 26 Feb 2008 06:22:39 +0000 (06:22 -0000)]
For depclean/prune unmerge order, if there are no dependencies between
package then just unmerge them alphabetically.
svn path=/main/trunk/; revision=9385
Zac Medico [Tue, 26 Feb 2008 00:02:53 +0000 (00:02 -0000)]
Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
dblink constructor since otherwise weird categories containing numbers
can make pkgsplit() return None (likely related to version regex handling).
(branches/2.1.2 r9383)
svn path=/main/trunk/; revision=9384
Alec Warner [Sun, 24 Feb 2008 23:14:33 +0000 (23:14 -0000)]
Double import, thanks grobian :)
svn path=/main/trunk/; revision=9381
Alec Warner [Sun, 24 Feb 2008 07:52:33 +0000 (07:52 -0000)]
Various repoman fixes, plus a weird lockfile tracekback in news.
svn path=/main/trunk/; revision=9377
Mike Frysinger [Sat, 23 Feb 2008 01:20:48 +0000 (01:20 -0000)]
only try to fetch compression schemes which the host supports
svn path=/main/trunk/; revision=9372
Mike Frysinger [Sat, 23 Feb 2008 01:17:15 +0000 (01:17 -0000)]
add support for lzma/gz snapshots
svn path=/main/trunk/; revision=9371