diff --git a/0002-fix-createrepo-data-error.patch b/0002-fix-createrepo-data-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..89078b4682d0afac587c9ca8d1235d4aacf9cfb9 --- /dev/null +++ b/0002-fix-createrepo-data-error.patch @@ -0,0 +1,71 @@ +From 692055df95af36bab0d961236227a5930e0c43c2 Mon Sep 17 00:00:00 2001 +From: wangchong1995924 <15229716099@163.com> +Date: Tue, 13 Aug 2024 10:57:20 +0800 +Subject: [PATCH] 2 + + +diff --git a/isomaker/iso.sh b/isomaker/iso.sh +index 7bf0bf9..104cb4d 100644 +--- a/isomaker/iso.sh ++++ b/isomaker/iso.sh +@@ -53,7 +53,7 @@ function gen_edge_iso() + set +e + mkdir -p "${BUILD}"/iso/repodata/ + cp "config/${ARCH}/edge_normal.xml" "${BUILD}"/iso/repodata/ +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o "${OUTPUT_DIR}/${EDGE_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -70,7 +70,7 @@ function gen_desktop_iso() + set +e + mkdir -p "${BUILD}"/iso/repodata/ + cp "config/${ARCH}/desktop_normal.xml" "${BUILD}"/iso/repodata/ +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o "${OUTPUT_DIR}/${DESKTOP_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -105,7 +105,7 @@ function gen_everything_iso() + rm -rf "$BUILD"/iso/Packages + cp "$CONFIG" "${BUILD}"/iso/repodata/ + mv "${EVERY_DIR}" "${BUILD}"/iso/Packages +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${EVE_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -125,7 +125,7 @@ function gen_everything_debug_iso() + rm -rf "${BUILD}"/iso/Packages + cp "$CONFIG" "${BUILD}"/iso/repodata/ + mv "${EVERY_DEBUG_DIR}" "${BUILD}"/iso/Packages +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${EVE_DEBUG_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +@@ -144,7 +144,7 @@ function gen_everything_src_iso() + rm -rf "${BUILD}"/iso/Packages + cp "$CONFIG" "${BUILD}"/iso/repodata/ + mv "${EVERY_SRC_DIR}" "${BUILD}"/iso/Packages +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + if [ "$ARCH" == "x86_64" ]; then + mkisofs -R -J -T -r -l -d -joliet-long -allow-multidot -allow-leading-dots -no-bak -V "${RELEASE_NAME}" -o /result/"${EVE_SRC_ISO_NAME}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot "${BUILD}"/iso + [ $? != 0 ] && return 1 +diff --git a/isomaker/rpm.sh b/isomaker/rpm.sh +index b2ba4de..1dff8e5 100644 +--- a/isomaker/rpm.sh ++++ b/isomaker/rpm.sh +@@ -138,7 +138,7 @@ function download_rpms() + + mkdir -p "${BUILD}"/iso/repodata + cp "$CONFIG" "${BUILD}"/iso/repodata/ +- createrepo -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso ++ createrepo -d -g "${BUILD}"/iso/repodata/*.xml "${BUILD}"/iso + return 0 + } + +-- +2.27.0 + diff --git a/oemaker.spec b/oemaker.spec index be3eadbb55c6f35812a3c71dc846c381720e26c6..f0b2bcfe8879556f253d8e96fb0f0fe7f20b686a 100644 --- a/oemaker.spec +++ b/oemaker.spec @@ -11,7 +11,7 @@ Summary: a building tool for DVD ISO making and ISO cutting License: Mulan PSL v2 Group: System/Management Version: 3.1.0 -Release: 8 +Release: 9 BuildRoot: %{_tmppath}/%{name} Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -28,6 +28,7 @@ Requires: lorax >= 19.6.78-1 # Patch here Patch0001: 0001-bugfix-IABY7K.patch +Patch0002: 0002-fix-createrepo-data-error.patch %description a building tool for DVD ISO making and ISO cutting @@ -173,6 +174,11 @@ rm -rf %{buildroot} rm -rf $RPM_BUILD_DIR/%{name} %changelog +* Tue Aug 13 2024 wangchong - 3.1.0-9 +- ID:NA +- SUG:NA +- DESC: fix createrepo data error + * Wed Jul 10 2024 wangchong - 3.1.0-8 - ID:NA - SUG:NA