summaryrefslogtreecommitdiffstats
path: root/bin/glsa-check
Commit message (Collapse)AuthorAgeFilesLines
* 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