get apport python package and hooks from focal branch

This commit is contained in:
Michael Hudson-Doyle 2020-04-16 09:11:32 +12:00
parent 5cca44b70d
commit d9e73a17a6
2 changed files with 21 additions and 6 deletions

View File

@ -40,12 +40,28 @@ parts:
- libc6
- try:
- efibootmgr
apport-hooks:
plugin: nil
apport:
plugin: python
source-type: bzr
source: lp:~ubuntu-core-dev/ubuntu/focal/apport/ubuntu
build-packages:
- python3-distutils-extra
- python3-apt
- python3-httplib2
- python3-problem-report
- python3-requests-unixsocket
stage-packages:
- apport
- python3-distutils-extra
- python3-apt
- python3-httplib2
- python3-problem-report
- python3-requests-unixsocket
stage:
- usr/share/apport/general-hooks/*
- "lib/python*/site-packages/"
- "-lib/python*/site-packages/etc/*"
- "-lib/python*/site-packages/lib/*"
- "share/apport/general-hooks/"
- "usr/"
subiquity:
plugin: python
build-packages:
@ -60,7 +76,6 @@ parts:
- libsystemd0
- iso-codes
- lsb-release
- python3-apport
- python3-bson
- python3-distutils-extra
- python3-urwid

View File

@ -108,7 +108,7 @@ def main():
os.path.join(snap, 'usr', 'bin'),
os.environ['PATH'],
])
os.environ["APPORT_DATA_DIR"] = os.path.join(snap, 'usr/share/apport')
os.environ["APPORT_DATA_DIR"] = os.path.join(snap, 'share/apport')
# This must come after setting $APPORT_DATA_DIR.
from subiquity.core import Subiquity
opts = parse_options(sys.argv[1:])