aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* glsa-check: add --reverse option (bug 235970)Zac Medico2019-09-011-2/+3
| | | | | | | | | Add --reverse option which causes GLSAs to be listed in reverse order, so that the most recent GLSAs are listed earlier. Suggested-by: Pavel Sanda <ps@twin.jikos.cz> Bug: https://bugs.gentoo.org/235970 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: fix truncated CVE ids in listmode (bug 692134)Zac Medico2019-09-011-2/+9
| | | | | | | | | | Use a regular expression to search for CVE ids in GLSA references. Import unicode_literals from __future__ since portage's Glsa class returns unicode strings for all python versions. Reported-by: Georg Weiss <gentoo@georgweiss.de> Bug: https://bugs.gentoo.org/692134 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: add exit code for affected GLSAsAaron Bauman2019-08-301-0/+1
| | | | | | | | Bug: https://bugs.gentoo.org/587930 Reported-by: Bandie Yip Kojote <bandie@ttygap.net> Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Remove 'new' target from glsa-listZac Medico2019-08-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=8190a7299a618e0ce120fe1c894b944075576342 commit 8190a7299a618e0ce120fe1c894b944075576342 Author: rbu <rbu@gentoo.org> AuthorDate: 2009-08-18 18:25:59 +0000 Commit: rbu <rbu@gentoo.org> CommitDate: 2009-08-18 18:25:59 +0000 Remove 'new' target from glsa-list Everyone should use 'affected' or 'all' Update man page and changelog svn path=/trunk/gentoolkit/; revision=672 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Make --pretend output nicerZac Medico2019-08-301-5/+15
| | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=72ba7b1274faf37451b1641ee51140f53f4b7098 commit 72ba7b1274faf37451b1641ee51140f53f4b7098 Author: rbu <rbu@gentoo.org> AuthorDate: 2009-08-18 17:47:20 +0000 Commit: rbu <rbu@gentoo.org> CommitDate: 2009-08-18 17:47:20 +0000 Make --pretend output in glsa-check nicer. Add colors and fix linebreaks. svn path=/trunk/gentoolkit/; revision=670 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Fix traceback with glsa-check -f (Bug 275105)Zac Medico2019-08-301-2/+2
| | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=232d69fa230abb490e0b0f8eef550f28745be6a3 commit 232d69fa230abb490e0b0f8eef550f28745be6a3 Author: fuzzyray <fuzzyray@gentoo.org> AuthorDate: 2009-06-22 20:45:49 +0000 Commit: fuzzyray <fuzzyray@gentoo.org> CommitDate: 2009-06-22 20:45:49 +0000 Fix traceback with glsa-check -f (Bug 275105) svn path=/trunk/gentoolkit/; revision=665 Bug: https://bugs.gentoo.org/693088 Acked-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Hide non-vuln glsas in quiet modeZac Medico2019-08-291-4/+12
| | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=d3e4aad5a03efbd5089f96558d2ddd1e9bf158a8 commit d3e4aad5a03efbd5089f96558d2ddd1e9bf158a8 Author: vapier <vapier@gentoo.org> AuthorDate: 2010-03-07 01:37:57 +0000 Commit: vapier <vapier@gentoo.org> CommitDate: 2010-03-07 01:37:57 +0000 glsa-check: hide non-vuln glsas in quiet mode svn path=/trunk/gentoolkit/; revision=750 Bug: https://bugs.gentoo.org/692872 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check: Add --quiet optionZac Medico2019-08-291-6/+11
| | | | | | | | | | | | | | | | | | | | | | | This patch is a forward port of the following commit: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=cd5a8e80f949f649b6d2b174bc899f1f092684fd commit cd5a8e80f949f649b6d2b174bc899f1f092684fd Author: fuzzyray <fuzzyray@gentoo.org> AuthorDate: 2009-05-07 22:15:50 +0000 Commit: fuzzyray <fuzzyray@gentoo.org> CommitDate: 2009-05-07 22:15:50 +0000 Add patch from Robert Buchholz: Add quiet option Incorporate option to quiet down glsa-check, based on a patch by Thilo Bangert <bangert@gentoo.org> in bug #170784. This option will also suppress sending of empty mail, based on a patch by Christian Gut <cycloon@is-root.org> in bug #182990. svn path=/trunk/gentoolkit/; revision=633 Bug: https://bugs.gentoo.org/692872 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* bin/glsa-check: align help menu with the man page updatesAaron Bauman2019-08-261-14/+13
| | | | | | | | | * This simply aligns the help menu text with the man page * Update copyright * Bump version to 1.0.1 Signed-off-by: Aaron Bauman <bman@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Rename pym→lib, for better distutils-r1 interoperabilityMichał Górny2018-07-181-1/+1
| | | | Closes: https://github.com/gentoo/portage/pull/343
* glsa-check: Apply list only affected versions patch from bug 400763Paul Varner2017-01-181-4/+11
| | | | | | Author: Roland Hopferwieser <gentoo@int0x80.at> X-Gentoo-bug: 400763 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=400763
* glsa-check: Fix some pylint complainsChristian Ruppert2017-01-171-2/+2
|
* _argparse: punt the moduleMike Frysinger2015-10-291-2/+2
| | | | | Since we don't support python 2.6 anymore, there's no need to wrap argparse, so switch all the users to the standard library for it.
* Update sys.path in scripts only when using not installed instance of Portage.Arfrever Frehtes Taifersar Arahesis2014-09-201-2/+2
| | | | | Modules of installed instance of Portage are now placed in standard location, which is included in default sys.path.
* Use -b instead of -bb.Arfrever Frehtes Taifersar Arahesis2014-01-231-1/+1
| | | | (-bb can trigger errors, depending on Python version and environment.)
* Enable BytesWarnings.Arfrever Frehtes Taifersar Arahesis2014-01-181-3/+3
|
* glsa-check: portage.util._argparseZac Medico2013-08-021-31/+30
|
* glsa-check: explicit imports, fix glsaconfig refZac Medico2013-01-181-3/+4
|
* Fix unicode vs. bytes issue in glsa-check (#341293)Andy Kittner2013-01-181-7/+10
| | | | 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-0/+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
* Do not inject GLSAs into the checkfile when fixing themPaul Varner2013-01-181-4/+3
| | | | | | | | | | | | | | | | | | | | | 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-37/+35
| | | | | | | | | | 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-0/+10
| | | | | | | | | | | | 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
* Handle unicode encoding when dumping to stdout and start migration to using ↵Paul Varner2013-01-181-1/+4
| | | | | | | | StringIO svn path=/trunk/gentoolkit/; revision=645 http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=88c18ffe936e602c45dcaa7500961623c49697ca
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-1/+2
|
* strip trailing whitespaceMike Frysinger2012-11-221-7/+7
| | | | | | No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* glsa: account for EAPI 5 sub-slot in SLOTZac Medico2012-10-171-1/+1
|
* Unconditionally insert our pym dir in sys.path.Zac Medico2012-09-021-8/+5
| | | | | This is especially necessary when running in prefix mode, since sys.path may contain the path for a different version of portage.
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-2/+3
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-2/+2
|
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use cpv_getkey() instead of dep_getkey() where appropriate.Zac Medico2010-02-091-3/+3
| | | | svn path=/main/trunk/; revision=15329
* Replace doct.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-2/+2
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14379
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Update system imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | svn path=/main/trunk/; revision=14294
* Support print() function with Python 2 in some files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+2
| | | | svn path=/main/trunk/; revision=14291
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-5/+5
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-1/+1
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Make glsa-check executable.Zac Medico2009-03-041-0/+0
| | | | svn path=/main/trunk/; revision=12748
* Fix headers that contain $Header instead of $Id.Zac Medico2009-02-231-3/+3
| | | | svn path=/main/trunk/; revision=12701
* Inside summarylist(), it's possible for myglsa.packages.keys() to containZac Medico2009-02-211-1/+1
| | | | | | | | | | | | | unicode objects, which trigger and exception like this: File "//usr/lib64/portage/pym/portage/dep.py", line 535, in __init__ obj_setattr(self, x, getattr(s, x)) AttributeError: 'unicode' object has no attribute '__eq__' To solve this problem, convert unicode objects to plain str before passing them to the portage api. svn path=/main/trunk/; revision=12667
* Bug #230483 - Convert glsa-check option parsing to use the optparse module.Zac Medico2009-02-191-93/+71
| | | | | | | This replaces some code which triggers a traceback from 2to3. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=12634
* use summarylist for output of test mode when --verbose is given (patch by ↵Marius Mauch2008-09-281-5/+5
| | | | | | Robert Buchholz <rbu@gentoo.org>) svn path=/main/trunk/; revision=11592
* sort summarylist output (patch by Robert Buchholz <rbu@gentoo.org>)Marius Mauch2008-09-281-0/+1
| | | | svn path=/main/trunk/; revision=11591
* Py3k compatibility patch #5 by Ali Polatel <hawking@g.o>.Zac Medico2008-07-011-2/+2
| | | | | | Replace dict.has_key() calls with "in" and "not in" operators. svn path=/main/trunk/; revision=10874
* move checkfile parsing into its own functionMarius Mauch2007-11-091-5/+1
| | | | svn path=/main/trunk/; revision=8479
* Move glsa-check from gentoolkit into portage so the gentoolkit version can ↵Marius Mauch2007-11-091-0/+340
be removed after 2.2 is released svn path=/main/trunk/; revision=8478