portage.git
16 years agoFix quoting.
Zac Medico [Wed, 19 Mar 2008 19:49:00 +0000 (19:49 -0000)]
Fix quoting.

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

16 years agodisplay versions of other slots for new-slot installs (bug #213790)
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

16 years agoStrip trailing slashes from directory paths if necessary.
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

16 years agoBug #210690 - Fix --help output to show the leading slash on the path to
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

16 years agoBug #210575 - Optimize doins -r so that it doesn't call itself recursively,
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

16 years agoOnly show the eqawarn from bug #149745 when nothing is found to install. Also,
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

16 years agoBug #201045 - Fix unmerge() to preserve unmerge order so that dependencies
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

16 years agoBug #139023 - When the --digest option is enabled, advise the user that
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

16 years agomake filesets non-greedy by default
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

16 years agoadd unmerge protection for packages still referenced by installed package sets
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

16 years agoadd @ to the list of invalid atom chars so sets with prefix aren't considered as...
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

16 years agofix artifact from r9477
Marius Mauch [Tue, 18 Mar 2008 22:40:31 +0000 (22:40 -0000)]
fix artifact from r9477

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

16 years agouse a dict with CP keys in unmerge() to avoid double unmerges if a package is matched...
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

16 years agoBug #149745 - Generate an eqawarn message if dohtml is called on a directory
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

16 years agoBug #174634 - Fix ebuild 'digest' and 'manifest' behave 100% identically and
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

16 years agoBug #212882 - For compatibility with ENOENT exceptions raised from
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

16 years agoBug #213592 - Fix --onlydeps breakage.
Zac Medico [Sun, 16 Mar 2008 20:33:59 +0000 (20:33 -0000)]
Bug #213592 - Fix --onlydeps breakage.

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

16 years agoBug #213540 - Make sure DESTTREE=/usr is set before inherit calls.
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

16 years agoWhen in strict mode, make paren_reduce() detect missing whitespace around
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

16 years agoavoid importing portage to improve performance
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

16 years agoadd a placeholder for repository paths in 'filename' and 'directory' options for...
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

16 years agoFix an UnboundLocalError for 'pkgindex'.
Zac Medico [Sat, 15 Mar 2008 05:28:53 +0000 (05:28 -0000)]
Fix an UnboundLocalError for 'pkgindex'.

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

16 years agoFix grammar.
Zac Medico [Fri, 14 Mar 2008 18:23:58 +0000 (18:23 -0000)]
Fix grammar.

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

16 years agoBug #42456 - When a checksum failure occurs during fetch, use a new
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

16 years ago* Optimize parallel-fetch to avoid redundant checksum verification.
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

16 years agoMake strip_empty() return a nedw list instead of working in-place. Thanks to
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

16 years ago- news bugfix from ferringb
Ned Ludd [Tue, 11 Mar 2008 00:52:20 +0000 (00:52 -0000)]
- news bugfix from ferringb

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

16 years agoBug #212882 - Fix lockfile() to handle errno.EACCES raised from the fcntl
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

16 years agoWhen all available ebuilds are masked, avoid producing warning message when
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

16 years agoFix var_assign_re to recognize a call to the 'declare' builtin even when
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

16 years agoadd some status messages, try to copy the tarball into DISTDIR, use getopt for option...
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

16 years agoMake readpkgindex() and writepkgindex() private methods of PackageIndex. v2.2_pre4
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

16 years agoConvert PackageIndex.packages from a dict to a list so that in the future
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

16 years agoMake --prune and --depclean operate with missing dependencies when only
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

16 years agoUse os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox for
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

16 years agoRemove egrep syntax emulation since it's not really needed.
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

16 years agoImplement the sed-based declare -r filter in python.
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

16 years agoMove the variable name validation regexes (for bug 211949) into
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

16 years agoUpdate the description to reflect the new meaning of PATTERN.
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

16 years agoPass a space-separated list of variables into filter-bash-environment.py and
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

16 years agoFix have_end_quote() to compare the quote against the correct group.
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

16 years agoBug #211949 - Tighten the variable name filter to exclude any variables
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

16 years agoHandle multi-line quoted variable assignments.
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

16 years agoAs requested by wolf31o2, use the ROOT setting from make.conf as long as
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

16 years agoTODO: Move variable name validation and declare -r filtering
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

16 years agoUpdate description to reflect the new meaning of the PATTERN argument.
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

16 years agoImplement variable assignment handling in python so that we can eventually
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

16 years agoRemove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS variable so
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

16 years agoFix func_start_re so that it requires at least one alphanumeric character.
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

16 years agoTighten the funct_start_re so that it doesn't match leading whitespace
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

16 years agoBug #211949 - Temporarily revert back to a less strict regex in order to
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

16 years agoAdd support for idendification of function definitions since it's needed
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

16 years agoBug #211949 - Fix the regex so that it won't match the = character (equals
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

16 years agotell rpmbuild to clean it's working files after completion, bug #97776
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

16 years agofix message on ValueError to not sound like crap
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

16 years agodon't list files as being merged when they are ignored due to confmem, bug #212080
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

16 years agocheck available space in DISTDIR before trying to fetch/copy a file, bug #212152
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

16 years agoBuf #210372 - Fix FEATURES=suidctl so that it really works again.
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

16 years agoBug #211949 - Tweak the regex so that a leading whitespace character
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

16 years agoFix the regex for bug #211949 so that it correctly matches variable
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

16 years agoQuote the file path and uri inside FETCHCOMMAND and RESUMECOMMAND. Thanks
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

16 years agoBug #211949 - As suggested by vapier, tighten the variable filter to also
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

16 years agoMake profile stacking of default USE and package.* slightly more efficient
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

16 years agoone more fix to restore correct order for usemask/useforce
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

16 years agofix indentation screwup from r9412
Marius Mauch [Sun, 2 Mar 2008 19:44:01 +0000 (19:44 -0000)]
fix indentation screwup from r9412

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

16 years agochange stacking order of r9408 so more specific atoms override generic ones
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

16 years agoFix typo.
Zac Medico [Sun, 2 Mar 2008 19:20:45 +0000 (19:20 -0000)]
Fix typo.

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

16 years agoapply r9408 also for profile-base package.*use* files
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

16 years agoremove FEATURES=livecvsportage
Marius Mauch [Sun, 2 Mar 2008 18:56:10 +0000 (18:56 -0000)]
remove FEATURES=livecvsportage

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

16 years agostack use flags from package.use for multiple matching atoms (bug #200385)
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

16 years agoensure that global variables are used to prevent confusing issues like bug #212055
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

16 years agoundo registrations of preserved libraries if the merge fails, bug #210501
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

16 years agoBug #211949 - Make filter_readonly_variables() remove any variables
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

16 years agoMake 'import portage' statements more tolerant to broken source statements
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

16 years agoIn the suidctl code, move the addwrite call out of the loop. Thanks to ferringb.
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

16 years agoremove code for manifest1 support
Marius Mauch [Thu, 28 Feb 2008 15:08:40 +0000 (15:08 -0000)]
remove code for manifest1 support

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

16 years agosupress stupid line echo in deprecation notices
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

16 years agoremove obsolete information from preserve-libs post-emerge message v2.2_pre3
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

16 years agoseparate different messages with newlines in post-emerge output
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

16 years agoFix some references to config["PORTAGE_USE"] to prevent potential
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

16 years agoBug #211554 - Replace references to config["USE"] with references to
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

16 years agoRevert r9387 (the fix for bug #211554) until I figure out why it's messing
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

16 years agoBug #211294 - Make repoman ignore profiles labeled with anything other
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

16 years agoDon't filter USE flags in emerge --info output.
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

16 years agoBug #211554 - Replace references to config["USE"] with references to
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

16 years agoFor depclean/prune unmerge order, if there are no dependencies between
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

16 years agoBug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in the
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

16 years agoDouble import, thanks grobian :)
Alec Warner [Sun, 24 Feb 2008 23:14:33 +0000 (23:14 -0000)]
Double import, thanks grobian :)

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

16 years agoVarious repoman fixes, plus a weird lockfile tracekback in news.
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

16 years agoonly try to fetch compression schemes which the host supports
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

16 years agoadd support for lzma/gz snapshots
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

16 years agotighten up output from script
Mike Frysinger [Sat, 23 Feb 2008 01:08:54 +0000 (01:08 -0000)]
tighten up output from script

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

16 years agocleanup main option parsing
Mike Frysinger [Sat, 23 Feb 2008 00:57:06 +0000 (00:57 -0000)]
cleanup main option parsing

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

16 years agoRevert portdbapi category auto-detection code since it's not really needed
Zac Medico [Fri, 22 Feb 2008 23:53:08 +0000 (23:53 -0000)]
Revert portdbapi category auto-detection code since it's not really needed
and can cause problems if we need to add new non-category directories in
the future. We only really need the category auto-detection for bindbapi and
vardbapi anyway.

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

16 years agoAdd support for file paths as arguments to emerge. If an argument starts
Zac Medico [Fri, 22 Feb 2008 22:20:50 +0000 (22:20 -0000)]
Add support for file paths as arguments to emerge. If an argument starts
with / and it's not recognized as a tbz2 or ebuild then we try to find
and owner in the vdb and generate a slot atom from it. Thanks to solar
for the suggestion.

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

16 years agoBug #211067 - Make the "portdir_overlay" and "mydir" variables contain
Zac Medico [Fri, 22 Feb 2008 06:46:49 +0000 (06:46 -0000)]
Bug #211067 - Make the "portdir_overlay" and "mydir" variables contain
paths that are consistent wrt eachother regardless of any path
irregularities that can be induced by symlinks. Consistency is achieved
by regenerating one of the paths to ensure that both paths have the exact
same mapping between inodes and paths. This consistency ensures that the
path manipulations used to calculate "repolevel" will work as intended.

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

16 years agoMake LibraryPackageMap.update() sort the contents of the library_consumers
Zac Medico [Thu, 21 Feb 2008 09:29:10 +0000 (09:29 -0000)]
Make LibraryPackageMap.update() sort the contents of the library_consumers
cache so that it's nice and orderly.

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

16 years agoOptimize dblink.isowner() to use fewer stat calls by doing a basename
Zac Medico [Thu, 21 Feb 2008 08:04:33 +0000 (08:04 -0000)]
Optimize dblink.isowner() to use fewer stat calls by doing a basename
comparison to try and eliminate the file before resorting to inode
comparison. This speeds up the `portageq owners` command as well as
the search that is done when collision-protect finds a collision.

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

16 years agoIn the circular dependency display, drop PDEPEND (aka MEDIUM_SOFT) from
Zac Medico [Wed, 20 Feb 2008 20:52:22 +0000 (20:52 -0000)]
In the circular dependency display, drop PDEPEND (aka MEDIUM_SOFT) from
the graph so there's less noise.

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

16 years agoMake stack_dicts() treat an empty variable assignment just like a non-empty
Zac Medico [Wed, 20 Feb 2008 03:59:45 +0000 (03:59 -0000)]
Make stack_dicts() treat an empty variable assignment just like a non-empty
assignment. This allows the profile to set and empty variable in make.defaults
and have it override a non-empty value as one would expect.

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