mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
package_deb, ipk: improve subprocess output on package manager command
Redirecting stderr to stdout helps debugging issues, i.e instead of just getting the return code, get also the error log from the pkg manger This commit is in the way to figure out the root cause of [YOCTO #12012], where dpkg-deb fails with a 2 return code and according to the man page, there are multiple issues leading to the same code. (From OE-Core rev: 9ff023fb26f5f0ce19e757beda00ccc32c009b21) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9bf6b1127a
commit
a8ab6d5c82
@@ -286,7 +286,9 @@ def deb_write_pkg(pkg, d):
|
||||
conffiles.close()
|
||||
|
||||
os.chdir(basedir)
|
||||
subprocess.check_output("PATH=\"%s\" dpkg-deb -b %s %s" % (localdata.getVar("PATH"), root, pkgoutdir), shell=True)
|
||||
subprocess.check_output("PATH=\"%s\" dpkg-deb -b %s %s" % (localdata.getVar("PATH"), root, pkgoutdir),
|
||||
stderr=subprocess.STDOUT,
|
||||
shell=True)
|
||||
|
||||
finally:
|
||||
cleanupcontrol(root)
|
||||
|
||||
@@ -244,7 +244,9 @@ def ipk_write_pkg(pkg, d):
|
||||
|
||||
os.chdir(basedir)
|
||||
subprocess.check_output("PATH=\"%s\" %s %s %s" % (localdata.getVar("PATH"),
|
||||
d.getVar("OPKGBUILDCMD"), pkg, pkgoutdir), shell=True)
|
||||
d.getVar("OPKGBUILDCMD"), pkg, pkgoutdir),
|
||||
stderr=subprocess.STDOUT,
|
||||
shell=True)
|
||||
|
||||
if d.getVar('IPK_SIGN_PACKAGES') == '1':
|
||||
ipkver = "%s-%s" % (d.getVar('PKGV'), d.getVar('PKGR'))
|
||||
|
||||
Reference in New Issue
Block a user