Skip to content

Commit

Permalink
Merge pull request #860 from Naresh-ibm/sles_src_build
Browse files Browse the repository at this point in the history
Changing the kernel package name for sles distro kernel_src build
  • Loading branch information
PraveenPenguin authored Sep 2, 2024
2 parents ad0dcd8 + d2b4cdf commit 2b4912f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,10 @@ def get_distro_src(self, package, dest_path, build_option=None, pack_dir=None):

elif self.distro_name() == 'sles':
host.host_run_command("zypper install -y rpm-build")
s_cmd = f"zypper -n source-install {package};cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
if package.startswith("kernel"):
s_cmd = f"zypper -n source-install kernel-source;cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
else:
s_cmd = f"zypper -n source-install {package};cd /usr/src/packages/SOURCES/;./mkspec;cp {package}.spec ../SPECS/"
if host.host_run_command(s_cmd):

spec_path = f"/usr/src/packages/SPECS/{package}.spec"
Expand Down

0 comments on commit 2b4912f

Please sign in to comment.