summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* UpdateChangeLog: tweak clold_lines logicZac Medico2011-10-211-14/+17
| | | | There are two cases here that have to be mutually exclusive.
* update_copyright: make pretend a keyword argZac Medico2011-10-211-2/+2
|
* _update_copyright_year: optimize no-match caseZac Medico2011-10-211-1/+8
|
* update_copyright: process files as raw bytesZac Medico2011-10-211-10/+20
| | | | | This function will work correctly with files encoded in any character set, as long as the copyright statements consist of plain ASCII.
* UpdateChangeLog: split out/test copyright regexZac Medico2011-10-202-12/+51
| | | | | This also fixes a case where something like "Copyright 2011 " would be replaced with "Copyright 2011-2011 ".
* UpdateChangeLog: tweak new/changed codedZac Medico2011-10-201-9/+8
|
* UpdateChangeLog: split out get_committer_name()Zac Medico2011-10-201-20/+24
|
* UpdateChangeLog: handle edge casesZac Medico2011-10-201-10/+28
| | | | | This should handle all kinds of variance in the input ChangeLog and skel.ChangeLog.
* UpdateChangeLog: don't hardcode 1999 copyrightZac Medico2011-10-201-2/+2
| | | | | | We want repoman to be applicable to as many repositories as possible. If necessary, we can add another layout.conf attribute that configures the copyright start years for all files.
* update_copyright: remove stray semicolonZac Medico2011-10-201-1/+1
|
* update_copyright: don't hardcode 1999 start yearZac Medico2011-10-201-4/+5
| | | | | | We want repoman to be applicable to as many repositories as possible. If necessary, we can add another layout.conf attribute that configures the copyright start years for all files.
* tests/repoman: add skel.ChangeLogZac Medico2011-10-201-0/+2
|
* Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portageFabian Groffen2011-10-201-4/+14
|\
| * 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.