summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Skip QA Notice for hasq/useq during *rm phases.Zac Medico2011-07-152-2/+4
|
* portageq: reference GLEP 37 in expand_virtual docZac Medico2011-07-141-1/+2
|
* Update timestamps in headers of modified files.Zac Medico2011-07-126-6/+6
|
* filter-bash-environment.py: move imports to topZac Medico2011-07-121-5/+7
|
* misc-functions.sh: fix incorrect has -o usageZac Medico2011-07-121-1/+1
|
* Remove python-2.6 StringIO.StringIO fallback.Zac Medico2011-07-121-2/+1
| | | | | | | | Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
* ebuild.sh: restore old has() implementationBrian Harring2011-07-111-1/+8
| | | | | | | | The needle/haystack implementation handles whitespace as originally intended (prior to commit 659eafddd5964820ce8bdc0d90f5fcf7df04b5b7), as discussed in bug #374791. Signed-off-by: Brian Harring <ferringb@gmail.com>
* Migrate from codecs.open() to io.open().Zac Medico2011-07-103-26/+31
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* Add QA Notice for hasq/useq calls (bug #199722).Zac Medico2011-07-082-0/+2
|
* Remove all hasq/useq calls for bug #199722.Zac Medico2011-07-0810-93/+93
|
* Invert has/hasq and use/useq implementations.Zac Medico2011-07-082-8/+8
| | | | | We need to migrate away from hasq and useq since they are deprecated (bug #199722).
* repoman: ElementTree.ParseError -> SyntaxErrorZac Medico2011-07-031-1/+1
| | | | | The ElementTree.ParseError class is undocumented and isn't available in python-2.6, so use its SyntaxError base class instead.
* portageq get_repo_path: output empty if unknownv2.2.0_alpha43Zac Medico2011-07-011-1/+4
| | | | It used to output "None" for unknown repos, which was not intended.
* misc-functions.sh: remove stale NEEDED* filesZac Medico2011-06-301-0/+1
|
* Fix last commit to work regardless of nullglob.Zac Medico2011-06-301-1/+2
|
* ecompress: beware of -k in PORTAGE_COMPRESS_FLAGSZac Medico2011-06-301-1/+4
| | | | This will fix bug #372183.
* ebuild(1): pass missing myrepo arg to aux_getZac Medico2011-06-291-1/+1
|
* ebuild(1): pass "installed" arg to PackageZac Medico2011-06-291-0/+1
|
* ebuild(1): pass Package instance to setcpvZac Medico2011-06-291-3/+19
| | | | This should improve repo-level support, for bug #370693.
* Add a QA check for systemd unit file install.Michał Górny2011-06-241-0/+10
|
* repoman: fix broken set constructor usageZac Medico2011-06-241-1/+2
|
* repoman: add new "dependency.unknown" warningZac Medico2011-06-241-0/+25
| | | | | This checks for a dependency that refers to an unknown package (which may be provided by an overlay), as requested in bug #372789.
* emaint binhost: add method for SIZE/MTIME checksZac Medico2011-06-181-19/+38
|
* emaint binhost: check SIZE and MTIMEZac Medico2011-06-181-1/+21
|
* portageq: fix all_best_visible to fail earlyZac Medico2011-06-181-3/+5
| | | | This will fix bug #372193.
* repoman: handle PermissionDenied from digestgenZac Medico2011-06-171-2/+7
| | | | This will fix bug #371987.
* repoman: only report allmasked if ebuilds existZac Medico2011-06-161-1/+1
|
* ebuild.sh: fix libdir for ccache/distccZac Medico2011-06-091-2/+8
| | | | This will fix bug #355283.
* ebuild.sh: don't hardcode distcc pump pathJeremy Murphy2011-06-091-2/+2
|
* portageq: support --versionZac Medico2011-06-051-4/+9
|
* portdbapi: cleanup when base module is reloadedZac Medico2011-06-031-1/+0
| | | | | | | This prevents memory leaks via portdbapi.portdbapi_instances when the module is reloaded. Also, there's no need for ebuild(1) to call close_portdbapi_caches() since it's now handled automatically during the reload.
* portageq: exclude expand_new_virt from commandsZac Medico2011-06-021-4/+7
| | | | | | This is necessary since portage probes functions in globals() and treats functions it finds as commands. Also, use lazy import to minimize global scope imports.
* portageq: add new expand_virtual functionZac Medico2011-06-021-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Something like this was requested in bug #157357. Now that Gentoo has migrated all virtuals to GLEP 37 new-style virtuals, this kind of function may be helpful in order to resolve the currently installed provider of a particular virtual in scripts like bootstrap.sh. Usage: portageq expand_virtual <root> <atom> Returns a \n separated list of atoms expanded from a given virtual atom, excluding blocker atoms. Satisfied virtual atoms are not included in the output, since they are expanded to real atoms which are displayed. Unsatisfied virtual atoms are displayed without any expansion. The "match" command can be used to resolve the returned atoms to specific installed packages. Example input/output: $ portageq expand_virtual / virtual/jre =dev-java/sun-jdk-1.6.0* $ portageq expand_virtual / virtual/jre:1.5 dev-java/gcj-jdk $ portageq expand_virtual / virtual/package-manager sys-apps/portage $ portageq expand_virtual / virtual/libc sys-libs/glibc:2.2 $ portageq expand_virtual / virtual/os-headers sys-kernel/linux-headers:0
* etc-update: add clear_term config for bug #142508Zac Medico2011-05-311-3/+4
|
* Update timestamps in headers of modified files.Zac Medico2011-05-251-1/+1
|
* repoman: pass type_name to Package constructorv2.2.0_alpha35Zac Medico2011-05-231-1/+1
|
* Fix spelling of "ambiguous".Zac Medico2011-05-221-3/+3
|
* Add FEATURES=distcc-pump support.MATSUU Takuto2011-05-201-0/+7
| | | | This will fix bug #288597.
* etc-update: clear term when appropriateZac Medico2011-05-171-1/+5
| | | | | | | This solves an issue like bug #142508, but involving etc-update instead of dispatch-conf. This is also relevant to bug #70668, which is the same issue, though the reporter suggested to use colors to delimit the output instead of using clear.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-2/+2
|
* doebuild: use EbuildBuildDir for lockingZac Medico2011-05-071-1/+1
| | | | | | | | EbuildBuildDir also performs safe removal of the category when it is empty, so ebuild.sh/dyn_clean doesn't need to do it anymore. This fixes a race condition if one process is trying to remove the category directory while another one is trying to create it for PORTAGE_BUILDDIR.
* repoman: make virtual.oldstyle a warning for nowZac Medico2011-05-051-0/+1
| | | | | This will give third-party repoman users some time to migrate their repos away old-style virtuals.
* doins: add reference to bug #239529Zac Medico2011-05-041-1/+4
| | | | | | The reasoning for the code from commit 55b3150af635a418ba3f1424132359c894db7ec4 is not really obvious, so it's helpful to reference the corresponding bug report.
* Avoid evaluation of values of variables in set_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-021-1/+1
|
* ebuild.sh: make INHERITED independent of phaseZac Medico2011-05-021-3/+11
| | | | | | | When EBUILD_PHASE != depend, INHERITED comes pre-initialized from cache. In order to make INHERITED content independent of EBUILD_PHASE during inherit() calls, we unset INHERITED after we make a backup copy for QA checks.
* repoman: remove most old-style virtual checksZac Medico2011-05-011-45/+0
| | | | | | | | | PROVIDE virtuals have been banned from Gentoo's tree (see bug #365505), so these checks aren't needed anymore. The PROVIDE.syntax check is kept in the Package class since PROVIDE is still supported for backward compatibility, and therefore invalid syntax can still have negative effects. This check can be removed if/when backward compatibilty is completely dropped.
* repoman: Check for PROVIDE.Ulrich Mueller2011-05-011-0/+5
| | | | This will fix bug #365505.
* Support multiple arguments in set_unless_changed() and unset_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-011-18/+25
| | | | Use VARIABLE=VALUE syntax for arguments of set_unless_changed().
* Bug #365439: Add set_unless_changed() and unset_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-012-2/+30
|
* install_qa_check(): Simplify code and make 'l' a local variable.Arfrever Frehtes Taifersar Arahesis2011-04-301-3/+3
|