portage.git
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

16 years agoAfter loading the environment, make sure the color variables
Zac Medico [Tue, 8 Jan 2008 09:05:24 +0000 (09:05 -0000)]
After loading the environment, make sure the color variables
are in sync with the current NOCOLOR setting.

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

16 years agoWhen spawing the "depend" phase, use file descriptors from sys.std*
Zac Medico [Tue, 8 Jan 2008 04:56:31 +0000 (04:56 -0000)]
When spawing the "depend" phase, use file descriptors from sys.std*
streams.

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

16 years agoBug #204753 - Add "distfiles" and "packages" to the list of
Zac Medico [Mon, 7 Jan 2008 22:17:34 +0000 (22:17 -0000)]
Bug #204753 - Add "distfiles" and "packages" to the list of
non-category directories.

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

16 years agoBug #204651 - Make repoman respect NOCOLOR=true.
Zac Medico [Sun, 6 Jan 2008 20:22:03 +0000 (20:22 -0000)]
Bug #204651 - Make repoman respect NOCOLOR=true.

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

16 years agoMake filter_readonly_variables() filter PATH in any case since
Zac Medico [Sat, 5 Jan 2008 22:00:45 +0000 (22:00 -0000)]
Make filter_readonly_variables() filter PATH in any case since
we never want to save of reload it.

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

16 years agoFilter PATH along with FEATURES when loading environment.bz2.
Zac Medico [Sat, 5 Jan 2008 21:33:09 +0000 (21:33 -0000)]
Filter PATH along with FEATURES when loading environment.bz2.

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

16 years agoper bug 204468, remove old check from repoman (all ebuilds in gentoo-x86 are migrated).
Alec Warner [Sat, 5 Jan 2008 20:31:31 +0000 (20:31 -0000)]
per bug 204468, remove old check from repoman (all ebuilds in gentoo-x86 are migrated).

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

16 years agoSend eerror and ewarn messages to stderr. This is important in
Zac Medico [Fri, 4 Jan 2008 20:49:05 +0000 (20:49 -0000)]
Send eerror and ewarn messages to stderr. This is important in
case somebody calls portageq inside a global scope command
substitution. The output needs to go to stderr so that the
die message from the subshell is visible.

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

16 years agoRecognize export statements when filtering the environment. This
Zac Medico [Thu, 3 Jan 2008 15:39:08 +0000 (15:39 -0000)]
Recognize export statements when filtering the environment. This
is needed for compatibility with environment.bz2 files generated
by paludis.

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

16 years agoBug #204020 - Make grabfile() properly raise PermissionDenied when
Zac Medico [Wed, 2 Jan 2008 15:00:39 +0000 (15:00 -0000)]
Bug #204020 - Make grabfile() properly raise PermissionDenied when
appropriate instead of silently ignoring permission errors.

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

16 years agoWhen searching for "test" in IUSE, account for IUSE defaults.
Zac Medico [Mon, 31 Dec 2007 11:43:03 +0000 (11:43 -0000)]
When searching for "test" in IUSE, account for IUSE defaults.

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

16 years agoFix config.setcpv() to properly call config.regenerate() in cases
Zac Medico [Mon, 31 Dec 2007 09:54:15 +0000 (09:54 -0000)]
Fix config.setcpv() to properly call config.regenerate() in cases
when USE needs to be regenerated due to FEATURES=test to USE=test
mapping.

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

16 years agoAs suggested by grobian, treat Darwin just like USERLAND=gnu
Zac Medico [Sat, 29 Dec 2007 20:14:05 +0000 (20:14 -0000)]
As suggested by grobian, treat Darwin just like USERLAND=gnu
since they seem to be switching commands to gnu anyway.

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

16 years agoFix USERLAND references to handle Darwin like BSD.
Zac Medico [Sat, 29 Dec 2007 19:54:20 +0000 (19:54 -0000)]
Fix USERLAND references to handle Darwin like BSD.

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

16 years agoFix broken Darwin USERLAND detection.
Zac Medico [Sat, 29 Dec 2007 19:36:57 +0000 (19:36 -0000)]
Fix broken Darwin USERLAND detection.

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

16 years agoAdd PKGDIR to the config.environ() whitelist so that people's
Zac Medico [Sat, 29 Dec 2007 18:20:43 +0000 (18:20 -0000)]
Add PKGDIR to the config.environ() whitelist so that people's
bashrc's don't break.

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

16 years agoFix handling of leading / charactes some more.
Zac Medico [Sat, 29 Dec 2007 17:56:30 +0000 (17:56 -0000)]
Fix handling of leading / charactes some more.

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

