|
|
@ -2,8 +2,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
import tempfile
|
|
|
|
import tempfile
|
|
|
|
|
|
|
|
|
|
|
|
from collections import namedtuple
|
|
|
|
from collections import namedtuple
|
|
|
@ -67,17 +65,6 @@ def create_repo(arch='x86_64'):
|
|
|
|
|
|
|
|
|
|
|
|
pkgs.append(pkg)
|
|
|
|
pkgs.append(pkg)
|
|
|
|
|
|
|
|
|
|
|
|
# HACK: EPEL6 version of rpmfluff can't do multi-arch packaging, so we'll just build separately and copy
|
|
|
|
|
|
|
|
# the noarch stuff in, since we don't currently care about the repodata for noarch
|
|
|
|
|
|
|
|
if sys.version_info[0:2] == (2, 6):
|
|
|
|
|
|
|
|
noarch_repo = YumRepoBuild([p for p in pkgs if 'noarch' in p.get_build_archs()])
|
|
|
|
|
|
|
|
noarch_repo.make('noarch')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
repo = YumRepoBuild([p for p in pkgs if arch in p.get_build_archs()])
|
|
|
|
|
|
|
|
repo.make(arch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subprocess.call("cp {0}/*.rpm {1}".format(noarch_repo.repoDir, repo.repoDir), shell=True)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
repo = YumRepoBuild(pkgs)
|
|
|
|
repo = YumRepoBuild(pkgs)
|
|
|
|
repo.make(arch, 'noarch')
|
|
|
|
repo.make(arch, 'noarch')
|
|
|
|
|
|
|
|
|
|
|
|