[Cdd-commits] r244 - cdd/trunk/cdd
Andreas Tille
debian-custom@lists.debian.org
Sun, 11 Jul 2004 09:54:24 -0600
Author: tille
Date: Sun Jul 11 09:54:24 2004
New Revision: 244
Modified:
cdd/trunk/cdd/cdd-gen-control
Log:
Care for Depends of control file for <cdd>-common
Modified: cdd/trunk/cdd/cdd-gen-control
==============================================================================
--- cdd/trunk/cdd/cdd-gen-control (original)
+++ cdd/trunk/cdd/cdd-gen-control Sun Jul 11 09:54:24 2004
@@ -165,7 +165,22 @@
# if there is a file common/control append this to control file
if ( -s "common/control" && open(COMMON, "common/control") ) {
- while ( <COMMON> ) { print ; }
+ my $dependsflag = 0;
+ while ( <COMMON> ) {
+ if ( m/Depends:/ ) {
+ print "Depends: adduser, debconf (>= 1.2), menu (>= 2.1.14), cdd-common (>= $version)\n" ;
+ $dependsflag = 1;
+ next ;
+ }
+ if ( m/Description:/ ) {
+ if ( $dependsflag == 0 ) {
+ print "Depends: adduser, debconf (>= 1.2), menu (>= 2.1.14), cdd-common (>= $version)\n" ;
+ $dependsflag = 1;
+ next ;
+ }
+ }
+ print ;
+ }
close(COMMON);
}