16 years agoMake the ecompressdir vecho output show a leading / on
Zac Medico [Sat, 29 Dec 2007 17:41:18 +0000 (17:41 -0000)]
Make the ecompressdir vecho output show a leading / on
the directory path. Thanks to armin76.

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

16 years agoDocument that docinto works for dohtml.
Zac Medico [Sat, 29 Dec 2007 16:47:05 +0000 (16:47 -0000)]
Document that docinto works for dohtml.

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

16 years agoRely on USERLAND since it's automatically generated by
Zac Medico [Sat, 29 Dec 2007 13:50:58 +0000 (13:50 -0000)]
Rely on USERLAND since it's automatically generated by
isolated-functions.sh when necessary.

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

16 years agoMake the global counter file correspond to
Zac Medico [Sat, 29 Dec 2007 13:31:38 +0000 (13:31 -0000)]
Make the global counter file correspond to
the total number of installation actions
that have occurred in the history of this
package database.

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

16 years agoRemove redundant USERLAND sanity check code from doebuild() since
Zac Medico [Sat, 29 Dec 2007 12:37:26 +0000 (12:37 -0000)]
Remove redundant USERLAND sanity check code from doebuild() since
it's handled in isolated-functions.sh now.

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

16 years agoAdd back support for silent definition of the dummy lchown()
Zac Medico [Sat, 29 Dec 2007 12:14:27 +0000 (12:14 -0000)]
Add back support for silent definition of the dummy lchown()
function when ostype == Darwin.

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

16 years agoSimplify the userland detection code in portage.data and add
Zac Medico [Sat, 29 Dec 2007 12:07:56 +0000 (12:07 -0000)]
Simplify the userland detection code in portage.data and add
a bash version of it to isolated-functions.sh.

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

16 years agoRemove redundant lchown() compatibility code since the
Zac Medico [Sat, 29 Dec 2007 11:49:38 +0000 (11:49 -0000)]
Remove redundant lchown() compatibility code since the
getattr(os, "lchown", None) call already handles it.

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

16 years agoMove XARGS initialization from portage.data to isolated-functions.sh.
Zac Medico [Sat, 29 Dec 2007 11:36:20 +0000 (11:36 -0000)]
Move XARGS initialization from portage.data to isolated-functions.sh.

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

16 years agoMove XARGS initialization from portage.data to isolated-functions.sh.
Zac Medico [Sat, 29 Dec 2007 11:30:30 +0000 (11:30 -0000)]
Move XARGS initialization from portage.data to isolated-functions.sh.

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

16 years agoAdd support for showing binary package file sizes in emerge
Zac Medico [Sat, 29 Dec 2007 10:41:14 +0000 (10:41 -0000)]
Add support for showing binary package file sizes in emerge
--search output.

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

16 years ago* Initialize dbapi._categories = None so that we can compare
Zac Medico [Sat, 29 Dec 2007 09:58:56 +0000 (09:58 -0000)]
* Initialize dbapi._categories = None so that we can compare
with None instead of using hasattr.
* Remove unwanted self._categories initialization from the
  portdbapi constructor.

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

16 years agoMake doebuild() check XARGS together with ARCH and USERLAND.
Zac Medico [Sat, 29 Dec 2007 09:04:45 +0000 (09:04 -0000)]
Make doebuild() check XARGS together with ARCH and USERLAND.

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

16 years agoMake the ARCH and USERLAND sanity check use the autodetected USERLAND
Zac Medico [Sat, 29 Dec 2007 08:57:05 +0000 (08:57 -0000)]
Make the ARCH and USERLAND sanity check use the autodetected USERLAND
from the portage.data module if necessary.

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

16 years agoBug #121584 - Make the automatic USERLAND detection code recognize
Zac Medico [Sat, 29 Dec 2007 08:38:43 +0000 (08:38 -0000)]
Bug #121584 - Make the automatic USERLAND detection code recognize
GNU/kFreeBSD.

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

16 years agoBug #202697 - Add / to the default initial SANDBOX_READ in order to
Zac Medico [Fri, 28 Dec 2007 23:12:24 +0000 (23:12 -0000)]
Bug #202697 - Add / to the default initial SANDBOX_READ in order to
avoid a situation where attempts to read arbitrary files trigger
sandbox violations.

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

16 years agoMake the FEATURES=sfperms loops safe for whitespace in paths
Zac Medico [Fri, 28 Dec 2007 21:10:25 +0000 (21:10 -0000)]
Make the FEATURES=sfperms loops safe for whitespace in paths
by using find -print0 | while read -d $'\0'.

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

16 years agoMake key_expand() use dbapi.categories.
Zac Medico [Fri, 28 Dec 2007 18:27:51 +0000 (18:27 -0000)]
Make key_expand() use dbapi.categories.

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

16 years agoMake dep_expand() stop relying on having a categories list:
Zac Medico [Fri, 28 Dec 2007 18:20:29 +0000 (18:20 -0000)]
Make dep_expand() stop relying on having a categories list:
* Create and use a dbapi.categories property that is
  automatically generated from dbapi.cp_all().
* Make mutable dbapi instances delete the invalidate the
  cached categories when they need to be regenerated.

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

16 years agoJust ignore it when the global counter file does not match
Zac Medico [Fri, 28 Dec 2007 18:01:29 +0000 (18:01 -0000)]
Just ignore it when the global counter file does not match
the highest installed COUNTER since it's normal for them to
differ in some cases. For example, the global counter file
will contain a higher value if the user merges a package and
then immediately unmerges it (unmerge does not update the
global counter file, but merge does).

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

16 years agoIn action_regen(), use writemsg() to send error messages to
Zac Medico [Fri, 28 Dec 2007 15:35:39 +0000 (15:35 -0000)]
In action_regen(), use writemsg() to send error messages to
stderr.

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

16 years agoShow the EBUILD_FORCE_TEST "Forcing test" message
Zac Medico [Fri, 28 Dec 2007 14:56:47 +0000 (14:56 -0000)]
Show the EBUILD_FORCE_TEST "Forcing test" message
even when "test" is not in IUSE.

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

16 years agoFixes for logic related to FEATURES=test to USE=test mapping:
Zac Medico [Fri, 28 Dec 2007 14:40:13 +0000 (14:40 -0000)]
Fixes for logic related to FEATURES=test to USE=test mapping:
* Add EBUILD_FORCE_TEST to the environment whitelist and filter
  it from the saved environment in save_ebuild_env().
* Tweak logic inside the ebuild command and config.regenerate()
  so that EBUILD_FORCE_TEST works even in odd cases like when
  USE=test is masked.
* Only make FEATURES=test map to USE=test when "test" is
  actually in IUSE.
* Remove USE=test from the set of implicit IUSE so that useq()
  calls in ebuild.sh properly generate a QA Notice when "test"
  is missing from IUSE.

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

16 years agoAlways make sure that the depend phase triggers a source ${EBUILD}
Zac Medico [Fri, 28 Dec 2007 13:27:00 +0000 (13:27 -0000)]
Always make sure that the depend phase triggers a source ${EBUILD}
call, even if "${T}"/environment happens to exist for some reason.

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

16 years agoBug #203323 - Fix the FEATURES=sfperms code so that it doesn't chmod
Zac Medico [Fri, 28 Dec 2007 11:29:58 +0000 (11:29 -0000)]
Bug #203323 - Fix the FEATURES=sfperms code so that it doesn't chmod
g-r on binaries that are both setuid and setgid. In that case, just
chmod o-r.

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

16 years agoMinor code readablity enhancements:
Zac Medico [Fri, 28 Dec 2007 10:45:06 +0000 (10:45 -0000)]
Minor code readablity enhancements:
* Use relative_path and full_path variables for files being checked
  instead of spreading code like x+"/files/"+y all over the place.
* Use stat.S_IMODE with octal 0111 instead of hex 0x0248 in the
  file.executable checks.

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

16 years agoBug #201498 - Use desktop-file-validate to validate *.desktop
Zac Medico [Fri, 28 Dec 2007 10:23:55 +0000 (10:23 -0000)]
Bug #201498 - Use desktop-file-validate to validate *.desktop
files inside ${FILESDIR} and generate a "desktop.invalid"
qa warning if an error is detected. Thanks to Betelgeuse for
the initial patch.

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

17 years agoFix broken handling of the tuple that's returned from
Zac Medico [Wed, 26 Dec 2007 14:17:19 +0000 (14:17 -0000)]
Fix broken handling of the tuple that's returned from
verify_all(). Thanks to Betelgeuse.

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

17 years agoFix sync_local() to return 0 when a appropriate. Thanks to
Zac Medico [Wed, 26 Dec 2007 08:21:39 +0000 (08:21 -0000)]
Fix sync_local() to return 0 when a appropriate. Thanks to
Alon Bar-Lev" <alonbl@gentoo.org>

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

17 years agoIn getconfig(), pass the infile attribute into the shlex
Zac Medico [Tue, 25 Dec 2007 05:41:06 +0000 (05:41 -0000)]
In getconfig(), pass the infile attribute into the shlex
constructor so that shlex.sourcehook() properly joins
relative paths.

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

17 years agoFix "Initializing counter" message to show the correct value.
Zac Medico [Tue, 25 Dec 2007 03:20:40 +0000 (03:20 -0000)]
Fix "Initializing counter" message to show the correct value.

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

