|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
From fcc431622fc0305248bb966271c71c8d17fd5f69 Mon Sep 17 00:00:00 2001
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= <lsedlar@redhat.com>
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
Date: Wed, 11 Apr 2018 09:19:53 +0200
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
Subject: [PATCH 2/3] Revert "Other repo for OstreeInstaller"
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
This reverts commit 5c081cb545715c2a912ff50fa57554e89d905868.
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
---
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pungi/checks.py | 3 ++-
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pungi/phases/ostree_installer.py | 8 ++-----
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pungi/util.py | 21 +++++-------------
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
tests/test_ostree_installer_phase.py | 43 +++++++++++++++---------------------
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
4 files changed, 28 insertions(+), 47 deletions(-)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
diff --git a/pungi/checks.py b/pungi/checks.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
index 6233d5d7..189ca948 100644
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
--- a/pungi/checks.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+++ b/pungi/checks.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -938,7 +938,7 @@ def make_schema():
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"tag_ref": {"type": "boolean"},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"ostree_ref": {"type": "string"},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- "required": ["treefile", "config_url", "ostree_repo"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ "required": ["treefile", "config_url", "repo", "ostree_repo"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"additionalProperties": False,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
}),
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
]
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -959,6 +959,7 @@ def make_schema():
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"template_repo": {"type": "string"},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"template_branch": {"type": "string"},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ "required": ["repo"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"additionalProperties": False,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
}),
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
diff --git a/pungi/phases/ostree_installer.py b/pungi/phases/ostree_installer.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
index b7843195..9bf5e255 100644
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
--- a/pungi/phases/ostree_installer.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+++ b/pungi/phases/ostree_installer.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -9,7 +9,7 @@ from kobo import shortcuts
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
from .base import ConfigGuardedPhase, PhaseLoggerMixin
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
from .. import util
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
-from ..util import get_volid, get_repo_urls, version_generator, translate_path
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+from ..util import get_volid, get_repo_urls, version_generator
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
from ..wrappers import kojiwrapper, iso, lorax, scm
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -64,11 +64,7 @@ class OstreeInstallerThread(WorkerThread):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.pool.log_info('[BEGIN] %s' % msg)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.logdir = compose.paths.log.topdir('%s/%s/ostree_installer-%s' % (arch, variant, self.num))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- repo_baseurl = compose.paths.work.arch_repo('$basearch', create_dir=False)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- repos = get_repo_urls(None, # compose==None. Special value says that method should ignore deprecated variant-type repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- shortcuts.force_list(config['repo']) + shortcuts.force_list(translate_path(compose, repo_baseurl)),
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- arch=arch,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- logger=self.pool)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ repos = get_repo_urls(compose, shortcuts.force_list(config['repo']), arch=arch)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
repos = [url.replace('$arch', arch) for url in repos]
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
output_dir = os.path.join(compose.paths.work.topdir(arch), variant.uid, 'ostree_installer')
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
util.makedirs(os.path.dirname(output_dir))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
diff --git a/pungi/util.py b/pungi/util.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
index 261f3f25..8ea945da 100644
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
--- a/pungi/util.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+++ b/pungi/util.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -678,8 +678,6 @@ def get_repo_url(compose, repo, arch='$basearch'):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
Convert repo to repo URL.
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@param compose - required for access to variants
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- special value compose==None determines that method is called during
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- OSTreeInstaller phase where variant-type source repository is deprecated
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@param repo - string or a dict which at least contains 'baseurl' key
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@param arch - string to be used as arch in repo url
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"""
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -690,17 +688,14 @@ def get_repo_url(compose, repo, arch='$basearch'):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
raise RuntimeError('Baseurl is required in repo dict %s' % str(repo))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
if '://' not in repo:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
# this is a variant name
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- if compose is not None:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- v = compose.all_variants.get(repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- if not v:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- raise RuntimeError('There is no variant %s to get repo from.' % repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- else:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- return None
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ v = compose.all_variants.get(repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ if not v:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ raise RuntimeError('There is no variant %s to get repo from.' % repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
repo = translate_path(compose, compose.paths.compose.repository(arch, v, create_dir=False))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
return repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
-def get_repo_urls(compose, repos, arch='$basearch', logger=None):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+def get_repo_urls(compose, repos, arch='$basearch'):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"""
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
Convert repos to a list of repo URLs.
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -711,11 +706,7 @@ def get_repo_urls(compose, repos, arch='$basearch', logger=None):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
urls = []
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
for repo in repos:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
repo = get_repo_url(compose, repo, arch=arch)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- if repo is None:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- if logger:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- logger.log_warning("Variant-type source repository is deprecated and will be ignored during 'OSTreeInstaller' phase: %s" % (repo))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- else:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- urls.append(repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ urls.append(repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
return urls
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -773,7 +764,7 @@ def get_repo_dicts(repos, logger=None):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
repo_dict = get_repo_dict(repo)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
if repo_dict == {}:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
if logger:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- logger.log_warning("Variant-type source repository is deprecated and will be ignored during 'OSTree' phase: %s" % (repo))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ logger.log_warning("Variant-type source repository is deprecated and will be ignored during 'ostree' phase: %s" % (repo))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
else:
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
repo_dicts.append(repo_dict)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
return repo_dicts
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
diff --git a/tests/test_ostree_installer_phase.py b/tests/test_ostree_installer_phase.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
index 1c7af1ad..ba56d8c7 100644
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
--- a/tests/test_ostree_installer_phase.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+++ b/tests/test_ostree_installer_phase.py
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -14,7 +14,6 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
from tests import helpers
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
from pungi.phases import ostree_installer as ostree
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
-from six.moves import shlex_quote
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
LOG_PATH = 'logs/x86_64/Everything/ostree_installer-1'
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -59,9 +58,6 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'koji_profile': 'koji',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'runroot_tag': 'rrt',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'image_volid_formats': ['{release_short}-{variant}-{arch}'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'translate_paths': [
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- (self.topdir + '/work', 'http://example.com/work')
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- ],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
})
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
def assertImageAdded(self, compose, ImageCls, iso):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -88,7 +84,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
]
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
for s in force_list(sources):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- lorax_cmd.append(shlex_quote('--source=%s' % s))
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ lorax_cmd.append('--source=%s' % s)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
lorax_cmd.append('--variant=Everything')
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
lorax_cmd.append('--nomacboot')
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -141,7 +137,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.compose.supported = False
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pool = mock.Mock()
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'repo': 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'repo': 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': '20160321.n.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
}
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
koji = KojiWrapper.return_value
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -159,7 +155,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
t.process((self.compose, self.compose.variants['Everything'], 'x86_64', cfg), 1)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(koji,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg['release'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
extra=['--logfile=%s/%s/lorax.log' % (self.topdir, LOG_PATH)])
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertIsoLinked(link, get_file_size, get_mtime, final_iso_path)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -194,11 +190,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
t.process((self.compose, self.compose.variants['Everything'], 'x86_64', cfg), 1)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- self.assertRunrootCall(koji,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- ('http://example.com/repo/x86_64/',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo'),
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- cfg['release'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ self.assertRunrootCall(koji, 'http://example.com/repo/x86_64/', cfg['release'], isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
extra=['--logfile=%s/%s/lorax.log' % (self.topdir, LOG_PATH)])
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertIsoLinked(link, get_file_size, get_mtime, final_iso_path)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertImageAdded(self.compose, ImageCls, iso)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -217,7 +209,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': '20160321.n.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'repo': [
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo1.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo2.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -234,9 +226,9 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
t.process((self.compose, self.compose.variants['Everything'], 'x86_64', cfg), 1)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
sources = [
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo1.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'https://example.com/extra-repo2.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'https://example.com/extra-repo2.repo'
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
]
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(koji, sources, cfg['release'], isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -255,8 +247,8 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': '20160321.n.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'repo': [
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'Server', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'Server',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo1.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo2.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -273,9 +265,10 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
t.process((self.compose, self.compose.variants['Everything'], 'x86_64', cfg), 1)
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
sources = [
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Server/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'https://example.com/extra-repo1.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'https://example.com/extra-repo2.repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'https://example.com/extra-repo2.repo'
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
]
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(koji, sources, cfg['release'], isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -326,7 +319,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
get_dir_from_scm):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pool = mock.Mock()
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'repo': 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'repo': 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': '20160321.n.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'add_template': ['some_file.txt'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'add_arch_template': ['other_file.txt'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -353,7 +346,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'branch': 'f24', 'dir': '.'},
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
templ_dir, logger=pool._logger)])
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(koji,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg['release'],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
extra=['--add-template=%s/some_file.txt' % templ_dir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -374,7 +367,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
get_file_size, get_mtime, ImageCls, run):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pool = mock.Mock()
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'repo': 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'repo': 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': '!RELEASE_FROM_LABEL_DATE_TYPE_RESPIN',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"installpkgs": ["fedora-productimg-atomic"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"add_template": ["/spin-kickstarts/atomic-installer/lorax-configure-repo.tmpl"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -406,7 +399,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
koji,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'20151203.t.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
extra=['--installpkgs=fedora-productimg-atomic',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -435,7 +428,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
get_file_size, get_mtime, ImageCls, run):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
pool = mock.Mock()
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
cfg = {
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'repo': 'Everything', # this variant-type repo is deprecated, in result will be replaced with default repo
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'repo': 'Everything',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'release': None,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"installpkgs": ["fedora-productimg-atomic"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
"add_template": ["/spin-kickstarts/atomic-installer/lorax-configure-repo.tmpl"],
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
@@ -467,7 +460,7 @@ class OstreeThreadTest(helpers.PungiTestCase):
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
self.assertRunrootCall(
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
koji,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
- 'http://example.com/work/$basearch/repo',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
+ 'file://%s/compose/Everything/x86_64/os' % self.topdir,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
'20151203.t.0',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
isfinal=True,
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
extra=['--installpkgs=fedora-productimg-atomic',
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
--
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
2.13.6
|
|
![](https://seccdn.libravatar.org/avatar/8c4a1e94c03d43ac00b3394f56e1a50bb6e1534ddc46331a997ddce4b4e8f951?s=16&d=retro) |
35a6361 |
|