packagelist = packages.split()
if not os.path.exists(pkghistdir):
- os.makedirs(pkghistdir)
+ bb.utils.mkdirhier(pkghistdir)
else:
# Remove files for packages that no longer exist
for item in os.listdir(pkghistdir):
pkgpath = os.path.join(pkghistdir, pkginfo.name)
if not os.path.exists(pkgpath):
- os.makedirs(pkgpath)
+ bb.utils.mkdirhier(pkgpath)
infofile = os.path.join(pkgpath, "latest")
with open(infofile, "w") as f:
srcrevs, tag_srcrevs = _get_srcrev_values(d)
if srcrevs:
if not os.path.exists(pkghistdir):
- os.makedirs(pkghistdir)
+ bb.utils.mkdirhier(pkghistdir)
old_tag_srcrevs = {}
if os.path.exists(srcrevfile):
with open(srcrevfile) as f: