summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/buildhistory.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 55b6bbf496..c32c7aa868 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -169,7 +169,7 @@ python buildhistory_emit_pkghistory() {
169 169
170 packagelist = packages.split() 170 packagelist = packages.split()
171 if not os.path.exists(pkghistdir): 171 if not os.path.exists(pkghistdir):
172 os.makedirs(pkghistdir) 172 bb.utils.mkdirhier(pkghistdir)
173 else: 173 else:
174 # Remove files for packages that no longer exist 174 # Remove files for packages that no longer exist
175 for item in os.listdir(pkghistdir): 175 for item in os.listdir(pkghistdir):
@@ -268,7 +268,7 @@ def write_pkghistory(pkginfo, d):
268 268
269 pkgpath = os.path.join(pkghistdir, pkginfo.name) 269 pkgpath = os.path.join(pkghistdir, pkginfo.name)
270 if not os.path.exists(pkgpath): 270 if not os.path.exists(pkgpath):
271 os.makedirs(pkgpath) 271 bb.utils.mkdirhier(pkgpath)
272 272
273 infofile = os.path.join(pkgpath, "latest") 273 infofile = os.path.join(pkgpath, "latest")
274 with open(infofile, "w") as f: 274 with open(infofile, "w") as f:
@@ -579,7 +579,7 @@ python write_srcrev() {
579 srcrevs, tag_srcrevs = _get_srcrev_values(d) 579 srcrevs, tag_srcrevs = _get_srcrev_values(d)
580 if srcrevs: 580 if srcrevs:
581 if not os.path.exists(pkghistdir): 581 if not os.path.exists(pkghistdir):
582 os.makedirs(pkghistdir) 582 bb.utils.mkdirhier(pkghistdir)
583 old_tag_srcrevs = {} 583 old_tag_srcrevs = {}
584 if os.path.exists(srcrevfile): 584 if os.path.exists(srcrevfile):
585 with open(srcrevfile) as f: 585 with open(srcrevfile) as f: