Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 16, 2023
1 parent 379f6ac commit 893c990
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions common_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,19 @@ def getRpmAutobakeFactory(mtrDbPool):
steps.ShellCommand(
name="Fetch packages for MariaDB-compat",
command=util.Interpolate(
"wget --no-check-certificate -cO ../MariaDB-shared-5.3.%(kw:arch)s.rpm"
"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",
+ "/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(
steps.ShellCommand(
name="Fetch packages for MariaDB-shared",
command=[
"wget",
"--no-check-certificate",
"-cO",
"../MariaDB-shared-10.1.%(kw:arch)s.rpm",
util.Interpolate(
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")))
f_rpm_autobake.addStep(steps.ShellCommand(command="ls .."))
Expand Down

0 comments on commit 893c990

Please sign in to comment.