~jbicha/firefox/dont-depend-on-gtk2

« back to all changes in this revision

Viewing changes to debian/build/xpi-id.py

  • Committer: Rico Tzschichholz
  • Date: 2017-11-11 09:22:52 UTC
  • Revision ID: ricotz@ubuntu.com-20171111092252-wvf528q8spzj01px
* New upstream release from the beta channel (FIREFOX_58_0b2_BUILD1)
* Bump build-dep on rustc >= 1.21.0 and cargo >= 0.22
* Update patches
  - debian/patches/ppc-no-static-sizes.patch
  - debian/patches/unity-menubar.patch
  - debian/patches/allow-lockPref-everywhere.patch
  - debian/patches/revert-upstream-search-engine-changes.patch
  - debian/patches/warn-only-on-duplicates.patch
* Drop upstreamed/obsolete patches
  - debian/patches/build-ppc64-s390x-nss.patch
  - debian/patches/build-ppc64-s390x-rust.patch
* Update make-langpack-xpis target
  - debian/build/rules.mk
* Build language packs based on web extensions
  - debian/build/xpi-id.py
* Bump debhelper compat level to 9
* Drop 12.04/Precise specific changes
* Update copyright and license files
* Install watermark.svg from the onbording extension as symbolic icon
  - debian/build/rules.mk 
  - debian/firefox.dirs.in
* mozbuild/shellutil.py: Don't treat '~' character as special
  - debian/patches/dont-treat-tilde-as-special.patch
* Add Nepali language pack
  - update debian/config/locales.all
  - update debian/config/locales.shipped
  - update debian/control
* Don't pass -mfloat-abi=softfp when building webrtc on armhf
  - add debian/patches/webrtc-fix-compiler-flags-for-armhf.patch
  - update debian/patches/series
* Backport some skia fixes to fix a build failure on aarch64 against
  kernel headers that don't define HWCAP_CRC32
  - add debian/patches/skia-fix-aarch64-build-on-older-linux.patch
  - update debian/patches/series
* Refresh and re-enable unity-menubar.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
3
import sys
4
 
import xml.dom.minidom
 
4
import json
5
5
import os
6
6
import zipfile
7
7
 
10
10
        print >> sys.stderr, "Must specify an xpi"
11
11
        exit(1)
12
12
 
13
 
    dom_doc = xml.dom.minidom.parseString(zipfile.ZipFile(sys.argv[1]).open('install.rdf').read().strip())
14
 
 
15
 
    try:
16
 
        attr = dom_doc.getElementsByTagName('RDF:Description')[0].attributes['em:id']
17
 
    except IndexError:
18
 
        attr = dom_doc.getElementsByTagName('Description')[0].attributes['em:id']
19
 
 
20
 
    assert attr.value
21
 
    print "%s" % attr.value
 
13
    json_doc = json.loads(zipfile.ZipFile(sys.argv[1]).open('manifest.json').read().strip())
 
14
    gecko_id = json_doc["applications"]["gecko"]["id"]
 
15
 
 
16
    assert gecko_id
 
17
    print "%s" % gecko_id
22
18
    exit(0)