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

[Git][ftp-team/dak][master] 2 commits: dakweb source queries: include component



Title: GitLab

Joerg Jaspert pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • dakweb/queries/source.py
    ... ... @@ -83,6 +83,7 @@ def file_in_archive(filepattern=None):
    83 83
         @return: Dictionaries made out of
    
    84 84
                  - filename
    
    85 85
                  - sha256sum
    
    86
    +             - component
    
    86 87
         """
    
    87 88
         if filepattern is None:
    
    88 89
             return bottle.HTTPError(503, 'Filepattern not specified.')
    
    ... ... @@ -94,6 +95,7 @@ def file_in_archive(filepattern=None):
    94 95
     
    
    95 96
         for p in q:
    
    96 97
             ret.append({'filename':  p.filename,
    
    98
    +                    'component': p.component.component_name,
    
    97 99
                         'sha256sum': p.sha256sum})
    
    98 100
     
    
    99 101
         s.close()
    
    ... ... @@ -117,6 +119,7 @@ def sha256sum_in_archive(sha256sum=None):
    117 119
         @return: Dictionaries made out of
    
    118 120
                  - filename
    
    119 121
                  - sha256sum
    
    122
    +             - component
    
    120 123
         """
    
    121 124
         if sha256sum is None:
    
    122 125
             return bottle.HTTPError(503, 'sha256sum not specified.')
    
    ... ... @@ -128,6 +131,7 @@ def sha256sum_in_archive(sha256sum=None):
    128 131
     
    
    129 132
         for p in q:
    
    130 133
             ret.append({'filename':  p.filename,
    
    134
    +                    'component': p.component.component_name,
    
    131 135
                         'sha256sum': p.sha256sum})
    
    132 136
     
    
    133 137
         s.close()
    


  • Reply to: