summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages
Commit message (Collapse)AuthorAgeFilesLines
* Plugins/Packages/Pkgng: Ignore unicode errorsAlexander Sulfrian2018-10-181-3/+1
| | | | | | The messages of the packages in the packagesite file may be encoded in any encoding. We only need the dependencies and just ignore the unicode errors.
* Plugins/Packages: Add arbitrary repo options to additional_dataAlexander Sulfrian2018-10-181-0/+2
|
* Add Dummy packages backend and client tool to ignore all packages.Alexander Sulfrian2018-10-182-1/+37
|
* Plugins/Packages/Portage: do not try to update the {var,port}tree instancesAlexander Sulfrian2018-10-181-6/+4
|
* Plugins/Packages/Layman: add support for layman overlaysAlexander Sulfrian2018-10-183-1/+151
| | | | | | In combination with the PortageCollection the Packages plugin could now handle layman overlays. The Portage collection evaluates the dependencies with respect to the configured overlays.
* Plugins/Packages/Portage: add support for per-package flagsAlexander Sulfrian2018-10-181-11/+2
|
* Plugins/PkgVars: support multiple values per packageAlexander Sulfrian2018-10-181-2/+2
| | | | | If multiple values specified for one package all values are joined together in a set.
* Plugins/Packages/Portage: add Packages Plugin for PortageAlexander Sulfrian2018-10-182-1/+337
|
* Plugins/Packages/Collection: add cclass marker for SourcesAlexander Sulfrian2018-10-181-5/+7
| | | | | | | | | | | The classes of Sources could now specify another class for the Collection container. One host could only use one Collection class at a time. So all different Sources have to reference the same Collection. If no "cclass" is defined in the Sources class, the collection class name is generated by striping the "Source" string from the Sources class name like before.
* Packages/Apt: add pin attribute for extra pinning informationAlexander Sulfrian2018-10-181-2/+5
|
* Packages/Apt: add priority to additional_infoAlexander Sulfrian2018-10-181-2/+4
|
* Plugins/PkgVars: new plugin to set various vars per packageAlexander Sulfrian2018-10-183-7/+33
| | | | | | | This plugins allows the setting of varius flags per package. It should be used f.e. to specify pinnings for debian packages or use flags and keywords for gentoo packages (needs to be implemented by future Portage plugin).
* Packages: add priority to sources and sort according to itAlexander Sulfrian2018-10-182-0/+5
|
* Server/Plugin: Move OnDemandDict to helpersAlexander Sulfrian2017-03-211-49/+3
| | | | The OnDemandDict could be used by different plugins.
* Packages: Cleanup pkgnamesAlexander Sulfrian2016-11-173-1/+4
| | | | | | The pkgnames should be reset before parsing the source files. If a package was removed for a source, it should be removed from the pkgnames set, too. The packages plugin should look for the next source containing the package.
* Merge branch 'pacman' of https://github.com/0/bcfg2Sol Jerome2016-09-151-14/+128
|\
| * Packages/Pac: Handle groupsDmitri Iouchtchenko2016-09-121-1/+38
| |
| * Packages/Pac: Parse dependenciesDmitri Iouchtchenko2016-09-121-13/+90
| |
* | Packages: Strip ':any' suffix from APT dependenciesDmitri Iouchtchenko2016-09-081-0/+11
|/
* Add support for rawurl in AptRonak Buch2016-08-171-3/+7
|
* Set value for data in case accept_input is false.Gordon Messmer2016-04-211-1/+2
|
* Bcfg2.Options.Subcommand must not access Options.setup in __init__.Gordon Messmer2016-04-211-8/+14
|
* Only read input if accept_input is True.Gordon Messmer2016-04-211-7/+8
|
* Remove PositionalArgument. It was incomplete and did not work as intended, ↵Gordon Messmer2016-04-211-4/+1
| | | | requiring two positional args instead of one.
* Fix format error in logger call.Gordon Messmer2016-04-211-2/+2
|
* Handle rid intelligently, to avoid infinite loop.Gordon Messmer2016-04-211-5/+2
|
* Merge branch 'maint'Alexander Sulfrian2015-06-122-54/+211
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/FreeBSDInit.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/CherrypyCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/__init__.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Lint/__init__.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/__init__.py src/lib/Bcfg2/Server/Plugins/GroupPatterns.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/lib/Bcfg2/Server/Plugins/SSLCA.py src/lib/Bcfg2/version.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/requirements.txt
| * Merge branch 'fix-yum-packages-traceback' into maintSol Jerome2015-04-281-4/+9
| |\
| | * Yum.py: Add debug log messageSol Jerome2015-04-281-0/+2
| | | | | | | | | | | | | | | | | | | | | Log a message to debug if the package is missing from the host's primary architecture package list (as per Chris's request). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| | * Yum.py: Fix traceback when arch missingSol Jerome2014-11-041-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | Sometimes repositories may not contain packages for a specific architecture group. This handles that case gracefully instead of causing a traceback and failing to bind all Package entries. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * | Yum.py: Compare epoch/version/release separatelySol Jerome2015-03-311-6/+15
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * | Packages/Yum.py: Fix dependency resolution logicSol Jerome2015-03-301-2/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit helps the internal YUM resolver to choose the latest version of a package to generate dependencies. Previously, we were simply iterating through the file so that the last instance listed always won (even if that instance was an older version with differing dependencies). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * | Server/Plugins/Packages: Fix _init_attributes position.Alexander Sulfrian2015-03-251-2/+2
| | | | | | | | | | | | | | | | | | | | | _init_attributes should be called after all properties of the Source class are initialized (so that _init_attributes could overwrite some of it). The Yum class initializes self.deps with a different default entry, that should not be reset by __init__ of Source afterwards.
| * | Plugins/Packages/Source: Remove unused arguments of _init_attributesAlexander Sulfrian2015-01-232-9/+4
| | |
| * | Plugins/Packages: all attributes should be defined in __init__Alexander Sulfrian2015-01-232-53/+81
| | |
| * | Plugins/Packages: fix initialization of YumSourceAlexander Sulfrian2015-01-162-60/+81
| | | | | | | | | | | | | | | | | | | | | During __init__ of the parent class get_repo_name is called. That needs fields (pump_id) that are defined later in the __init__ of YumSource. We introduce the new function _init_attributes to parse all attributes out of the <Source> tag before calling any other functions.
* | | Remove blanket excepts from plugins and lintChris St. Pierre2015-02-187-21/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes most blanket except: clauses from all plugins, including the base plugin libraries, and bcfg2-lint. The few that remain should all be necessary. Most of the changes were quite minor, but this did require some restructuring of the CfgPrivateKeyCreator; as a result, the tests for that module were rewritten.
* | | Pylint fixes for pylint 0.28Chris St. Pierre2015-02-171-2/+2
| | | | | | | | | | | | | | | This also pins Pylint to 0.28 or older so that we don't have to do this again. At some point we should look at upgrading to Pylint 1.x.
* | | Server/Plugin/helpers: remove track_statisticsAlexander Sulfrian2014-12-131-1/+1
| | | | | | | | | | | | Bcfg2.Server.Statistics.track_statistics was identical.
* | | Merge branch 'maint'Alexander Sulfrian2014-11-122-6/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py doc/releases/index.txt doc/server/database.txt doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/sslca.txt man/bcfg2.conf.5 misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile schemas/packages.xsd solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/Action.py src/lib/Bcfg2/Client/Tools/SYSV.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Packages/Apt.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/settings.py src/lib/Bcfg2/version.py testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * | Server/Plugins/Packages: add debsrc attribute to url_mapAlexander Sulfrian2014-11-051-2/+2
| |/ | | | | | | | | Adding this value to the url_map makes it possible to use it in genshi templates.
| * fix keyboard interrupt during intial event handlingAlexander Sulfrian2014-10-261-1/+1
| | | | | | | | | | | | | | This removes some wildcard except handler because this drops some KeyboardInterrupt exceptions (for example previously a KeyboardInterrupt during the loading of the cache for Packages resulted in a fallback to file read).
| * Packages: add name to additional_data for SourcesAlexander Sulfrian2014-10-181-0/+1
| |
| * Packages: add name to sourcesAlexander Sulfrian2014-10-181-2/+10
| |
| * Packages/Apt: Essential could be "no"Alexander Sulfrian2014-07-281-1/+2
| | | | | | | | | | | | The "Essential" field in the package control fields could be "yes" or "no". Only yes sould define the package as essential. The value "no" sould be handled same as not having the field at all.
* | fixed some places where plugin loading should fail silentlyChris St. Pierre2014-11-101-0/+1
| |
* | testsuite: Added unit tests for new option parsingChris St. Pierre2014-11-101-2/+2
| |
* | Packages: enable Pkgng backend by defaultAlexander Sulfrian2014-10-141-1/+2
| |
* | Packages/Pkgng: fix arguments of __init__Alexander Sulfrian2014-10-131-3/+2
| | | | | | | | | | This plugin was developed for 1.3.x and during the transition to master the changed arguments of Collection.__init__ were missed.
* | Packages: Fix pylint testsSol Jerome2014-05-174-6/+9
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>