17 years agoBug #203090 - Do not trust the global counter
Zac Medico [Tue, 25 Dec 2007 02:51:44 +0000 (02:51 -0000)]
Bug #203090 - Do not trust the global counter
file that can lead to invalid COUNTER generation.

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

17 years agoBug #203239 - With FEATURES=noauto, always source ${EBUILD}.
Zac Medico [Tue, 25 Dec 2007 01:34:22 +0000 (01:34 -0000)]
Bug #203239 - With FEATURES=noauto, always source ${EBUILD}.
This will load the ${T}/environment file if available and then
source ${EBUILD} to overwrite any functions that have changed.

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

17 years ago- small UI cleanups. *should* not cause problems with lack of missing newlines.
Ned Ludd [Tue, 25 Dec 2007 00:24:48 +0000 (00:24 -0000)]
- small UI cleanups. *should* not cause problems with lack of missing newlines.

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

17 years agoRemove redundant find_binary import.
Zac Medico [Sun, 23 Dec 2007 02:21:11 +0000 (02:21 -0000)]
Remove redundant find_binary import.

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

17 years agoAdd support for --usepkg and --usepkgonly options together with
Zac Medico [Fri, 21 Dec 2007 12:51:23 +0000 (12:51 -0000)]
Add support for --usepkg and --usepkgonly options together with
emerge --search.

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

17 years agoImplement a `portageq contents <root> <category/package>` command
Zac Medico [Fri, 21 Dec 2007 11:36:08 +0000 (11:36 -0000)]
Implement a `portageq contents <root> <category/package>` command
that lists all the files that are installed for a given package,
with one file listed on each line.

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

17 years agoTypo: remove bogus argument.
Zac Medico [Fri, 21 Dec 2007 11:15:57 +0000 (11:15 -0000)]
Typo: remove bogus argument.

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

17 years agoEnhance the portageq match command to list all installed packages
Zac Medico [Fri, 21 Dec 2007 11:14:44 +0000 (11:14 -0000)]
Enhance the portageq match command to list all installed packages
when given an empty string.

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

17 years agoMake vardbapi cache DESCRIPTION and HOMEPAGE in order to optimize
Zac Medico [Fri, 21 Dec 2007 10:31:56 +0000 (10:31 -0000)]
Make vardbapi cache DESCRIPTION and HOMEPAGE in order to optimize
emerge --searchdesc.

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

17 years agoImplement binary package visibility filtering for emerge --search.
Zac Medico [Fri, 21 Dec 2007 10:05:36 +0000 (10:05 -0000)]
Implement binary package visibility filtering for emerge --search.

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

17 years agoDon't show "Size of files: 0 kB" in emerge --search output for installed
Zac Medico [Fri, 21 Dec 2007 07:16:24 +0000 (07:16 -0000)]
Don't show "Size of files: 0 kB" in emerge --search output for installed
packages that have no available ebuild in the tree.

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

17 years agoImplement emerge --search support for installed packages, so it
Zac Medico [Fri, 21 Dec 2007 06:59:28 +0000 (06:59 -0000)]
Implement emerge --search support for installed packages, so it
works even without a portage tree or binary packages.

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

17 years agoMake the "test" flag that's enabled by FEATURES=test into
Zac Medico [Fri, 21 Dec 2007 05:05:50 +0000 (05:05 -0000)]
Make the "test" flag that's enabled by FEATURES=test into
an implicit iuse member.

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

17 years agoEliminate redundant "notadded" error filtering.
Zac Medico [Fri, 21 Dec 2007 03:28:48 +0000 (03:28 -0000)]
Eliminate redundant "notadded" error filtering.

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

17 years agoFix xmatch "match-all" typo.
Zac Medico [Fri, 21 Dec 2007 02:47:09 +0000 (02:47 -0000)]
Fix xmatch "match-all" typo.

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

17 years agoIn portage.process.spawn(), make the default fd_pipes value get
Zac Medico [Fri, 21 Dec 2007 02:20:30 +0000 (02:20 -0000)]
In portage.process.spawn(), make the default fd_pipes value get
file descriptors from sys.std{in,out,err} so that they can be
overridden.

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

17 years agoIn portage.spawn(), make the default fd_pipes value get file
Zac Medico [Fri, 21 Dec 2007 02:14:46 +0000 (02:14 -0000)]
In portage.spawn(), make the default fd_pipes value get file
descriptors from sys.std{in,out,err} so that they can be
overridden.

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

17 years agoTweak profile validation and warning logic a bit.
Zac Medico [Fri, 21 Dec 2007 02:04:27 +0000 (02:04 -0000)]
Tweak profile validation and warning logic a bit.

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