[bcfg2/plugins/debautopkg] plugin pour avoir tous les paquets en version="auto"
darcs-hash:20081209204954-af139-bad1de27fbbb79b824397210602505741380c884.gz
This commit is contained in:
parent
46a3fe877a
commit
e9be7f04af
1 changed files with 26 additions and 0 deletions
26
bcfg2/plugins/DebAutoPkg.py
Normal file
26
bcfg2/plugins/DebAutoPkg.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
#
|
||||
# DebAutoPkg.py
|
||||
# -------------
|
||||
# Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
|
||||
# Licence : BSD3
|
||||
|
||||
'''Plugin fournissant une régle par défault pour les paquets'''
|
||||
|
||||
__all__ = ["DebAutoPkg"]
|
||||
|
||||
import Bcfg2.Server.Plugin
|
||||
|
||||
class DebAutoPkg(Bcfg2.Server.Plugin.GeneratorPlugin):
|
||||
__name__ = 'Python'
|
||||
__version__ = '1.0'
|
||||
__author__ = 'dimino@crans.org'
|
||||
|
||||
def HandlesEntry(self, entry):
|
||||
# Ce plugin fournit une règle pour toute entrée de type
|
||||
# "Package"
|
||||
return entry.tag == 'Package'
|
||||
|
||||
def HandleEntry(self, entry, metadata):
|
||||
entry.attrib['version'] = 'auto'
|
||||
entry.attrib['type'] = 'deb'
|
Loading…
Add table
Add a link
Reference in a new issue