summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/YUMng.py
Commit message (Collapse)AuthorAgeFilesLines
* YUMng: Sync Joe Digilio's patch over from svnSol Jerome2010-11-021-0/+7
| | | | | | | | | | | | | | Jack Neely's commit message: Add a patch from Joe Digilio to include a verify_flags knob. I've added a line to also load this from the config file, and log in debug mode. Specifying 'verify_flags' with an Instance will override the values from the config file. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: syntax errorTim Laszlo2010-11-021-1/+1
|
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-11-021-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Client Tools: Pylint/PEP8 fixesSol Jerome2010-11-021-39/+50
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* YUMng: correct the __req__Jack Neely2010-09-261-14/+6
| | | | | | | | Catch possible traceback if we are handed an instance not in our list. (This seems to be a bug with duplicate instances.) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6065 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Deal with any possible Yum verify exceptionsJack Neely2010-09-131-1/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6054 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: patch from Tim Laszlo to handle verifying broken symlinksJack Neely2010-09-041-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6049 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: fix bug #931Jack Neely2010-09-041-1/+0
| | | | | | | getinstalledgpg() is an RPMng method and is no longer needed in YUMng. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6047 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix Path type='ignore' traceback (Reported by Thomas Ackermann)Sol Jerome2010-08-301-3/+8
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6046 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: speed improvements, multilib verify bug fixes, configuration knobsJack Neely2010-08-301-43/+97
| | | | | | | | | | | The pkg_checks, pkg_verify, installed_action, version_fail_action, and verify_fail_action configuration knobs are all wired back up. Caching implemented to help speed up the package verify routine. Work arounds for Yum bug: http://yum.baseurl.org/ticket/573 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6045 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Speed improvements, Enable reinstallsJack Neely2010-08-271-17/+107
| | | | | | | | | | | | We no longer use RPMng in YUMng. This improves speed by not calling prelink as yum takes care of that for us. Yum can do reinstalls on package verify fail so lets wire that up. Not all the knobs in /etc/bcfg2.conf are hooked up yet. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6035 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: All gpg-pubkey must be in the proper work queue to be installed.Jack Neely2010-08-181-7/+10
| | | | | | | | | | gpg-pubkeys are not packages, yet we treat them as so. They require special handling for all install/upgrades/etc. This corrects a condition where gpg-pubkeys were "upgraded" rather than "installed." git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6027 ce84e21b-d406-0410-9b95-82705330c041
* YUMng.py: correct undefined variableJack Neely2010-08-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6026 ce84e21b-d406-0410-9b95-82705330c041
* YUMng display classes, always compare string versions of packages.Jack Neely2010-08-181-2/+2
| | | | | | | | The package object here can be either a yum PO or a string. Comparing strings to POs tracebacks. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6025 ce84e21b-d406-0410-9b95-82705330c041
* Display classes for the YUMng driverJack Neely2010-08-141-3/+57
| | | | | | | | | These callback classes pipe Yum's and RPM's logging output into our own logger, cut down on verbosity, and allow us to fine tune what logging goes where. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6018 ce84e21b-d406-0410-9b95-82705330c041
* YUMng re-implementation of VerifyPackage using the Yum API.Jack Neely2010-08-111-89/+318
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6008 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Better error handling for installsTim Laszlo2010-07-301-2/+8
| | | | | | | Currently a missing package throws an exception during the install. This traps it and gracefully logs an error. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5993 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix spellingSol Jerome2010-07-191-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5980 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Add basic Yum error handling on loadTim Laszlo2010-07-081-3/+13
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5965 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Use native Yum APITim Laszlo2010-07-081-134/+96
| | | | | | | Patch submitted by Jack Neely. Replaces the Install and Remove methods with code that directly uses the Yum API. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5964 ce84e21b-d406-0410-9b95-82705330c041
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-221-1/+2
| | | | | | | | | | | | We currently have 'important' entries specified only inside the code for various client tools. This provides no room for growing that list outside of adding things to the code itself. With this change, users can now specify important entries via an additional attribute in their info.xml files. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5957 ce84e21b-d406-0410-9b95-82705330c041
* RPMng, YUMng improvements (patch from slack)Narayan Desai2010-06-211-14/+41
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5944 ce84e21b-d406-0410-9b95-82705330c041
* Add /etc/yum.repos.d to the important list for YUMngTim Laszlo2010-06-141-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5929 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-071-7/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Add support for Path type='ignore' entriesSol Jerome2010-04-301-1/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5851 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: make yumng robust again virtual package specs (patch from slack)Narayan Desai2010-04-301-7/+26
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5849 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix list comprehension traceback (Reported by Jonathan Billings) [bugfix]Sol Jerome2010-04-291-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5844 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: preinstall /etc/yum.d/*Narayan Desai2010-04-081-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5808 ce84e21b-d406-0410-9b95-82705330c041
* Code cleanupsSol Jerome2009-12-301-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5648 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: remove call to yum api that breaks plugin use (Resolves Ticket #765)Narayan Desai2009-10-301-2/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5517 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: pass through verify flags for multi-instance packagesNarayan Desai2009-10-241-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5498 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: simplify codepaths for debug modeNarayan Desai2009-10-211-4/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5489 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix bulk package removal backtrace (Resolves Ticket #749)Narayan Desai2009-09-281-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5467 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix spelling error (Reported by David Strauss)Sol Jerome2009-09-141-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5431 ce84e21b-d406-0410-9b95-82705330c041
* SYSV: Fix noask use (Patch via HCoyote)Narayan Desai2009-08-211-4/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5413 ce84e21b-d406-0410-9b95-82705330c041
* Client tools: Remove unnecessary extra whitespaceSol Jerome2009-08-161-8/+8
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5408 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Unify yum pkg specifier creation code (and fix issue reported by ↵Narayan Desai2009-08-141-45/+19
| | | | | | drtns on irc) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5406 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: skip unbound gpg key packagesNarayan Desai2009-07-291-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5393 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: fix removal traceback for gpg-pubkey packages (Resolves Ticket #693)Narayan Desai2009-07-211-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5373 ce84e21b-d406-0410-9b95-82705330c041
* Fix yum api use for centos 4 compatibility (Resolves Ticket #670)Narayan Desai2009-06-051-6/+20
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5268 ce84e21b-d406-0410-9b95-82705330c041
* Add back python 2.3 fixes for {RPM,YUM}ngSol Jerome2009-05-271-0/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5258 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix for RHEL5 (patch from Tim Lazlo)Narayan Desai2009-05-061-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5185 ce84e21b-d406-0410-9b95-82705330c041
* Python 2to3 updates for the Client toolsSol Jerome2009-04-241-9/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5178 ce84e21b-d406-0410-9b95-82705330c041
* Fix YUMng -r behaviorNarayan Desai2009-04-131-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5159 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix version=auto for epoch-sensitive packagesNarayan Desai2009-04-061-4/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5151 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Switch to yum lib calls instead of parsing command output (thanks to ↵Narayan Desai2009-03-191-19/+11
| | | | | | Seth for pointers) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5130 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: implement version=auto/any supportNarayan Desai2009-03-131-13/+69
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5118 ce84e21b-d406-0410-9b95-82705330c041
* pylint fixes for client codeNarayan Desai2008-12-081-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4991 ce84e21b-d406-0410-9b95-82705330c041
* Remove validation states from Tool instances (in preparation for ↵Narayan Desai2008-03-171-8/+8
| | | | | | DecisionList stuff) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4423 ce84e21b-d406-0410-9b95-82705330c041
* Fix YUMng extra package display (Resolves Ticket #509) [bugfix]Narayan Desai2007-12-281-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4117 ce84e21b-d406-0410-9b95-82705330c041