~james-w/click-reviewers-tools/drop-name-check

« back to all changes in this revision

Viewing changes to clickreviews/cr_lint.py

  • Committer: Jamie Strandboge
  • Date: 2015-04-10 16:22:20 UTC
  • Revision ID: jamie@ubuntu.com-20150410162220-q1zx6h5nh68elzwx
check_package_filename() store downloads packages with _all instead of
_multi. Account for that. We may want to remove this check entirely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
794
794
            else:
795
795
                arch = tmp[2].partition('.click')[0]
796
796
            if arch != self.click_arch:
797
 
                t = 'error'
798
 
                s = "'%s' != '%s' from DEBIAN/control" % (arch,
799
 
                                                          self.click_arch)
 
797
                if arch == 'all' and self.click_arch == 'multi':
 
798
                    # The store creates filenames for fat packages with _all
 
799
                    pass
 
800
                else:
 
801
                    t = 'error'
 
802
                    s = "'%s' != '%s' from DEBIAN/control" % (arch,
 
803
                                                              self.click_arch)
800
804
        else:
801
805
            t = 'warn'
802
806
            s = "could not determine architecture from '%s'" % \