aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename pym→lib, for better distutils-r1 interoperabilityMichał Górny2018-07-181-726/+0
| | | | Closes: https://github.com/gentoo/portage/pull/343
* Fix Python 3.6 "DeprecationWarning: invalid escape sequence" warnings (bug ↵Arfrever Frehtes Taifersar Arahesis2017-01-311-2/+2
| | | | | | | 607418) X-Gentoo-Bug: 607418 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=607418
* Properly retrieve the count attribute and adjust logic to properly support ↵Aaron Bauman2017-01-191-2/+2
| | | | | | | both GLSA formats X-Gentoo-Bug: 605612 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=605612
* glsa: Separate "Vulnerable" and "Unaffected" by comma/spaceChristian Ruppert2017-01-171-2/+2
|
* Fix crash with @security (bug 488820)Sebastian Luther2014-04-051-0/+1
|
* Update dates in recently changed files.Arfrever Frehtes Taifersar Arahesis2014-02-051-1/+1
|
* various pylint clean upsMike Frysinger2014-02-031-1/+1
| | | | Hopefully should be no functional changes here.
* glsa.py: fix misc breakageZac Medico2013-01-181-2/+3
|
* Fix unicode vs. bytes issue in glsa-check (#341293)Andy Kittner2013-01-181-0/+1
| | | | http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=01d40ffed91033119bae05dac5c9cea86b94aa2e
* sync with genscripts rev 343. This adds the initial py3k support and the ↵Paul Varner2013-01-181-6/+7
| | | | | | | | analyse utility to gentoolkit svn path=/trunk/gentoolkit/; revision=751 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2f90a4b9ceff920f793541376da21d313af083d9
* Merge rev 113 from djanderson's genscripts repoPaul Varner2013-01-181-74/+68
| | | | | | svn path=/trunk/gentoolkit/; revision=703 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=acdf616efa73b77936963eaa8b5c715db97646d2
* getminupgrade: fix documentation and backtraceRobert Buchholz2013-01-181-16/+22
| | | | | | | | | | | | | Bug 281101: Fix a backtrace introduced in r647. in getminupgrade the rValue variable was still leftover and was used in a check when glsa-check was run in --emergelike mode and more than one upgrade atoms existed. Also, update the API documentation to reflect changes back then. svn path=/trunk/gentoolkit/; revision=671 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2419943820ac8fb90bdf9bb5d2064a6ccdfec804
* Do not inject GLSAs into the checkfile when fixing themPaul Varner2013-01-181-9/+12
| | | | | | | | | | | | | | | | | | | | | There is no reason applied GLSAs must be stored in a checkfile. In the current glsa-check GUI this will make it impossible to determine whether the system is still affected by the GLSA (e.g. by re-emerging, or when a GLSA is changed afterwards). The current place for the checkfile (/var/cache) is not persistent per FHS, meaning that people might clean out the contents of their injected GLSAs. Since glsa.py is moving to portage anyway, we can use /var/lib/portage as a place to store the injected GLSAs. Documentation has been updated accordingly. Note that the old checkfile should not be moved to the previous location on upgrade since this will cause false negatives due to the above arguments. A message should appear on upgrade (pkg_postinst or similar). svn path=/trunk/gentoolkit/; revision=649 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4138f5b1b6dbcf1042663a45b3eae1e652bfc9be
* Restructure system affection detection.Paul Varner2013-01-181-22/+39
| | | | | | | | | | Store "vulnerable" and "upgrade" packages in a table, and use that data to determine which packages cannot be upgraded, and which packages actually cause upgrades svn path=/trunk/gentoolkit/; revision=648 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=b6a2a23926d54ccfa9a1ce331c1bc97dbe2c73d1
* Change behaviour of getMinUpgradePaul Varner2013-01-181-7/+8
| | | | | | | | | | | | This allows to differentiate between situations where the system is unaffected and unexistance of an upgrade path. Previously, the glsa-check would treat GLSAs that had no upgrade path (such as mask glsas) as not affecting the system. svn path=/trunk/gentoolkit/; revision=647 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ef38a394c5c2f5901173a53914705730850f9b3f
* Some python tweaks to speed glsa-checkPaul Varner2013-01-181-25/+12
| | | | | | svn path=/trunk/gentoolkit/; revision=646 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=10e55d71bd5914fc7c9082adadf7bde2bec14ae3
* Handle unicode encoding when dumping to stdout and start migration to using ↵Paul Varner2013-01-181-19/+31
| | | | | | | | StringIO svn path=/trunk/gentoolkit/; revision=645 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=88c18ffe936e602c45dcaa7500961623c49697ca
* glsa: account for EAPI 5 sub-slot in SLOTZac Medico2012-10-171-1/+1
|
* glsa.py: use try/finally for urlopenZac Medico2012-10-171-1/+6
| | | | | | Fixes this error reported with python 2.7.3: AttributeError: addinfourl instance has no attribute '__exit__'
* glsa.py: python3: ResourceWarning: unclosed fileZac Medico2012-09-011-1/+2
|
* Revert "Bug #413983: Add portage.util.urlopen(), which transparently handles ↵Zac Medico2012-05-131-2/+6
| | | | | | | authentication in the way compatible with Python 3." This reverts commit 0a9cc38a66ded0cf0e5b534cb24b970fc9c21920. As reported in bug #415579, that commit broke FTP authentication.
* glsa: use _pkg_str + vercmp, not pkgcmpZac Medico2012-05-131-8/+5
|
* Bug #413983: Add portage.util.urlopen(), which transparentlyArfrever Frehtes Taifersar Arahesis2012-05-011-7/+3
| | | | handles authentication in the way compatible with Python 3.
* Replace @returns with @return.Zac Medico2012-03-271-4/+4
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-4/+4
| | | | | | | | | | | | | | | | | 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.
* Bug #339231 - Return unicode from glsa.getText().Zac Medico2010-09-301-1/+1
|
* reposyntax: Add support all over the placeSebastian Luther2010-09-261-2/+3
|
* Force absolute import in glsa.py since otherwise the xml.dom.minidomZac Medico2010-09-061-1/+3
| | | | import tries to use the new portage.xml module.
* Remove redundant initial os.sep argument to os.path.join() callsZac Medico2010-09-051-2/+2
| | | | involving EROOT.
* use EROOT with CACHE_PATHFabian Groffen2010-09-041-2/+2
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Don't import the portage.dbapi.dbapi class as portage.dbapi anymore, sinceZac Medico2010-02-221-3/+3
| | | | | | | | it results in a strange namespace collision (portage.dbapi is both a class and a module). Hopefully this won't break any api consumers since it's a pure virtual class anyway. svn path=/main/trunk/; revision=15420
* Make Glsa constructor raise GlsaFormatException when a package name attributeZac Medico2010-02-091-0/+8
| | | | | | is invalid. svn path=/main/trunk/; revision=15328
* Use 'in' instead of has_key() in portage.glsa.Glsa.parse() when Python 3 is ↵Arfrever Frehtes Taifersar Arahesis2009-09-251-1/+2
| | | | | | used. svn path=/main/trunk/; revision=14422
* Replace dict.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-3/+3
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14385
* Update system imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+5
| | | | svn path=/main/trunk/; revision=14294
* Use _unicode_decode() on the string returned from time.strftime(), in orderZac Medico2009-09-051-1/+2
| | | | | | | to avoid a potential UnicodeDecodeError later. Thanks to Markus Duft <mduft@gentoo.org> for reporting. svn path=/main/trunk/; revision=14201
* consistently use CACHE_PATH with target_root, this commit needs a separate ↵Fabian Groffen2009-09-051-2/+2
| | | | | | soon to be done commit of pym/portage/const.py to work correctly svn path=/main/trunk/; revision=14188
* Use portage.os and _encodings where appropriate.Zac Medico2009-08-191-2/+12
| | | | svn path=/main/trunk/; revision=14094
* Prepare 308 messages to localization.Arfrever Frehtes Taifersar Arahesis2009-08-151-19/+20
| | | | svn path=/main/trunk/; revision=14067
* Fix apparent breakage from r11593 (slot dep support):Zac Medico2008-10-081-6/+22
| | | | | | | | * Handle KeyError from element.getAttribute() in makeAtom() and makeVersion(). * Avoid 'sre_constants.error: unmatched group' exceptions in revisionMatch() when the atom does not have a slot. svn path=/main/trunk/; revision=11659
* add support for slot dependencies (original patch by Robert Buchholz ↵Marius Mauch2008-09-281-3/+8
| | | | | | <rbu@gentoo.org>) svn path=/main/trunk/; revision=11593
* sort summarylist output (patch by Robert Buchholz <rbu@gentoo.org>)Marius Mauch2008-09-281-1/+1
| | | | svn path=/main/trunk/; revision=11591
* print dates in a consistent format (patch by Robert Buchholz <rbu@gentoo.org>)Marius Mauch2008-09-281-1/+29
| | | | svn path=/main/trunk/; revision=11590
* also accept glsa-2.dtd as valid for GLSAs (patch by Robert Buchholz ↵Marius Mauch2008-09-281-1/+5
| | | | | | <rbu@gentoo.org>) svn path=/main/trunk/; revision=11589
* account for DTD changes wrt 'revised' element (patch by Robert Buchholz ↵Marius Mauch2008-09-281-2/+18
| | | | | | <rbu@gentoo.org>) svn path=/main/trunk/; revision=11588
* Py3k compatibility patch #1 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-011-3/+3
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators.. svn path=/main/trunk/; revision=10870
* move checkfile parsing into its own functionMarius Mauch2007-11-091-2/+13
| | | | svn path=/main/trunk/; revision=8479
* revert getMergeList to return CPVs again instead of atomsMarius Mauch2007-11-091-1/+1
| | | | svn path=/main/trunk/; revision=8477
* copy of gentoolkit r451Marius Mauch2007-10-051-1/+1
| | | | svn path=/main/trunk/; revision=7946