Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure Depends is nto used in plugin control files.

  • Loading branch information...
commit 573abd8c346bcffa132f10316c906f76a16d7a9e 1 parent 65d87a1
@bzed authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  debian/control.in
  2. +4 −2 debian/packaging-helper.py
View
2  debian/control.in
@@ -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
View
6 debian/packaging-helper.py
@@ -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]:
Please sign in to comment.
Something went wrong with that request. Please try again.