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

[Git][ftp-team/dak][master] 3 commits: Fix 'Calling get_bugs with positional arguments is deprecated'



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

  • f207d79b
    by Scott Kitterman at 2022-10-19T17:24:52-04:00
    Fix 'Calling get_bugs with positional arguments is deprecated'
    
  • 2064a01f
    by Scott Kitterman at 2022-10-19T18:22:24-04:00
    Make rm.py change do a single query
    
  • c1339922
    by Ansgar at 2022-10-21T01:00:35+02:00
    Merge remote-tracking branch 'origin/merge-requests/264'
    

2 changed files:

Changes:

  • dak/bts_categorize.py
    ... ... @@ -101,7 +101,7 @@ class BugClassifier:
    101 101
             for tags in tagged_bugs.keys():
    
    102 102
                 tagged_bugs_ftp += tagged_bugs[tags]
    
    103 103
     
    
    104
    -        return [bug for bug in bts.get_status(bts.get_bugs("package", "ftp.debian.org"))
    
    104
    +        return [bug for bug in bts.get_status(bts.get_bugs(package="ftp.debian.org"))
    
    105 105
                          if bug.pending == 'pending' and bug.bug_num not in tagged_bugs_ftp]
    
    106 106
     
    
    107 107
         def classify_bug(self, bug):
    

  • daklib/rm.py
    ... ... @@ -556,7 +556,7 @@ def remove(session, reason, suites, removals,
    556 556
                 Subst_close_other["__BUG_NUMBER_ALSO__"] = ""
    
    557 557
                 Subst_close_other["__SOURCE__"] = source_pkg
    
    558 558
                 merged_bugs = set()
    
    559
    -            other_bugs = bts.get_bugs('src', source_pkg, 'status', 'open', 'status', 'forwarded')
    
    559
    +            other_bugs = bts.get_bugs(src=source_pkg, status=('open', 'forwarded'))
    
    560 560
                 if other_bugs:
    
    561 561
                     for bugno in other_bugs:
    
    562 562
                         if bugno not in merged_bugs:
    


  • Reply to: