summaryrefslogtreecommitdiffstats
path: root/pym/repoman
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-201-12/+28
| | | | | 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.
* 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
|
* UpdateChangeLog: use struct_passwd attributesZac Medico2011-10-171-3/+3
|
* 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.
* 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.
* 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.)
* Invalidate 'no-herd', there will be no special herds.Michał Górny2011-09-241-4/+0
|
* Add repoman warning about bash-completion deprecation.Michał Górny2011-09-101-0/+1
|
* repoman: discard STDERR output from CVS.Michał Górny2011-08-301-1/+1
| | | | Fixes: https://bugs.gentoo.org/show_bug.cgi?id=373669
* repoman: check more helper calls for $D, $ED...Zac Medico2011-08-081-1/+1
| | | | | | This adds docinto, docompress, fowners and fperms to the variable.usedwithhelpers check. Notably absent is dosed since that supports mixed input. This will fix bug #377303.
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-3/+3
| | | | | | | | | | | | | | | | | 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.
* repoman: tighten regex for useq and hasqZac Medico2011-07-081-3/+3
|
* repoman: centralize code for ignoring commentsZac Medico2011-07-081-6/+11
|
* repoman: check for deprecated useq and hasq callsDane Smith2011-07-082-1/+16
|
* repoman: disallow EMERGE_FROM in EAPI 4Zac Medico2011-05-311-2/+3
| | | | | | We already have the Eapi4GoneVars check for AA and KV which were removed in EAPI 4, so we can re-use it to disallow EMERGE_FROM. This will fix bug #368865.
* repoman: deprecate more eclassesTomas Chvatal2011-04-201-0/+5
|
* repoman: variable.usedwithhelpers ignore quotedZac Medico2011-02-281-1/+3
|
* repoman: warn about calls to prepall and preplibZac Medico2011-02-271-1/+1
|
* repoman: add back portage.internal checkZac Medico2011-02-251-1/+11
| | | | | | This check got removed for bug #262365, but now that EAPI 4 is released we can add it back. Now it checks for ecompress/ecompressdir too (for bug #218347).
* repoman: variable.usedwithhelpers tighten regexZac Medico2011-02-191-1/+1
| | | | This will fix bug #355621.
* repoman: variable.usedwithhelpers ignore commentsZac Medico2011-02-121-1/+1
| | | | This will fix bug #354685.
* repoman.herdbase: tolerate expat ImportErrorZac Medico2011-02-081-2/+9
| | | | | | We tolerate global scope import failures for optional modules, so that ImportModulesTestCase can succeed (or possibly alert us about unexpected import failures).
* Revert "parse_metadata_use(): omit empty text tokens."Zac Medico2011-02-041-2/+1
| | | | | | This reverts commit 52f6b55d51e2accaa446bc5d6920421959289baa. Since split() never return empty tokens, this patch does nothing.
* parse_metadata_use(): omit empty text tokens.Michał Górny2011-02-031-1/+2
|
* NoOffsetWithHelpers: fix invalid errors nameFabian Groffen2011-01-301-1/+1
|
* repoman: add check for using offset vars with helpersFabian Groffen2011-01-302-3/+13
| | | | | | | New check: NoOffsetWithHelpers. Checks whether helper functions, such as dodir and insinto, are used with offset variables either referring to the installation image (D, ED), the alternate root location (ROOT, EROOT), or the offset prefix (EPREFIX).
* Use bytes literals.Arfrever Frehtes Taifersar Arahesis2010-12-061-4/+4
|
* Allow repoman to commit files, which have changes only in SVN properties.Arfrever Frehtes Taifersar Arahesis2010-10-231-2/+2
|
* Recognize += in RDEPEND.implicit check.Zac Medico2010-10-101-1/+1
| | | | Thanks to Tomas Chvatal <scarabeus@g.o> for reporting.
* repoman: Add "x-modular": "xorg-2" to InheritDeprecated check as requested ↵Sebastian Luther2010-09-091-1/+2
| | | | by scarabeus (bug 326747, comment 6)
* Fix parse_metadata_use() to allow use elements containing no flagZac Medico2010-09-061-1/+2
| | | | | elements since the DTD allows it. Thanks to Mark Loeser <Halcy0n@g.o> for reporting.
* Bug #335670 - Make copyright header in herdbase.py refer to "GPL 2 or later"Zac Medico2010-09-021-1/+1
| | | | instead of just GPL-2.
* Remove unused imports found by pylint.Arfrever Frehtes Taifersar Arahesis2010-08-291-1/+0
|
* Support returning multiple flag descriptions when restrict is used.Michał Górny2010-08-271-8/+6
| | | | | | | Return a dict of dicts in parse_metadata_use(), with second-level keys being the restrict strings (or None when no restrict). When generating use.local.desc, use the description from the possibly-highest-matching atom.
* Various parse_metadata_use() fixes:Zac Medico2010-08-261-25/+35
| | | | | | | * Allow empty descriptions (backward compatibility). * Support multiple 'use' elements. * If multiple 'flag' elements have the same name attribute, use the first occurance.
* Make parse_metadata_use() tolerate empty flag descriptions.Zac Medico2010-08-261-8/+1
|
* Make parse_metadata_use() emulate the Element.itertext() method fromZac Medico2010-08-261-3/+19
| | | | | python-2.7, so egencache --update-use-local-desc gets all of the inner text.
* Fix up error handling for egencache --update-use-local-desc.Zac Medico2010-08-261-2/+6
|