diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/package_deb.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index e35f427ea2..8f9b09a780 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
| @@ -53,6 +53,8 @@ python do_package_deb () { | |||
| 53 | import textwrap | 53 | import textwrap |
| 54 | import subprocess | 54 | import subprocess |
| 55 | 55 | ||
| 56 | oldcwd = os.getcwd() | ||
| 57 | |||
| 56 | workdir = d.getVar('WORKDIR', True) | 58 | workdir = d.getVar('WORKDIR', True) |
| 57 | if not workdir: | 59 | if not workdir: |
| 58 | bb.error("WORKDIR not defined, unable to package") | 60 | bb.error("WORKDIR not defined, unable to package") |
| @@ -311,6 +313,7 @@ python do_package_deb () { | |||
| 311 | 313 | ||
| 312 | cleanupcontrol(root) | 314 | cleanupcontrol(root) |
| 313 | bb.utils.unlockfile(lf) | 315 | bb.utils.unlockfile(lf) |
| 316 | os.chdir(oldcwd) | ||
| 314 | } | 317 | } |
| 315 | # Indirect references to these vars | 318 | # Indirect references to these vars |
| 316 | do_package_write_deb[vardeps] += "PKGV PKGR PKGV DESCRIPTION SECTION PRIORITY MAINTAINER DPKG_ARCH PN HOMEPAGE" | 319 | do_package_write_deb[vardeps] += "PKGV PKGR PKGV DESCRIPTION SECTION PRIORITY MAINTAINER DPKG_ARCH PN HOMEPAGE" |
