summaryrefslogtreecommitdiffstats
path: root/bin/repoman
Commit message (Collapse)AuthorAgeFilesLines
* repoman: add 'repository' to portdbapi cacheZac Medico2011-10-071-1/+1
| | | | | | | This fixes _getMaskAtom to work correctly with the repo atoms that are generated by MaskManager, solving the issue reported here: https://github.com/cschwan/sage-on-gentoo/issues/90#issuecomment-2324953
* repoman: tweak myupdates/myheaders commit logicv2.2.0_alpha63Zac Medico2011-10-071-2/+1
| | | | | | | | If we unconditionally exclude myremoved from myupdates, then removed files will also be excluded from myheaders. This allows us to avoid unnecessary separate manifest commits in cases when "myheaders" only contained files that were being removed. Since our code always uses myupdates + myremoved, this change in logic doesn't break anything.
* repoman: tweak commit logic wrt thin-manifestZac Medico2011-10-071-1/+1
| | | | | Don't populate the "myheaders" variable when we have thin-manifests that contain only DIST entries.
* Don't do a split signed Manifest commit when no headers will change. Fixes ↵Nathan Phillip Brink2011-10-071-6/+9
| | | | bug #340475.
* repoman: bail out if unsupported manifest-hashesZac Medico2011-10-031-0/+25
|
* repoman: account for GLEP 59 in RMD160 checkZac Medico2011-10-031-20/+20
|
* repoman: never force unsigned manifest commitv2.2.0_alpha60Zac Medico2011-09-291-33/+0
| | | | | | | | This removes a special case where manifests would first be commited without signatures for category-level or greater commits. This case behavior wasn't very useful anyway, and would be a problem if the unsigned manifests got rejected by a commit hook (as may happen in the near future).
* portdbapi.xmatch: optimize minimum-visibleZac Medico2011-09-241-1/+1
| | | | | | Also, make repoman cache IUSE, since that's required for _match_use to work effciently. This will eliminate lots of redundant aux_get calls for repoman, triggered by USE deps.
* portdbapi.xmatch: deprecate list-visibleZac Medico2011-09-221-1/+1
|
* repoman: quote paths in PORTDIR_OVERLAYZac Medico2011-09-161-1/+2
| | | | This will fix bug #383269.
* Remove unused Manifest imports.v2.2.0_alpha58Zac Medico2011-09-141-1/+0
|
* Fix typos in comments.Arfrever Frehtes Taifersar Arahesis2011-09-141-2/+2
|
* repoman: use repodir moreZac Medico2011-09-141-1/+1
|
* repoman: use the repodir variable moreZac Medico2011-09-141-9/+4
|
* repoman: fix KeyError from digestgen with symlinkZac Medico2011-09-141-0/+7
|
* metadata/layout.conf: "sign-manifests = false"Zac Medico2011-09-121-4/+6
| | | | | | This allows repos to disable manifest signatures, which is useful if they want to prevent merge conflicts like those that thin-manifests is designed to prevent.
* repoman: don't sign thin manifestsZac Medico2011-09-121-3/+9
| | | | | Thin manifests imply reliance on the VCS for file integrity, which implies that manifest signatures are not needed.
* Bind all manifest access through repoconfigsBrian Harring2011-09-121-2/+6
| | | | | This enables controling the behaviour (creation and validation) per repo, and while mildly ugly, refactors in the right direction.
* repoman: fix a typo in the file.executable descZac Medico2011-09-101-1/+1
|
* Fix repoman dependency.unknown to use xmatch.v2.2.0_alpha53Zac Medico2011-09-031-11/+12
| | | | This solves the issues discussed in bug #381087, comment #8.
* repoman: enable dependency.unknown for blockersZac Medico2011-08-301-3/+2
| | | | This will fix bug #381087.
* repoman: add a simple unit testZac Medico2011-08-251-5/+6
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-2/+7
|
* repoman: tweak --if-modified help outputv2.2.0_alpha51Zac Medico2011-08-121-0/+1
|
* repoman: warn when --if-modified finds nothingZac Medico2011-08-121-1/+10
|
* repoman: add --if-modified option to check lessZac Medico2011-08-101-0/+15
| | | | | | This is useful if you want to do a repo-level or category-level commit but you only want to run checks for the packages that have uncommitted modifications.
* 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.
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-5/+5
| | | | | | | | | | | | | | | | | 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: 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.
* 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.
* 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
|
* repoman: pass type_name to Package constructorv2.2.0_alpha35Zac Medico2011-05-231-1/+1
|
* 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.
* 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.
* repoman: cleanup gpgsignv2.2.0_alpha30Zac Medico2011-04-131-12/+23
|
* Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portageArfrever Frehtes Taifersar Arahesis2011-04-031-1/+1
|\
| * repoman: fix profiles.desc overlay pathZac Medico2011-04-031-1/+1
| | | | | | | | | | Thanks to Alexey Shvetsov <alexxy@gentoo.org> for reporting this issue and testing the fix.
* | Support PORTAGE_GPG_SIGNING_COMMAND variable.Arfrever Frehtes Taifersar Arahesis2011-04-031-12/+15
|/
* Minor improvements in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-03-311-5/+4
| | | | repoman_settings["PORTAGE_GPG_DIR"] is always set.
* Simplify calculation of repoman_settings["PORTAGE_GPG_DIR"] in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-03-301-5/+2
| | | | os.path.expanduser() works even when HOME environment variable is not set.
* Use os.path.expanduser() to simplify code.Arfrever Frehtes Taifersar Arahesis2011-03-301-4/+1
|
* repoman: add back portage.internal checkZac Medico2011-02-251-0/+2
| | | | | | 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).
* Recognize git-2.eclass as a live eclass.Zac Medico2011-02-141-0/+1
|
* repoman: add check for using offset vars with helpersFabian Groffen2011-01-301-0/+1
| | | | | | | 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).
* When killed by signal, return 128 + signum.Zac Medico2011-01-151-3/+5
| | | | | This is the same convention that bash uses for returncodes of processes that are killed by signals.
* repoman: ignore deprecated profiles.desc entriesZac Medico2010-12-181-0/+3
|
* repoman: handle ElementTree.ParseErrorZac Medico2010-12-171-1/+1
|