summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Packages.py
Commit message (Collapse)AuthorAgeFilesLines
* Packages: pylint fixesNarayan Desai2009-09-241-41/+63
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5460 ce84e21b-d406-0410-9b95-82705330c041
* Packages: immediately add dependencies for packages added as single-choice ↵Narayan Desai2009-09-241-1/+10
| | | | | | virtual deps (Resolves Ticket #745) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5459 ce84e21b-d406-0410-9b95-82705330c041
* Packages: rework apt dependency choicesNarayan Desai2009-09-231-4/+9
| | | | | | | | | | | | Don't force use of a particular prereq choice. This causes additional unknown entries in package dep resolution, but removes incorrect dependency choice hardwiring. This effect can be mitigated by listing package prereq choices explicitly. Eventually, we should implement apt's choice of last resort algorithm for Packages. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5454 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix infinite loop problem with cyclic deps (Reported by david strauss)Narayan Desai2009-09-231-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5453 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix case where item is completely unknown (hence pset is unset) ↵Narayan Desai2009-09-231-2/+3
| | | | | | (Resolves #743) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5450 ce84e21b-d406-0410-9b95-82705330c041
* Packages: make package alternatives work properly when specified (Resolves ↵Narayan Desai2009-09-221-17/+48
| | | | | | Ticket #738) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5449 ce84e21b-d406-0410-9b95-82705330c041
* Packages: sort auto-added package entriesNarayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5447 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix extra / inclusion in repomd urls (Resolves Ticket #740)Narayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5446 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement config file reloadsNarayan Desai2009-09-181-8/+27
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5444 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement remote cache update callNarayan Desai2009-09-151-0/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5437 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add list of packages and dependencies on clientSol Jerome2009-09-151-2/+2
| | | | | | | | | | | Now that we have Packages, it is useful to be able to determine whether your package was specified directly in your configuration or was added by Packages. This commit allows you to view this information in debug mode on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5434 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve clarity of debug messages (Resolves Ticket #728)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5427 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix typo (Resolves Ticket #726)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5426 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add error message when clients do not match any Packages sources ↵Narayan Desai2009-09-091-0/+3
| | | | | | (Resolves Ticket #723) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5424 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Make Packages handle urls not terminated with /'s properly ↵Narayan Desai2009-09-091-0/+4
| | | | | | (Resolves Ticket #716) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5423 ce84e21b-d406-0410-9b95-82705330c041
* Packages: automatically include placeholder values for version and component ↵Narayan Desai2009-09-091-1/+7
| | | | | | fields of sources git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5422 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Handle file fetch errors (on repo refresh) betterNarayan Desai2009-08-161-2/+7
| | | | | | (reported by m4z) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5407 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix make_non_redundant to work with packages with no depsNarayan Desai2009-08-091-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5401 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement code to determine non-redundant package setNarayan Desai2009-08-011-0/+17
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5398 ce84e21b-d406-0410-9b95-82705330c041
* Packages: pylint fixesNarayan Desai2009-07-161-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5338 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Reverse sorting order for sources, allowing sources to work ↵Narayan Desai2009-07-151-0/+2
| | | | | | similarly to apt-get config. (Resolves Ticket #691) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5329 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Smarten up Yum dep resolverNarayan Desai2009-07-081-10/+13
| | | | | | | | Track all providers of required files; this allows us to use the common framework for multiple providers and gets rid of pathological behavior relating to packaging oddities (in particular, package kdebindings offering /usr/lib64/python2.4 on centos 5.2) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5315 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix YumSource file map pruningNarayan Desai2009-07-071-1/+1
| | | | | | Propertly keep all files that are referenced by any packages in the source. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5309 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix file architecture tagging for YumSources (patch from slack)Narayan Desai2009-06-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5303 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix handling of architectures for RawURL YumSourcesNarayan Desai2009-06-231-17/+23
| | | | | | Add dictionary tracking YumSource architecture mappings for cache files git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5292 ce84e21b-d406-0410-9b95-82705330c041
* Packages: add parse-caching support for YumSourcesNarayan Desai2009-06-191-3/+4
| | | | | | | This commit caches the result of startup parsing, reducing startup time for YumSources. bcfg2-info startup time on my repo was reduced by 60%. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5285 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve YumSource performance dramaticallyNarayan Desai2009-06-181-6/+13
| | | | | | | Track needed file paths so that the contents of all packages do not need to be tracked. This reduces memory consumption ~60% on my test repository (360MB -> 60MB for bcfg2-info). woo! git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5283 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement caching for APTNarayan Desai2009-06-141-26/+60
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5275 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement repomd support for yum sourcesNarayan Desai2009-06-141-16/+45
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5274 ce84e21b-d406-0410-9b95-82705330c041
* Fix Yum URL sourcesNarayan Desai2009-06-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5273 ce84e21b-d406-0410-9b95-82705330c041
* Implement RawURL supportNarayan Desai2009-06-111-7/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5271 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix cases where arch group mappings are unexpectedNarayan Desai2009-05-291-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5265 ce84e21b-d406-0410-9b95-82705330c041
* Send messages to loggerSol Jerome2009-05-291-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5263 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix traceback with missing config.xml (Reported by Jack Neely)Sol Jerome2009-05-291-1/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5262 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Make cache directory creation recursiveSol Jerome2009-05-291-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5261 ce84e21b-d406-0410-9b95-82705330c041
* Packages: improve terseness of resolver debug messagesNarayan Desai2009-05-201-5/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5249 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement dependency resolver debugging (and fix some bugs shown ↵Narayan Desai2009-05-201-7/+18
| | | | | | by it) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5248 ce84e21b-d406-0410-9b95-82705330c041
* Packages: improve error handing (Patch from Tim Laszlo)Narayan Desai2009-04-231-4/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5175 ce84e21b-d406-0410-9b95-82705330c041
* Packages patch from Tim LaszloNarayan Desai2009-04-231-6/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5171 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix ptype error handlingNarayan Desai2009-04-151-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5165 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement proper support for provides targets with multiple providersNarayan Desai2009-04-061-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5153 ce84e21b-d406-0410-9b95-82705330c041
* Fix multi-arch yum sourcesNarayan Desai2009-04-061-2/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5152 ce84e21b-d406-0410-9b95-82705330c041
* fix typoNarayan Desai2009-04-021-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5150 ce84e21b-d406-0410-9b95-82705330c041
* Remove hardcoded group names from plugin body, instead, auto-activate based ↵Narayan Desai2009-04-021-1/+3
| | | | | | on active sources git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5149 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement full yum dep resolver and improve error handlingNarayan Desai2009-03-191-78/+217
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5127 ce84e21b-d406-0410-9b95-82705330c041
* Raise exception when cached files do not existSol Jerome2009-03-091-0/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5116 ce84e21b-d406-0410-9b95-82705330c041
* Packages: handle APT virtual packages properlyNarayan Desai2009-02-051-3/+50
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5065 ce84e21b-d406-0410-9b95-82705330c041
* Packages bug fixNarayan Desai2009-02-021-1/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5054 ce84e21b-d406-0410-9b95-82705330c041
* Create cachedir if it doesn't existSol Jerome2009-01-221-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5038 ce84e21b-d406-0410-9b95-82705330c041
* Packages: only kick in on package entriesNarayan Desai2009-01-211-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5035 ce84e21b-d406-0410-9b95-82705330c041