summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
| * tests/repoman: use layout.conf update-changelogZac Medico2011-10-201-4/+14
| |
* | UpdateChangeLog: fix whitespaceFabian Groffen2011-10-201-2/+2
| |
* | repoman: update copyright on modified filesFabian Groffen2011-10-201-6/+85
| | | | | | | | | | | | To retain the behaviour of echangelog, update the copyrights on modified files (mostly ebuilds) when necessary. Also update the ChangeLog's copyright.
* | repoman: get ChangeLog header from skel.ChangeLogFabian Groffen2011-10-201-36/+43
|/ | | | | | | Use skel.ChangeLog from the repo to create the header of a new ChangeLog file. Else, we just retain the original header of the ChangeLog. When no skel.ChangeLog file exists, and this is a new ChangeLog, no header is used.
* UpdateChangeLog: time in UTCZac Medico2011-10-201-3/+5
|
* repoman: get default to update changelog from layout.confFabian Groffen2011-10-201-1/+5
| | | | | | | | | | | | | Updating the ChangeLog file may be desirable in more repos than just the one named 'gentoo', like e.g. the Prefix one. Hence, make this default configurable though metadata/layout.conf. This commit must go accompanied by a commit to gentoo-x86/metadata/layout.conf that adds the following bit: # Bug #337853 - gentoo's council says to enable # --echangelog by default for the "gentoo" repo update-changelog = true
* depgraph: fix installed masked warningZac Medico2011-10-201-7/+8
| | | | | This warning has been broken since commit 5f65c2294df592a6a4e0f0fff0bedec49ed3491a.
* resolver/output: use set for myfetchlist hashingZac Medico2011-10-191-2/+2
|
* resolver/output: display binary fetch sizeZac Medico2011-10-191-5/+14
|
* Add bindbapi.getfetchsizes() like pordbapi has.Zac Medico2011-10-191-0/+28
|
* /etc/portage/modules: warn about metadata_overlayv2.2.0_alpha69Zac Medico2011-10-181-2/+9
| | | | | | This module is an alias for flat_hash now, and hasn't been useful since FEATURES=metadata-transfer was disabled by default in commit 81db3e467cd7f8bb94fcdf96d5fb4acf27bf382b.
* load_best_module: tweak metadata_overlay fallbackZac Medico2011-10-171-6/+9
|
* python3.2 fixes: "ResourceWarning: unclosed file"Zac Medico2011-10-173-9/+10
|
* tests/repoman: fix 'unknown revision' git msgsZac Medico2011-10-171-1/+1
|
* Fix serialize_eclasses = False in cache template.Zac Medico2011-10-172-7/+29
| | | | | | | This fixes volatile cache validation that did not get fixed in commit a63c163a50bf8a4e5ca8673cd8bebae29c36643a. Now all volatile cache problems that have been introduced since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212 should be fixed.
* portdbapi: fix volatile cache handlingZac Medico2011-10-174-120/+20
| | | | | | | | | The metadata_overlay usage, that was triggered automatically for users without depcachedir write access, has been broken since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212. The metadata_overlay class is not compatible with the new validation code, so remove it. If users have metadata_overlay configured as their cache module, fall back to flat_hash.
* eclass_cache: fix volatile cache DigestExceptionZac Medico2011-10-171-3/+3
| | | | | The deepcopy in catch/volatile.py misbehaved when it tried to copy attributes like __DEEPCOPY__ that didn't correspond to known functions.
* UpdateChangeLog: use struct_passwd attributesZac Medico2011-10-171-3/+3
|
* tests/repoman: fix manifests before adding to gitv2.2.0_alpha68Zac Medico2011-10-161-0/+1
|
* portdbapi.aux_get: remove redunant EAPI codeZac Medico2011-10-161-11/+8
| | | | This code only needs to exist in _metadata_callback.
* UpdateChangeLog: show trivial if nothing elseZac Medico2011-10-161-5/+20
| | | | | Like echangelog does, show ChangeLog or Manifest if there are no other changes to display.
* perform_checksum: OSerror to PermissionDeniedZac Medico2011-10-161-1/+3
|
* hashed_path: convert OSError to PermissionDeniedZac Medico2011-10-161-0/+2
|
* tests/repoman: test commit with gitZac Medico2011-10-161-11/+84
| | | | | These tests only run if the git binary is found. They include testing of new --echangelog=y option.
* tests/emerge: test --regen and --metadataZac Medico2011-10-161-5/+37
|
* UpdateChangeLog: update copyright year in headerZac Medico2011-10-161-2/+10
| | | | | This feature got dropped on commit b655137b7b5f87c11a7e742b7ef0e028a1139677.
* UpdateChangeLog: optimize and add unicode supportZac Medico2011-10-161-32/+70
| | | | | | | | Also: * copy the old header from the old ChangeLog if it exists, in case it contains a non-gentoo header * don't add a header if the old ChangeLog exists and doesn't contain a header
* repoman: implemented echangelog functionalityFabian Groffen2011-10-161-2/+120
| | | | | | | | | | Instead of calling echangelog, which on its turn has to query the VCS again, use the existing information on changes made to the current directory, and update the ChangeLog from Python itself. This avoids a call to echangelog, and avoids again retrieving the same VCS information as repoman already did. It makes repoman independent from external tools it didn't install itself, and should be faster in general.
* hashed_path: convert stat OSError to FileNotFoundZac Medico2011-10-162-4/+9
| | | | | This makes it consistent with perform_checksum call which also raises FileNotFound instead of OSError.
* EbuildMetadataPhase: avoid redundant EAPI parsingZac Medico2011-10-162-3/+5
|
* Add --binpkg-exclude optionSebastian Luther2011-10-163-6/+32
| | | | | This options disables creation of binary packages, no matter what enabled it in the first place. See bug 386903.
* Fix a typo in a comment.Arfrever Frehtes Taifersar Arahesis2011-10-161-1/+1
|
* RepoConfig: sort __slots__Zac Medico2011-10-151-2/+2
|
* _pull_valid_cache: pass unicode to hashed_pathZac Medico2011-10-151-4/+1
| | | | | | | | | This removes a conversion to bytes that should have been removed in commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212. The hashed_path location attribute should always be unicode, for consistency will path handling throughout portage. The hashed_path class internally uses the portage portage.os wrapper to ensure that paths are encoded as utf_8 bytes when they are passed to the real os module for stat calls.
* MetadataRegen: remove unused importZac Medico2011-10-151-1/+0
|
* EbuildMetadataPhase: tweak metadata_callback usageZac Medico2011-10-151-3/+2
| | | | | For parse-eapi-ebuild-head, we want to assign self.metadata from the return value, for conformity with usage elsewhere.
* EbuildMetadataPhase: fix parse-eapi-ebuild-headZac Medico2011-10-151-2/+7
| | | | | This fixes bugs that can only be triggered by egencache since other callers handle parse-eapi-ebuild-head earlier.
* EbuildMetadataPhase: fix broken _metadata_callbackZac Medico2011-10-151-2/+2
| | | | | This fixes a regression in FEATURES=parse-eapi-ebuild-head support for egencache since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212.
* bin/ebuild: don't set PORTAGE_CALLERZac Medico2011-10-151-1/+1
| | | | This removes the last reference to PORTAGE_CALLER.
* fixpackages: don't use PORTAGE_CALLERZac Medico2011-10-152-5/+11
|
* portdbapi.aux_get: fix broken _metadata_callbackZac Medico2011-10-151-1/+1
| | | | | This fixes a regression in FEATURES=parse-eapi-ebuild-head support since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212.
* EbuildMetadataPhase: use b''.join() for bytesZac Medico2011-10-151-3/+3
|
* frozenset categories optimize pordbapi.cp_list()Zac Medico2011-10-151-2/+4
|
* FindVCS: support Subversion 1.7Fabian Groffen2011-10-151-2/+4
| | | | | Since subversion 1.7, only a top-level .svn dir is used. Make FindVCS also deal with that. (Tested with repoman on Prefix SVN-based tree.)
* emerge --metadata: fix empty INHERITED handlingZac Medico2011-10-142-3/+8
| | | | | | | | Since changes to eclass validation code in commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212, validation of cache for packages with empty INHERITED metadata has been broken due to failure to distinguish between None and empty dict return values from eclass.cache.validate_and_rewrite_cache().
* emerge --metadata: fix breakageZac Medico2011-10-142-6/+18
| | | | | | The hunk that got removed from action_metadata in commit d4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6 is actually needed when FEATURES=metadata-transfer is enabled.
* eclass_cache: fix cache_getter typoZac Medico2011-10-141-1/+1
| | | | | | This triggered a regression since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212 that caused cache entries containing eclass paths to appear invalid.
* layout.conf: add git friendly pregenerated cache formatBrian Harring2011-10-142-3/+12
| | | | | | | | | | | | | | | | | Enabled via cache-format = md5-dict This format is essentially just flat_hash, using md5 rather than mtime, and dropping the path component from _eclasses_ entries. From a speed standpoint, the md5 overhead is ~16% in comparison to mtime, timed on a modern sandybridge; specifically, validating 29k nodes takes ~8.8s for flat_md5, while the pms norm is ~7.7s. That said, the cache is /usable/ in places PMS is not; in those cases, it can definitely be a win since even if the cache is partially old, it's better than regenerating everything from scratch. (cherry picked from commit 95ddf97e2f7e7d3f6a072604b2df5f77e9298558) Change-Id: Ic3561369b7a8be7f86480f339ab1686fddea6dff
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-148-97/+180
| | | | | | | | | | Specifically, the cache can use any portage supported checksum method, or use the standard mtime approach. In addition, support controlling whether or not paths are stored, and generally try to restore some of the centralization/encapsulation that was in place originally. (cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247) Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
* cache.util: drop completely dead module/codeBrian Harring2011-10-142-191/+5
| | | | | | | Looks of it, this code was copied/mangled into action_metadata; the noise/callbacks in use don't do anything, so drop them, the dead code, and clean up the exception handling to reflect the new reality (cherry picked from commit 320890fadbedf678119ac06d458ed6086075431e)