[Git][ftp-team/dak][master] 2 commits: Log source and version when source not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Git][ftp-team/dak][master] 2 commits: Log source and version when source not found

Ansgar Burchardt-8
GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

  • 831cadf3
    by Ivo De Decker at 2019-08-12T11:34:17Z
    Log source and version when source not found
    
  • 88130c9d
    by Ansgar Burchardt at 2019-08-20T19:22:05Z
    Merge remote-tracking branch 'ivodd/missing-source-log'
    
    See merge request [ftp-team/dak!153]
    
      [ftp-team/dak!153]: https://salsa.debian.org/ftp-team/dak/merge_requests/153
    

1 changed file:

Changes:

  • daklib/archive.py
    ... ... @@ -165,7 +165,8 @@ class ArchiveTransaction(object):
    165 165
                         .filter(Suite.suite_id == source_suites.c.id)
    
    166 166
                 source = source_query.first()
    
    167 167
                 if source is None:
    
    168
    -                raise ArchiveException('{0}: trying to install to {1}, but could not find source'.format(binary.hashed_file.filename, suite.suite_name))
    
    168
    +                raise ArchiveException('{0}: trying to install to {1}, but could not find source ({2} {3})'.
    
    169
    +                    format(binary.hashed_file.filename, suite.suite_name, source_name, source_version))
    
    169 170
                 self.copy_source(source, suite, source.poolfile.component)
    
    170 171
     
    
    171 172
             db_file = self._install_file(directory, binary.hashed_file, suite.archive, component, source_name)