mirror of
https://github.com/clearlinux/bundle-chroot-builder.git
synced 2026-06-16 02:35:51 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bb15ab253 | |||
| 02f5c8fad9 | |||
| 579f606714 | |||
| 537bacec41 | |||
| cd634c88df | |||
| 0e50054fa1 | |||
| 6aa46648d0 | |||
| bcffbb7096 | |||
| 9fc98a03b1 | |||
| c96046001e |
+5
-6
@@ -1,13 +1,12 @@
|
||||
[Builder]
|
||||
SERVER_STATE_DIR=/home/clr/mix/update
|
||||
BUNDLE_DIR=/home/clr/mix/bundles
|
||||
BUNDLE_DIR=/home/clr/mix/mix-bundles
|
||||
YUM_CONF=/home/clr/mix/.yum-mix.conf
|
||||
CERT=/home/clr/mix/ClearLinuxRoot.pem
|
||||
CLEAR_VERSION=VER
|
||||
MIX_VERSION=VER
|
||||
CERT=/home/clr/mix/Swupd_Root.pem
|
||||
VERSIONS_PATH=/home/clr/mix
|
||||
|
||||
[swupd]
|
||||
BUNDLE=os-core-update
|
||||
CONTENTURL=https://download.clearlinux.org/update/
|
||||
VERSIONURL=https://download.clearlinux.org/update/
|
||||
CONTENTURL=<URL where the content will be hosted>
|
||||
VERSIONURL=<URL where the version of the mix will be hosted>
|
||||
FORMAT=1
|
||||
|
||||
@@ -74,9 +74,13 @@ def read_config(args):
|
||||
def install_bundle(out_dir, postfix, bundle, bundles, yum_cmd):
|
||||
"""Helper function to yum install a bundle"""
|
||||
lines = []
|
||||
with subprocess.Popen(["m4", bundles + "/" + bundle], cwd=bundles, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True) as p:
|
||||
for line in p.stdout:
|
||||
lines.append(line)
|
||||
try:
|
||||
output = subprocess.check_output(["m4", bundles + "/" + bundle], cwd=bundles, bufsize=1, universal_newlines=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print('ERROR {0}: m4 failed on {1}/{2}'.format(e.returncode, bundles, bundle))
|
||||
raise
|
||||
for line in output:
|
||||
lines.append(line)
|
||||
|
||||
pkgs = "".join(lines)
|
||||
to_install = []
|
||||
@@ -331,6 +335,10 @@ def create_chroots(args, state_dir, bundles, yum_conf):
|
||||
if package_name not in package_mapping:
|
||||
package_mapping[package_name] = set()
|
||||
for path in path_list:
|
||||
# RPM prints out a specific string for subpackages that contain no
|
||||
# files. It should be excluded from the SRPM file list.
|
||||
if re.match(br"\(contains no files\)\n", path):
|
||||
continue
|
||||
package_mapping[package_name].add(path)
|
||||
for package_name, paths in package_mapping.items():
|
||||
with open(out_dir + "/files-{}".format(package_name), "wb") as file:
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([bundle-chroot-builder],[1.07],[tudor.marcu@intel.com],[bundle-chroot-builder])
|
||||
AC_INIT([bundle-chroot-builder],[1.10],[tudor.marcu@intel.com],[bundle-chroot-builder])
|
||||
AM_INIT_AUTOMAKE([foreign silent-rules color-tests no-dist-gzip dist-xz])
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_PREFIX_DEFAULT(/usr/local)
|
||||
|
||||
Reference in New Issue
Block a user