Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 16, 2023
1 parent be9dca0 commit dbf5ad6
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions common_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,20 @@ def getRpmAutobakeFactory(mtrDbPool):
f_rpm_autobake.workdir=f_rpm_autobake.workdir + "/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/"
f_rpm_autobake.addStep(
steps.ShellCommand(
name="fetch packages for MariaDB-compat",
command=[
"sh",
"-c",
util.Interpolate("""
wget --no-check-certificate -cO ../MariaDB-shared-5.3.%(kw:arch)s.rpm " """ + os.getenv('ARTIFACTS_URL', default='https://ci.mariadb.org') + """/helper_files/mariadb-shared-5.3-%(kw:arch)s.r pm" && wget -cO ../MariaDB-shared-10.1.%(kw:arch)s.rpm " """ + os.getenv('ARTIFACTS_URL', default='https://ci.mariadb.org') + """/helper_files/mariadb-shared-10.1-kvm-rpm-%(kw:rpm_type)s-%(kw:arch)s.rpm"',
arch=getArch,
rpm_type=util.Property("rpm_type"),
"""),
],
name="Fetch packages for MariaDB-compat",
command=util.Interpolate(
"wget --no-check-certificate -cO ../MariaDB-shared-5.3.%(kw:arch)s.rpm "
+ os.getenv("ARTIFACTS_URL", default="https://ci.mariadb.org")
+ "/helper_files/mariadb-shared-5.3-%(kw:arch)s.rpm"
+ "&&"
+ "wget --no-check-certificate -cO ../MariaDB-shared-10.1.%(kw:arch)s.rpm "
+ os.getenv("ARTIFACTS_URL", default="https://ci.mariadb.org")
+ "/helper_files/mariadb-shared-10.1-kvm-rpm-%(kw:rpm_type)s-%(kw:arch)s.rpm",
arch=getArch,
rpm_type=util.Property("rpm_type"),
),
doStepIf=hasCompat,
)
)
)
f_rpm_autobake.addStep(downloadSourceTarball())
f_rpm_autobake.addStep(steps.ShellCommand(command=util.Interpolate("tar -xvzf /mnt/packages/%(prop:tarbuildnum)s_%(prop:mariadb_version)s.tar.gz --strip-components=1")))
Expand Down

0 comments on commit dbf5ad6

Please sign in to comment.