[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] use "Priority: optional" instead of "source" for source packages



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

2 changed files:

Changes:

  • dak/check_overrides.py
    ... ... @@ -46,7 +46,7 @@
    46 46
     #   some degree
    
    47 47
     # * consistency checks like:
    
    48 48
     #   - section=debian-installer only for udeb and # dsc
    
    49
    -#   - priority=source iff dsc
    
    49
    +#   - priority=optional if dsc
    
    50 50
     #   - (suite, package, 'dsc') is unique,
    
    51 51
     #   - just as (suite, package, (u)deb) (yes, across components!)
    
    52 52
     #   - sections match their component (each component has an own set of sections,
    
    ... ... @@ -111,7 +111,7 @@ def process(osuite, affected_suites, originosuite, component, otype, session):
    111 111
         type_id = ot.overridetype_id
    
    112 112
         dsc_type_id = get_override_type("dsc", session).overridetype_id
    
    113 113
     
    
    114
    -    source_priority_id = get_priority("source", session).priority_id
    
    114
    +    source_priority_id = get_priority("optional", session).priority_id
    
    115 115
     
    
    116 116
         if otype == "deb" or otype == "udeb":
    
    117 117
             packages = {}
    

  • dak/override.py
    ... ... @@ -139,7 +139,7 @@ def main():
    139 139
                 oldpriority = r[0]
    
    140 140
             else:
    
    141 141
                 oldsourcesection = r[1]
    
    142
    -            oldpriority = 'source'
    
    142
    +            oldpriority = 'optional'
    
    143 143
     
    
    144 144
         if not oldpriority and not oldsourcesection:
    
    145 145
             utils.fubar("Unable to find package %s" % (package))
    
    ... ... @@ -178,9 +178,6 @@ def main():
    178 178
             print("I: Doing nothing")
    
    179 179
             sys.exit(0)
    
    180 180
     
    
    181
    -    if oldpriority == 'source' and newpriority != 'source':
    
    182
    -        utils.fubar("Trying to change priority of a source-only package")
    
    183
    -
    
    184 181
         if Options["Check"]:
    
    185 182
             print("WARNING: Check option is deprecated by Debian Policy 4.0.1")
    
    186 183
     
    


  • Reply to: