Fix regex for rpi package

just try to remove the last -NUMBER instead of the whole start from dash
This commit is contained in:
Itxaka
2025-03-17 09:18:53 +01:00
committed by GitHub
parent e26a91441d
commit b538e39609

View File

@@ -6,8 +6,8 @@ requires:
steps:
- mkdir -p /data/{boot,usr}
- PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && wget https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/aarch64/u-boot-rpiarm64-$PACKAGE_VERSION.aarch64.rpm
- PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && rpm2cpio u-boot-rpiarm64-$PACKAGE_VERSION.aarch64.rpm | cpio -idmv
- PACKAGE_VERSION=${PACKAGE_VERSION%-[1-9]} && wget https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/aarch64/u-boot-rpiarm64-$PACKAGE_VERSION.aarch64.rpm
- PACKAGE_VERSION=${PACKAGE_VERSION%-[1-9]} && rpm2cpio u-boot-rpiarm64-$PACKAGE_VERSION.aarch64.rpm | cpio -idmv
- mv usr/share/doc /data
- mv usr/share/licenses /data
- mv usr/* /data