portage.git
16 years ago- outsource logic for boolean options into a central function
Marius Mauch [Tue, 19 Feb 2008 07:36:49 +0000 (07:36 -0000)]
- outsource logic for boolean options into a central function
- enable support for greedy behavior in StaticFileSet

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

16 years agoBug #210449 - Reset exeinto(), docinto(), insinto(), and into() state
Zac Medico [Tue, 19 Feb 2008 05:59:44 +0000 (05:59 -0000)]
Bug #210449 - Reset exeinto(), docinto(), insinto(), and into() state
variables in case the user is running the install phase multiple times
consecutively via the ebuild command.

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

16 years agoBug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.
Zac Medico [Tue, 19 Feb 2008 05:38:41 +0000 (05:38 -0000)]
Bug #210372 - Fix suidctl.conf parser to look for paths with a leading slash.

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

16 years agoMake PreservedLibsRegistry.store() use atomic_ofstream so that we don't
Zac Medico [Tue, 19 Feb 2008 04:09:20 +0000 (04:09 -0000)]
Make PreservedLibsRegistry.store() use atomic_ofstream so that we don't
lose the whole registry if an error such as 'out of space' occurs.

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

16 years agoUse parse_use_local_desc() from the repoman.utilities module.
Zac Medico [Tue, 19 Feb 2008 03:27:46 +0000 (03:27 -0000)]
Use parse_use_local_desc() from the repoman.utilities module.

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

16 years agoRevert back to some known working code from the 2.1.2 branch.
Zac Medico [Tue, 19 Feb 2008 02:32:37 +0000 (02:32 -0000)]
Revert back to some known working code from the 2.1.2 branch.

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

16 years agoMake LibraryConsumerSet.mapPathsToAtoms() produce slot atoms so that atoms
Zac Medico [Tue, 19 Feb 2008 01:53:45 +0000 (01:53 -0000)]
Make LibraryConsumerSet.mapPathsToAtoms() produce slot atoms so that atoms
aren't restricted to the currently installed version, making upgrades
possible.

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

16 years agoFix the --depclean/--prune code to use visible() for visibility checks
Zac Medico [Sun, 17 Feb 2008 23:51:42 +0000 (23:51 -0000)]
Fix the --depclean/--prune code to use visible() for visibility checks
instead of the old portdbapi hack.

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

16 years agoFix unmerge() breakage from due to pkgmap being changed from
Zac Medico [Sun, 17 Feb 2008 08:38:55 +0000 (08:38 -0000)]
Fix unmerge() breakage from due to pkgmap being changed from
a dict to a list.

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

16 years agoNow that unmerge() preserves the order that it's given, if two different
Zac Medico [Sun, 17 Feb 2008 01:59:25 +0000 (01:59 -0000)]
Now that unmerge() preserves the order that it's given, if two different
slots of the same package are being unmerged then they are not necessarily
unmerged consecutively. To make the display less confusing, never display
packages as "protected" or "omitted" when they actually belong to the
overall set of "selected" packages to be unmerged.

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

16 years agoMake sure all packages to be pruned or depcleaned are added to the graph,
Zac Medico [Sun, 17 Feb 2008 01:28:12 +0000 (01:28 -0000)]
Make sure all packages to be pruned or depcleaned are added to the graph,
even when they don't have any dependencies.

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

16 years agoBug #201045 - Make unmerge() preserve the unmerge order of packages
Zac Medico [Sun, 17 Feb 2008 00:29:23 +0000 (00:29 -0000)]
Bug #201045 - Make unmerge() preserve the unmerge order of packages
given to it by the user or depclean.

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

16 years agoIn the action_depclean() topological sort, only add packages to the
Zac Medico [Sat, 16 Feb 2008 23:46:29 +0000 (23:46 -0000)]
In the action_depclean() topological sort, only add packages to the
graph if they are being removed.

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

16 years agoRemove IUSE.invalid from qawarnings since there's no reason for
Zac Medico [Sat, 16 Feb 2008 23:43:06 +0000 (23:43 -0000)]
Remove IUSE.invalid from qawarnings since there's no reason for
it not to be fatal. Thanks to Betelgeuse.

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

