mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
lib/oe/package_manager: Make empty package directories non-fatal
Its perfectly reasonable to call -c package-index with empty package directories. This ensures the builds don't fail in such cases, resolving autobuilder failures. (From OE-Core rev: 11e2aaf2d751277e3e99ac2acbbeff2b7227be94) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -112,7 +112,8 @@ class RpmIndexer(Indexer):
|
||||
rpm_dirs_found = True
|
||||
|
||||
if not rpm_dirs_found:
|
||||
return("There are no packages in %s" % self.deploy_dir)
|
||||
bb.note("There are no packages in %s" % self.deploy_dir)
|
||||
return
|
||||
|
||||
nproc = multiprocessing.cpu_count()
|
||||
pool = bb.utils.multiprocessingpool(nproc)
|
||||
@@ -156,7 +157,8 @@ class OpkgIndexer(Indexer):
|
||||
(opkg_index_cmd, pkgs_file, pkgs_file, pkgs_dir))
|
||||
|
||||
if len(index_cmds) == 0:
|
||||
return("There are no packages in %s!" % self.deploy_dir)
|
||||
bb.note("There are no packages in %s!" % self.deploy_dir)
|
||||
return
|
||||
|
||||
nproc = multiprocessing.cpu_count()
|
||||
pool = bb.utils.multiprocessingpool(nproc)
|
||||
@@ -197,7 +199,8 @@ class DpkgIndexer(Indexer):
|
||||
deb_dirs_found = True
|
||||
|
||||
if not deb_dirs_found:
|
||||
return("There are no packages in %s" % self.deploy_dir)
|
||||
bb.note("There are no packages in %s" % self.deploy_dir)
|
||||
return
|
||||
|
||||
nproc = multiprocessing.cpu_count()
|
||||
pool = bb.utils.multiprocessingpool(nproc)
|
||||
|
||||
Reference in New Issue
Block a user