~ubuntu-langpack/langpack-o-matic/main

« back to all changes in this revision

Viewing changes to test/import

  • Committer: Martin Pitt
  • Date: 2011-03-14 12:28:18 UTC
  • Revision ID: martin.pitt@canonical.com-20110314122818-1yfj18mt8oq8slk6
install Firefox search plugins into -base packs for Ubuntu >= 10.10. (LP: #732768)

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
            self.assert_('./usr/share/locale-langpack/es/LC_MESSAGES/gnome-session-2.0.mo'
252
252
                    in contents)
253
253
            # gnome/kde packs should never have firefox translations
254
 
            self.assertFalse('./usr/lib/firefox-addons/' in contents)
 
254
            for f in contents:
 
255
                self.assertFalse('firefox-addons' in f)
255
256
 
256
257
            contents = _check_pkg('language-pack-es-base', r_number)
257
258
            if r == 'natty':
271
272
                self.assert_('./usr/lib/firefox-addons/extensions/langpack-es-AR@firefox.mozilla.org/install.rdf'
272
273
                        in contents)
273
274
 
 
275
            # Ubuntu 10.10 and later install Firefox search plugins
 
276
            if float(r_number) >= 10.09:
 
277
                self.assert_('./usr/lib/firefox-addons/searchplugins/es-ES/wikipedia.xml'
 
278
                        in contents, contents)
 
279
            else:
 
280
                for f in contents:
 
281
                    self.assertFalse('searchplugins' in f)
 
282
 
274
283
            _check_pkg('language-pack-gnome-es', r_number)
275
284
            _check_pkg('language-support-es', r_number)
276
285
            _check_pkg('language-support-writing-es', r_number)
294
303
                env=env)
295
304
        out, err = dpkg.communicate()
296
305
        #self.assertEqual(err, '')
297
 
        self.assertEqual(dpkg.returncode, 0)
 
306
        self.assertEqual(dpkg.returncode, 0, 'dpkg failed: ' + err)
298
307
 
299
308
    def _dpkg_lintian(self, path):
300
309
        '''Run lintian on path and ensure it has no output.'''