diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-11-01 00:07:28 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-02-26 13:38:15 +0100 |
commit | e6e1f42847878c7abf0f4e454f84e510fe96f688 (patch) | |
tree | 4dc0d02f914684be30e56177b18c3365928b9f11 | |
parent | d4e45079dbe7a394ee5b862490a08f8909442144 (diff) | |
download | bcfg2-e6e1f42847878c7abf0f4e454f84e510fe96f688.tar.gz bcfg2-e6e1f42847878c7abf0f4e454f84e510fe96f688.tar.bz2 bcfg2-e6e1f42847878c7abf0f4e454f84e510fe96f688.zip |
Packages: add name to sources
-rw-r--r-- | schemas/packages.xsd | 9 | ||||
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Source.py | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/schemas/packages.xsd b/schemas/packages.xsd index 0fd3f6647..be8595fe2 100644 --- a/schemas/packages.xsd +++ b/schemas/packages.xsd @@ -221,6 +221,15 @@ </xsd:documentation> </xsd:annotation> </xsd:attribute> + <xsd:attribute type="xsd:string" name="name"> + <xsd:annotation> + <xsd:documentation> + The name of the source to refer to that specify source + for specific packages. It could be used like pinning under + debian. + </xsd:documentation> + </xsd:annotation> + </xsd:attribute> </xsd:complexType> <xsd:complexType name="PackagesGroupType"> diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py index 01f2a732f..cbe45148b 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py @@ -212,6 +212,9 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902 #: The "priority" attribute from :attr:`xsource` self.priority = xsource.get('priority', 500) + #: The "name" attribute from :attr:`xsource` + self.name = xsource.get('name', '') + #: A list of predicates that are used to determine if this #: source applies to a given #: :class:`Bcfg2.Server.Plugins.Metadata.ClientMetadata` |