summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/bintree.py
Commit message (Collapse)AuthorAgeFilesLines
* bintree: don't provide default VERSION headerv2.2.0_alpha41Zac Medico2011-06-131-1/+0
| | | | | We want to make sure that we know when the VERSION header is missing, so we shouldn't provide a default value.
* bintree: verify that default REPO is legitZac Medico2011-06-101-1/+1
| | | | | We need to check the RepoConfig.missing_repo_name attribute to make sure the repo_name is really defined.
* bintree: handle pkgindex CHOST header like REPOZac Medico2011-06-101-1/+2
| | | | | This allows an existing CHOST header entry to properly override our default.
* bintree: always populate pkgindex REPO headerZac Medico2011-06-101-10/+16
| | | | | | | The previous code would only populate it when there was no existing index file. Now, the default will be populated even if the file exists already. If an existing pkgindex header already defines these keys, then they will appropriately override our defaults.
* bintree: populate REPO header for empty pkgindexv2.2.0_alpha38Zac Medico2011-06-061-1/+8
|
* emerge: add --rebuild and --norebuild-atoms optsDavid James2011-05-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | Rebuild when build-time/run-time deps are upgraded. If pkgA has been updated, and pkgB depends on pkgA at both build-time and run-time, pkgB needs to be rebuilt. This feature ensures that all packages are consistent when dependencies that are used at both runtime and build time are changed. This feature only rebuilds packages one layer deep. That means that if you upgrade libcros, for example, packages that depend directly on libcros will be rebuilt and reinstalled, but indirect dependencies will not be rebuilt. BUG=chromium-os:14296 TEST=Test whether packages rebuilding a bunch of packages. Change-Id: Idbc0532b4b1de28fd9e5a0abe3b7dbe1a3abd2c8 Review URL: http://codereview.chromium.org/6905107
* Fix unhandled FileNotFound from previous commit.Zac Medico2011-02-131-1/+1
| | | | | There is an existing handler for EnvironmentError, so raise that instead of FileNotFound.
* Add support for grabbing Packages files using external programs.David James2011-02-131-2/+14
| | | | | | | | | | | | | If the user specifies FETCHCOMMAND_*, Portage should honor this when grabbing Packages files. This allows users to setup support for grabbing Packages files from other protocols. BUG=chrome-os-partner:2026 TEST=Try downloading prebuilts from gs:// when FETCHCOMMAND_GS is setup in make.conf Change-Id: I96b239819351633dd02d608954e81a1c363a4687 Review URL: http://codereview.chromium.org/6458015
* bintree: cleanup/fix old binhost code moreZac Medico2011-02-021-4/+2
|
* bintree: clean up dict use in old binhost codeZac Medico2011-02-021-2/+3
|
* bintree: add missing del from previous commitZac Medico2011-02-021-1/+1
|
* bintree: remove unused __remotepkgsZac Medico2011-02-021-10/+5
|
* bintree: warn for missing binhost TIMESTAMPZac Medico2011-01-291-0/+2
| | | | This seems to be the case that's triggered in bug 353189 and bug 350139.
* binarytree: fix BASE_URI for old-style binhostZac Medico2011-01-261-0/+1
|
* binarytree: fix broken BASE_URI initializationZac Medico2011-01-261-2/+3
|
* Update Portage to support multiple binhosts.David James2011-01-261-15/+19
| | | | | | | | | | | BUG=chromium-os:11295 TEST=Build x86-mario with multiple binhosts (board binhost, preflight binhost) and verify that binaries are picked up from both binhosts. Also verify that if one of the binhosts fails, the other binhost is used correctly. Review URL: http://codereview.chromium.org/6329022 Change-Id: I095f28c82e3effbc25105af6ac89e42c335e6381
* Omit user:pass@ from binhost Packages cache path.Zac Medico2010-12-311-2/+11
|
* bintree: add timeout for closing binhost connv2.2.0_alpha11Zac Medico2010-12-311-2/+13
| | | | Hopefully this solves bug #350139.
* Use bytes literals.Arfrever Frehtes Taifersar Arahesis2010-12-061-16/+6
|
* complete binhost ssh/sftp port supportZac Medico2010-11-041-12/+11
|
* binarytree: handle binhost port for sftp/sshZac Medico2010-11-041-4/+16
|
* reposyntax: Print cpv from all repos for "masked by" messagesSebastian Luther2010-09-261-1/+1
|
* reposyntax: Add support all over the placeSebastian Luther2010-09-261-1/+1
|
* Add PORTAGE_BINHOST sftp protocol support.v2.2_rc87Zac Medico2010-09-251-5/+24
|
* Implement PORTAGE_BINHOST ssh:// protocol support by spawning sshZac Medico2010-09-251-1/+18
| | | | | | | | | | and using it to stream the Packages file on stdout. This assumes that you have ssh-agent running, for authentication. For now, you won't be able to use this unless you define your own FETCHCOMMAND_SSH and RESUMECOMMAND_SSH values. It's trivial to do this if you create a helper script that calls rsync after transforming the URI into the host:/path format that rsync uses.
* Move all imports in bintree.py to the top.Zac Medico2010-09-251-22/+14
|
* Add a new package set called @unavailable-binaries which matchesZac Medico2010-09-071-0/+5
| | | | | packages that are installed for which corresponding binary packages are not available.
* use EROOT with CACHE_PATHFabian Groffen2010-09-041-1/+1
|
* Fix breakage in use_reduce() calls where token_class=Atom is incorrect.Zac Medico2010-08-261-1/+6
|
* Make use_reduce() call Atom.evaluate_conditionals() when matchall is False,Zac Medico2010-08-261-12/+2
| | | | | and pass token_class=Atom in use_reduce() calls so that external Atom.evaluate_conditionals() calls can be eliminated.
* Fix erroneoud reference to self.aux_get in bintree.move_ent().Zac Medico2010-08-221-1/+2
|
* Handle OSError from os.path.samefile() (breakage from previous commit).Zac Medico2010-08-161-1/+5
|
* Bug #332967 - In bintree.inject(), add a sanity check to make sure weZac Medico2010-08-161-2/+3
| | | | | don't try to call movefile on a package that's already in the correct location.
* portage/dbapi/{bintree.py,porttree.py}: Remove deprecated stuff in all placesSebastian Luther2010-08-111-3/+0
|
* portage/dbapi/bintree.py: Remove deprecated parameterSebastian Luther2010-08-111-23/+1
|
* portage.dep.use_reduce: Work on depstrings instead of paren_reduce'd dep arraysSebastian Luther2010-08-101-4/+2
| | | | | This change makes paren_reduce and paren_normalize calls for use_reduce redundant, resp. wrong. All consumers inside portage are adopted.
* Add REQUIRED_USE to metadata keys, caches, etc.Sebastian Luther2010-08-101-3/+6
|
* Tweak global updates handling so that updates from $PORTDIR are appliedZac Medico2010-07-271-2/+3
| | | | | | | | | for all of the following cases: * package is missing repository metadata * package has repository metadata, but the source repository does not have a profiles/updates/ directory * package has repository metadata, but the source repository is not currently accessible via PORTDIR_OVERLAY
* Support repository-wide updates.Michał Górny2010-07-271-1/+3
| | | | | | | Support reading repository-wide update files. Apply them as long as the 'repository' for vardb entry matches the repository update is originating from. For world and configuration files, use the best vardb match.
* Split out a _pkgindex_cpv_map_latest_build() function.Zac Medico2010-06-041-26/+36
|
* Fix code from previous commit to handle missing BUILD_TIME better.Zac Medico2010-06-041-10/+10
|
* When organizing remote binhost metadata into a cpv -> metadata map,Zac Medico2010-06-041-1/+25
| | | | | check for multiple packages with identical CPV values, and prefer the package with latest BUILD_TIME value.
* Don't use finally with atomic_ofstream since that prevents it fromZac Medico2010-05-131-12/+6
| | | | aborting when appropriate.
* Fix typo from previous commit.Zac Medico2010-04-281-1/+1
|
* Inside bintree.inject(), discard cached metadata to ensure thatZac Medico2010-04-281-0/+4
| | | | _pkgindex_entry doesn't return stale metadata.
* In bintree.inject(), ensure that _pkgindex_entry returns local metadataZac Medico2010-04-271-5/+6
| | | | | rather than remote metadata. Thanks to Kenneth Waters <kwaters@chromium.org> for reporting.
* Handle IOError when trying to cache the Packages file from the binhost.Zac Medico2010-04-091-1/+1
|
* When caching Packages file from binhost, ignore failure to write in casesZac Medico2010-04-091-2/+1
| | | | when the cache directory is not writable.
* Add DEFINED_PHASES to the dbapi caches and _emerge.Package.metadataSebastian Luther2010-03-301-3/+4
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|