16 years agoFix reversed order of parent/child parameders to digraph.add().
Zac Medico [Sat, 16 Feb 2008 23:12:25 +0000 (23:12 -0000)]
Fix reversed order of parent/child parameders to digraph.add().

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

16 years agoAdd missing % x (bug #208946, comment #2).
Zac Medico [Sat, 16 Feb 2008 09:02:39 +0000 (09:02 -0000)]
Add missing % x (bug #208946, comment #2).

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

16 years agoFix depclean breakage so that it doesn't clean some packages that
Zac Medico [Sat, 16 Feb 2008 07:59:44 +0000 (07:59 -0000)]
Fix depclean breakage so that it doesn't clean some packages that
shouldn't be cleaned.

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

16 years agoMake depclean code filter out blocker atoms where appropriate.
Zac Medico [Sat, 16 Feb 2008 07:53:40 +0000 (07:53 -0000)]
Make depclean code filter out blocker atoms where appropriate.

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

16 years agoBug #201045 - Use a topological sort to create an unmerge order such that
Zac Medico [Sat, 16 Feb 2008 07:42:14 +0000 (07:42 -0000)]
Bug #201045 - Use a topological sort to create an unmerge order such that
each package is unmerged before it's dependencies. This is necessary to
avoid breaking things that may need to run during pkg_prerm or pkg_postrm
phases.

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

16 years agoUpdate the DepPriority documentation so that the table shows all the
Zac Medico [Sat, 16 Feb 2008 00:43:21 +0000 (00:43 -0000)]
Update the DepPriority documentation so that the table shows all the
currently supported priorities and categories.

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

16 years agoFix --newuse reinstall logic broken by the previous commit.
Zac Medico [Fri, 15 Feb 2008 07:47:28 +0000 (07:47 -0000)]
Fix --newuse reinstall logic broken by the previous commit.

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

16 years agoFix package selection logic in order to prevent downgrade in cases
Zac Medico [Thu, 14 Feb 2008 07:30:57 +0000 (07:30 -0000)]
Fix package selection logic in order to prevent downgrade in cases
when selective is True and the currently installed version does
not have a matching ebuild in the tree. For example, this type of
situation is likely to occur if the user somehow obtains a binary
package that has a newer version than any of the ebuilds in the
portage tree. If package maintainers want to encourage a downgrade
in a case like this then they should use package.mask so that the
user receives a warning about the installed package being masked.

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

16 years agoBug #209768 - Fix --search "Size of files:" handling so that it properly
Zac Medico [Tue, 12 Feb 2008 04:08:33 +0000 (04:08 -0000)]
Bug #209768 - Fix --search "Size of files:" handling so that it properly
shows the "Unknown (missing digest)" message instead of a traceback.

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

16 years agoAdd bits about namespace pollution, add whitespacing comments after looking at some...
Alec Warner [Mon, 11 Feb 2008 02:29:59 +0000 (02:29 -0000)]
Add bits about namespace pollution, add whitespacing comments after looking at some new code I wrote and realizing I was not following the current style.  Fix typos

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

16 years agoBug #209538 - Disable annoying "masked by keyword" warnings for installed
Zac Medico [Sun, 10 Feb 2008 23:32:04 +0000 (23:32 -0000)]
Bug #209538 - Disable annoying "masked by keyword" warnings for installed
packages. We can assume that if the user accepted the keywords at merge
time then they never want to be bothered again.

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

16 years agofix more trivial issues breaking repoman v2.2_pre2
Marius Mauch [Sun, 10 Feb 2008 13:01:43 +0000 (13:01 -0000)]
fix more trivial issues breaking repoman

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

16 years agoRemove the killparent() function and associated SIGINT trap since this
Zac Medico [Sun, 10 Feb 2008 07:18:58 +0000 (07:18 -0000)]
Remove the killparent() function and associated SIGINT trap since this
should already be handled on the python side and it won't work with
dropped privileges anyway.

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

16 years agoFix rejects.
Zac Medico [Sun, 10 Feb 2008 05:33:52 +0000 (05:33 -0000)]
Fix rejects.

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

16 years agoFix CHOST masking logic wrt installed packages so that it's consistent
Zac Medico [Sun, 10 Feb 2008 03:14:44 +0000 (03:14 -0000)]
Fix CHOST masking logic wrt installed packages so that it's consistent
between visible() and get_masking_status().

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

16 years agoBug #209144 - For emerge --sync, show an informative error and don't
Zac Medico [Sun, 10 Feb 2008 01:50:52 +0000 (01:50 -0000)]
Bug #209144 - For emerge --sync, show an informative error and don't
return 1 when PORTAGE_RSYNC_RETRIES is exceeded.

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

16 years agoFix the exitcode logic for bug #209144 so that when the server is
Zac Medico [Sun, 10 Feb 2008 01:39:55 +0000 (01:39 -0000)]
Fix the exitcode logic for bug #209144 so that when the server is
out of date it's not interpreted like an actual rsync exitcode
(to avoid a misleading exitcode interpretation message).

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

16 years agoFix get_mask_info() to properly pass the "installed" attribute into
Zac Medico [Sun, 10 Feb 2008 00:38:59 +0000 (00:38 -0000)]
Fix get_mask_info() to properly pass the "installed" attribute into
the Package constructor.

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

16 years agofix nasty typo
Marius Mauch [Sat, 9 Feb 2008 23:06:28 +0000 (23:06 -0000)]
fix nasty typo

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

16 years agoBug #208743 - Update dosed docs to indicate that "s:${D}::g" is used
Zac Medico [Sat, 9 Feb 2008 22:05:24 +0000 (22:05 -0000)]
Bug #208743 - Update dosed docs to indicate that "s:${D}::g" is used
as the default expression if none other is given.

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

16 years agoadd tagging capabilities and cli options
Marius Mauch [Sat, 9 Feb 2008 15:39:49 +0000 (15:39 -0000)]
add tagging capabilities and cli options

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

16 years agoadd preserve-libs info to make.conf.example
Marius Mauch [Sat, 9 Feb 2008 15:13:35 +0000 (15:13 -0000)]
add preserve-libs info to make.conf.example

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

16 years agomore minor doc updates regarding package sets
Marius Mauch [Sat, 9 Feb 2008 13:31:05 +0000 (13:31 -0000)]
more minor doc updates regarding package sets

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

16 years agominor documentation updates
Marius Mauch [Sat, 9 Feb 2008 13:23:36 +0000 (13:23 -0000)]
minor documentation updates

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

16 years agonew script for creating release tarballs
Marius Mauch [Sat, 9 Feb 2008 12:47:58 +0000 (12:47 -0000)]
new script for creating release tarballs

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

16 years agoremoving obsolete cruft
Marius Mauch [Sat, 9 Feb 2008 12:04:51 +0000 (12:04 -0000)]
removing obsolete cruft

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

16 years agoBug #208708 - Show informative warning messages for installed
Zac Medico [Sat, 9 Feb 2008 04:58:39 +0000 (04:58 -0000)]
Bug #208708 - Show informative warning messages for installed
packages that are masked.

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

16 years agoFix some broken variable references found by pyflakes.
Zac Medico [Fri, 8 Feb 2008 11:46:53 +0000 (11:46 -0000)]
Fix some broken variable references found by pyflakes.

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

16 years agoBug #208708 - Fix masked package display some more:
Zac Medico [Fri, 8 Feb 2008 08:39:58 +0000 (08:39 -0000)]
Bug #208708 - Fix masked package display some more:

- Warn if all matching ebuilds are masked or the installed
  package itself is masked.

- Do not warn if there are simply no matching ebuilds since
  that would be annoying in some cases.

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

16 years agoDon't show unmasked packages (currently installed packages) in
Zac Medico [Fri, 8 Feb 2008 08:01:09 +0000 (08:01 -0000)]
Don't show unmasked packages (currently installed packages) in
the masking display.

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

16 years agoAdd DISTDIR to the EbuildQuote.var_names. Thanks to Betelgeuse.
Zac Medico [Fri, 8 Feb 2008 04:33:30 +0000 (04:33 -0000)]
Add DISTDIR to the EbuildQuote.var_names. Thanks to Betelgeuse.

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

16 years agoBug #208708 - Fix warnings for system or world packages that are masked.
Zac Medico [Fri, 8 Feb 2008 01:26:13 +0000 (01:26 -0000)]
Bug #208708 - Fix warnings for system or world packages that are masked.

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

16 years agoBug #208743 - Clarify dosed docs to indicate that sed is performed
Zac Medico [Fri, 8 Feb 2008 00:32:49 +0000 (00:32 -0000)]
Bug #208743 - Clarify dosed docs to indicate that sed is performed
in place of a file in ${D}.

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

16 years agoBug #208782 - Consistently use double quotes rather than mixining in single
Zac Medico [Fri, 8 Feb 2008 00:19:50 +0000 (00:19 -0000)]
Bug #208782 - Consistently use double quotes rather than mixining in single
quotes.

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

16 years agoBug #209144 - For emerge --sync, don't return 0 when the server
Zac Medico [Fri, 8 Feb 2008 00:12:37 +0000 (00:12 -0000)]
Bug #209144 - For emerge --sync, don't return 0 when the server
is out of date.

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

16 years agoBug #155993 - Update environment.bz2 after postinst in case
Zac Medico [Thu, 7 Feb 2008 23:30:49 +0000 (23:30 -0000)]
Bug #155993 - Update environment.bz2 after postinst in case
installation phases need to pass some variables to
uninstallation phases.

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

16 years agoFor the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead
Zac Medico [Wed, 6 Feb 2008 08:43:57 +0000 (08:43 -0000)]
For the useq() IUSE qa check, use [[ $u =~ $PORTAGE_IUSE ]] instead
of egrep since apparently it's compatible in this case. Thanks to
igli for this.

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

16 years agoMake qa_source and qa_call save the return value and return it. Thanks
Zac Medico [Wed, 6 Feb 2008 06:08:51 +0000 (06:08 -0000)]
Make qa_source and qa_call save the return value and return it. Thanks
to igli for suggesting.

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

16 years agodon't try to copy manually removed libraries (bug #208946)
Marius Mauch [Tue, 5 Feb 2008 21:29:15 +0000 (21:29 -0000)]
don't try to copy manually removed libraries (bug #208946)

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

16 years agodisplay errors that occured during package set initalization
Marius Mauch [Tue, 5 Feb 2008 19:02:24 +0000 (19:02 -0000)]
display errors that occured during package set initalization

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

16 years agodon't record internal providers in NEEDED records as they are pointless for all usefu...
Marius Mauch [Tue, 5 Feb 2008 18:57:08 +0000 (18:57 -0000)]
don't record internal providers in NEEDED records as they are pointless for all useful applications in portage and complicate them instead (e.g. bug #205531)

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

16 years agoUse local time for elog summaries
Marius Mauch [Tue, 5 Feb 2008 08:21:06 +0000 (08:21 -0000)]
Use local time for elog summaries

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

16 years agoportage-2.1.4.1
Zac Medico [Fri, 1 Feb 2008 04:36:25 +0000 (04:36 -0000)]
portage-2.1.4.1
==================================

* If you have an overlay then you should remove **/files/digest-*
  files (Manifest1) because they are no longer supported.
* If earlier versions of portage will be used to generate manifests
  for your overlay then you should add a file named manifest1_obsolete
  to the root of the repository in order to disable generation of the
  Manifest1 digest files.

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

16 years agoRemove the manifest1 digest file removal code since it's no longer
Zac Medico [Fri, 1 Feb 2008 03:11:56 +0000 (03:11 -0000)]
Remove the manifest1 digest file removal code since it's no longer
needed.

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

16 years agoRemove the manifest1 digest filter from PORTAGE_RSYNC_OPTS since it's
Zac Medico [Fri, 1 Feb 2008 02:53:08 +0000 (02:53 -0000)]
Remove the manifest1 digest filter from PORTAGE_RSYNC_OPTS since it's
no longer needed.

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

16 years agoMake the manifest1_compat constructor parameter default to False
Zac Medico [Fri, 1 Feb 2008 00:04:52 +0000 (00:04 -0000)]
Make the manifest1_compat constructor parameter default to False
to prevent potential interference from stale old digest files in
overlays.

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

16 years agoBug #205718 - Fix quoting of ${INSTALL_MASK} where appropriate. Thanks
Zac Medico [Thu, 31 Jan 2008 23:45:12 +0000 (23:45 -0000)]
Bug #205718 - Fix quoting of ${INSTALL_MASK} where appropriate. Thanks
to Ed Catmur <ed@catmur.co.uk> for this patch.

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

16 years agoDisable manifest1_compat for ebuild --force digest.
Zac Medico [Thu, 31 Jan 2008 20:25:20 +0000 (20:25 -0000)]
Disable manifest1_compat for ebuild --force digest.

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

16 years agoUnconditionally disable manifest1 compatibility since it's been dropped
Zac Medico [Thu, 31 Jan 2008 20:04:56 +0000 (20:04 -0000)]
Unconditionally disable manifest1 compatibility since it's been dropped
from the main tree and nobody needs it anymore.

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

16 years agoMake the autotools.eclass functions exempt from the autotools
Zac Medico [Thu, 31 Jan 2008 09:31:23 +0000 (09:31 -0000)]
Make the autotools.eclass functions exempt from the autotools
QA Notice.

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

16 years agoAdd 'local' to the list of non_category_dirs since it's commonly
Zac Medico [Thu, 31 Jan 2008 07:46:28 +0000 (07:46 -0000)]
Add 'local' to the list of non_category_dirs since it's commonly
used for layman overlays.

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

16 years ago* Bug #205966 - Don't show binhost password when displaying the uri.
Zac Medico [Thu, 31 Jan 2008 04:15:48 +0000 (04:15 -0000)]
* Bug #205966 - Don't show binhost password when displaying the uri.
* Fix a cpv variable name typo.

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

16 years agoRemove the last traces of the ebuild.autotools check.
Zac Medico [Wed, 30 Jan 2008 22:52:57 +0000 (22:52 -0000)]
Remove the last traces of the ebuild.autotools check.

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

16 years ago- Remove ebuild.autotools repoman check since it produces lots
Zac Medico [Wed, 30 Jan 2008 22:49:47 +0000 (22:49 -0000)]
- Remove ebuild.autotools repoman check since it produces lots
  of false positives (bug #207104) and its hard to parse bash

- Use QA_INTERCEPTORS in ebuild.sh to implement a runtime
  'QA Notice' when autotools is called directly

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

16 years agouse strip(os.sep) on paths prior to os.path.join (branches/prefix
Zac Medico [Wed, 30 Jan 2008 18:45:49 +0000 (18:45 -0000)]
use strip(os.sep) on paths prior to os.path.join (branches/prefix
r9228)

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

16 years agoPull more functions out of repoman proper and into repoman.utilities, correct a typo...
Alec Warner [Sun, 27 Jan 2008 11:26:48 +0000 (11:26 -0000)]
Pull more functions out of repoman proper and into repoman.utilities, correct a typo, clean up imports

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

16 years agoPull more functions out of repoman proper and into repoman.utilities
Alec Warner [Sun, 27 Jan 2008 11:26:01 +0000 (11:26 -0000)]
Pull more functions out of repoman proper and into repoman.utilities

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

16 years agoimport ordering, prevent errors from mucking up module namespace in checks, fix typo...
Alec Warner [Sun, 27 Jan 2008 11:05:41 +0000 (11:05 -0000)]
import ordering, prevent errors from mucking up module namespace in checks, fix typo from last commit, rename 'm' to autotools_match, fix spacing between classes

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

16 years agoRestore desktop.invalid as a warning; was an intergration error
Alec Warner [Sun, 27 Jan 2008 06:01:19 +0000 (06:01 -0000)]
Restore desktop.invalid as a warning; was an intergration error

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

16 years agoMove random functions out of repoman and into utilties.py
Alec Warner [Sat, 26 Jan 2008 20:53:20 +0000 (20:53 -0000)]
Move random functions out of repoman and into utilties.py

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

16 years agoBug #206772 - Enable bashrc once again for the clean phase.
Zac Medico [Tue, 22 Jan 2008 22:14:24 +0000 (22:14 -0000)]
Bug #206772 - Enable bashrc once again for the clean phase.

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

16 years agoWe need to implement diefunc() since environment.bz2 files contain
Zac Medico [Mon, 21 Jan 2008 01:43:38 +0000 (01:43 -0000)]
We need to implement diefunc() since environment.bz2 files contain
calls to it (due to alias expansion).

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

16 years agoReplace the current diefunc() and die alias with a single die() function.
Zac Medico [Sun, 20 Jan 2008 22:28:25 +0000 (22:28 -0000)]
Replace the current diefunc() and die alias with a single die() function.
The previous arguments to diefunc() weren't used anyway. The result is
that the die message looks better because it doesn't show the alias and
all of it's arguments which are totally irrelevant. (branches/prefix
r9212)

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

16 years agoAdd a note that PORTDIR is a repository of software and that users should not add...
Alec Warner [Sat, 19 Jan 2008 23:18:12 +0000 (23:18 -0000)]
Add a note that PORTDIR is a repository of software and that users should not add random directories in it.

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

16 years agoCheck for quoted ${A}. Thanks to maekke for this patch.
Zac Medico [Fri, 18 Jan 2008 22:58:21 +0000 (22:58 -0000)]
Check for quoted ${A}. Thanks to maekke for this patch.

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

16 years agofix typo in emerge-webrsync from r9118
Alec Warner [Sun, 13 Jan 2008 01:03:50 +0000 (01:03 -0000)]
fix typo in emerge-webrsync from r9118

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

16 years agostyle fixes (imports), add support for --version (bug 138159)
Alec Warner [Sun, 13 Jan 2008 00:55:21 +0000 (00:55 -0000)]
style fixes (imports), add support for --version (bug 138159)

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

16 years agoAdd some notes about enhancements related to binary package support
Zac Medico [Sat, 12 Jan 2008 02:53:42 +0000 (02:53 -0000)]
Add some notes about enhancements related to binary package support
that's now in 2.1.4.

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

16 years agoRemove redundant return statement.
Zac Medico [Sat, 12 Jan 2008 01:39:39 +0000 (01:39 -0000)]
Remove redundant return statement.

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

16 years agoIn preprocess_ebuild_env(), move a filter_readonly_variables call
Zac Medico [Sat, 12 Jan 2008 01:35:08 +0000 (01:35 -0000)]
In preprocess_ebuild_env(), move a filter_readonly_variables call
out of a subshell since FreeBSD and prefix users have reported
apparent corruption of the PATH environment variable that triggers
calls to the wrong version of sed (one that does not support the
-r option). An example of what users have observed:

>>> Source compiled.
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
Traceback (most recent call last):
  File "/usr/lib/portage/bin/filter-bash-environment.py", line 51, in <module>
    compile_egrep_pattern(args[0]), file_in, file_out)
  File "/usr/lib/portage/bin/filter-bash-environment.py", line 34, in filter_bash_environment
    file_out.write(line)
IOError: [Errno 32] Broken pipe

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

16 years agoReplace hardcoded value with max_desc_len.
Zac Medico [Sat, 12 Jan 2008 00:18:44 +0000 (00:18 -0000)]
Replace hardcoded value with max_desc_len.

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

16 years agoBug #203887 - Make repoman recognize RESTRICT="installsources".
Zac Medico [Fri, 11 Jan 2008 23:42:59 +0000 (23:42 -0000)]
Bug #203887 - Make repoman recognize RESTRICT="installsources".

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

16 years agoBug #205318 - Handle errno.ENOTDIR thrown from the lstat call
Zac Medico [Fri, 11 Jan 2008 23:07:10 +0000 (23:07 -0000)]
Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call
inside dblink._security_check().

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

16 years agoAdjust the max DESCRIPTION.toolong length to 100 characters so that
Zac Medico [Fri, 11 Jan 2008 22:24:30 +0000 (22:24 -0000)]
Adjust the max DESCRIPTION.toolong length to 100 characters so that
it's not too small and only about 3% of packages will trigger it.

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

16 years agoFix a typo.
Zac Medico [Fri, 11 Jan 2008 11:59:15 +0000 (11:59 -0000)]
Fix a typo.

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

16 years agoAdd a new "ebuild.autotools" check for when ebuilds call
Zac Medico [Fri, 11 Jan 2008 09:27:38 +0000 (09:27 -0000)]
Add a new "ebuild.autotools" check for when ebuilds call
 autotools directly instead of using autotools.eclass.
Thanks to Betelgeuse for the initial patch.

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

16 years ago* Make pkgcmp() pass the ebuild revision directly into vercmp() since
Zac Medico [Fri, 11 Jan 2008 08:19:55 +0000 (08:19 -0000)]
* Make pkgcmp() pass the ebuild revision directly into vercmp() since
  there is code there to handle it already. This eliminates some
  redundant revision comparison code. Thanks to peper for the patch.

* Add some vercmp() test cases for comparison of ebuild revisions.

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

16 years agoAdd a DESCRIPTION.toolong warning for when the DESCRIPTION line is
Zac Medico [Fri, 11 Jan 2008 07:22:07 +0000 (07:22 -0000)]
Add a DESCRIPTION.toolong warning for when the DESCRIPTION line is
over 80 characters long. Thanks to Betelgeuse for the patch.

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

16 years agoBug #162450 - Try to avoid having so many bugs marked UPSTREAM by
Zac Medico [Fri, 11 Jan 2008 06:51:09 +0000 (06:51 -0000)]
Bug #162450 - Try to avoid having so many bugs marked UPSTREAM by
encouraging users to report 'poor programming practices' QA issues
upstream and show them the $HOMEPAGE for convenience.

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

16 years agoBug #203887 - Implement RESTRICT=installsources for binaries that are
Zac Medico [Fri, 11 Jan 2008 05:14:43 +0000 (05:14 -0000)]
Bug #203887 - Implement RESTRICT=installsources for binaries that are
not compatible with debugedit.

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

16 years agoBug #203316 - Fix isvalidatom() to properly detect invalid operators
Zac Medico [Fri, 11 Jan 2008 04:31:53 +0000 (04:31 -0000)]
Bug #203316 - Fix isvalidatom() to properly detect invalid operators
used together with slot atoms. Thanks to Arfrever Frehtes Taifersar
Arahesis <Arfrever.FTA@GMail.Com> for the patch.

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

16 years agoFix the "Appending to PORTDIR_OVERLAY..." feature which was
Zac Medico [Fri, 11 Jan 2008 02:18:39 +0000 (02:18 -0000)]
Fix the "Appending to PORTDIR_OVERLAY..." feature which was
broken by the previous commit.

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

16 years agoMake sure that portdb.findname() returns the correct ebuild.
Zac Medico [Fri, 11 Jan 2008 02:03:15 +0000 (02:03 -0000)]
Make sure that portdb.findname() returns the correct ebuild.

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

16 years agoBug #204425 - Remove --delete-after from the default PORTAGE_RSYNC_OPTS.
Zac Medico [Fri, 11 Jan 2008 00:28:34 +0000 (00:28 -0000)]
Bug #204425 - Remove --delete-after from the default PORTAGE_RSYNC_OPTS.
This allows the rsync program to choose the preferred --delete algorithm,
or the user can choose one via PORTAGE_RSYNC_EXTRA_OPTS.

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

16 years agoBug#204668 - Fix WORKDIR quoting in econf() when updating
Zac Medico [Fri, 11 Jan 2008 00:05:39 +0000 (00:05 -0000)]
Bug#204668 - Fix WORKDIR quoting in econf() when updating
config.guess and config.sub.

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

16 years agoBug #162542 - When dropping privileges for FEATURES=userpriv,
Zac Medico [Thu, 10 Jan 2008 23:02:01 +0000 (23:02 -0000)]
Bug #162542 - When dropping privileges for FEATURES=userpriv,
automatically detect permission problems with CCACHE_DIR and
recursively adjust permissions only when necessary.

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