Permalink
Browse files

Ensure Depends is nto used in plugin control files.

  • Loading branch information...
bzed committed Feb 27, 2012
1 parent 65d87a1 commit 573abd8c346bcffa132f10316c906f76a16d7a9e
Showing with 5 additions and 3 deletions.
  1. +1 −1 debian/control.in
  2. +4 −2 debian/packaging-helper.py
View
@@ -10,7 +10,7 @@ Vcs-Browser: http://git.debian.org/?p=pkg-nagios/pkg-nagios-plugins-contrib;a=su
Package: nagios-plugins-contrib
Architecture: any
-Depends: ${misc:Depends}, #AUTO_UPDATE_Depends#
+Depends: ${misc:Depends}
Recommends: ${shlibs:Depends}, #AUTO_UPDATE_Recommends#
Suggests: #AUTO_UPDATE_Suggests#
Description: Plugins for nagios compatible monitoring systems
@@ -24,7 +24,6 @@ def __get_control_data__():
def update_control():
control_data = {
- 'Depends' : [],
'Suggests' : [],
'Recommends' : [],
'Build-Depends' : [],
@@ -34,7 +33,10 @@ def update_control():
for plugin, _control in __get_control_data__():
# look trough keys we might want to merge
- for key in ['Depends', 'Build-Depends', 'Suggests', 'Recommends']:
+ if _control.has_key('Depends'):
+ print "Don't use 'Depends' in %s/control - use 'Recommends' instead" %(plugin,)
+ sys.exit(1)
+ for key in ['Build-Depends', 'Suggests', 'Recommends']:
if _control.has_key(key):
for rel in deb822.PkgRelation.parse_relations(_control[key]):
if not rel in control_data[key]:

0 comments on commit 573abd8

Please sign in to comment.