aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-local/scripts/build_pkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rpm-local/scripts/build_pkg.sh')
-rwxr-xr-xrpm-local/scripts/build_pkg.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpm-local/scripts/build_pkg.sh b/rpm-local/scripts/build_pkg.sh
index 3d9665f..5d94a76 100755
--- a/rpm-local/scripts/build_pkg.sh
+++ b/rpm-local/scripts/build_pkg.sh
@@ -11,7 +11,7 @@ for arch in $ARCHES; do
createrepo .
cat <<- EOF > /etc/yum.repos.d/rpmbuild-local-$arch.repo
- [myrepo-$arch]
+ [osmocom-$arch]
name=Local Osmocom packages ($arch)
baseurl=file:///home/user/rpmbuild/RPMS/$arch
enabled=1
@@ -22,6 +22,9 @@ for arch in $ARCHES; do
fi
done
+# Remove local repo related cache
+rm -rf /var/cache/dnf/osmocom*
+
cd /home/user/rpmbuild/SPECS
# Install systemd-rpm-macros if needed, so the .spec can be parsed