Changeset 112


Ignore:
Timestamp:
07/12/07 09:59:02 (17 years ago)
Author:
kdeugau
Message:

/trunk

Add handling for AutoReq/AutoReqProv.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r111 r112  
    6464# Initialized globals
    6565my $verbosity = 0;
     66my $NoAutoReq = 0;
    6667my %cmdopts = (type => '',
    6768                stage => 'a',
     
    843844      } elsif (/^conflicts:\s+(.+)/i) {
    844845        $pkgdata{main}{conflicts} .= ", $1";
     846      } elsif (/^autoreq(?:prov)?:\s+(.+)/i) {
     847        # we don't handle auto-provides (yet)
     848        $NoAutoReq = 1 if $1 =~ /(?:no|0)/i;
    845849      }
    846850      next LINE;
     
    990994    # comma and space here (if needed) in case there were "Requires" specified
    991995    # in the spec file - those would precede these.
    992     $pkgdata{$pkg}{requires} .= getreqs("$buildroot/$pkg");
     996    $pkgdata{$pkg}{requires} .= getreqs("$buildroot/$pkg") if ! $NoAutoReq;
    993997
    994998    # magic needed to properly version dependencies...
Note: See TracChangeset for help on using the changeset viewer.