1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-25 19:53:08 +00:00

Only do the addrepourl check if we're on F28+

inst.addrepo was added in F29. In F28 it should just sorta not
do anything at all. It's not worth doing a big workaround to
make F28 graphically add the repo in this case; let's just allow
F28 to not actually add the repo. It's fine! This is fine.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-01-26 20:49:59 +01:00
parent d1006a38e5
commit 7aed615a8d

View File

@ -19,7 +19,9 @@ sub run {
# check that the repo was used
$self->root_console;
if ($addrepourl) {
# inst.addrepo doesn't actually work in < F29, so don't check it
my $version = lc(get_var("VERSION"));
if ($addrepourl && ($version eq 'rawhide' || $version > 28)) {
if ($addrepourl =~ m,^nfs://,,) {
# this line tells us it set up a repo for our URL...
assert_script_run 'grep "repo addrepo.*' . ${addrepourl} . '" /tmp/packaging.log';