[why] rpm has no much to do with os_mount.
Signed-off-by: Li Ping 1477412247@qq.com --- src/lib/job.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index 33456ca..91fab1d 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -279,7 +279,8 @@ class Job elsif @hash["cci-depends"]? package_dir = ",/initrd/deps/#{common_dir}/#{@hash["cci-depends"]["benchmark"]}" elsif @hash["rpmbuild-pkg"]? - package_dir = ",/initrd/rpmbuild-pkg/#{common_dir}/#{@hash["rpm_repo"].to_s.split("/")[-1]}" + rpm_dir = common_dir.split("/")[1..-1].join("/") + package_dir = ",/initrd/rpmbuild-pkg/#{rpm_dir}/#{@hash["rpm_repo"].to_s.split("/")[-1]}" elsif @hash["build-pkg"]? if @hash["pkgbuild_repo"].to_s =~ /(packages|community)/// package_name = @hash["pkgbuild_repo"].to_s.split("/")[-2]