summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index fbb68391b9..c98c6ec4eb 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -953,6 +953,9 @@ python populate_packages () {
953 953
954 seen = [] 954 seen = []
955 955
956 # os.mkdir masks the permissions with umask so we have to unset it first
957 oldumask = os.umask(0)
958
956 for pkg in package_list: 959 for pkg in package_list:
957 root = os.path.join(pkgdest, pkg) 960 root = os.path.join(pkgdest, pkg)
958 bb.utils.mkdirhier(root) 961 bb.utils.mkdirhier(root)
@@ -1025,6 +1028,7 @@ python populate_packages () {
1025 if ret is False or ret == 0: 1028 if ret is False or ret == 0:
1026 raise bb.build.FuncFailed("File population failed") 1029 raise bb.build.FuncFailed("File population failed")
1027 1030
1031 os.umask(oldumask)
1028 os.chdir(workdir) 1032 os.chdir(workdir)
1029 1033
1030 unshipped = [] 1034 unshipped = []