aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-11 10:38:34 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-11 10:39:18 +0200
commit26fa95017529be1412b3d9c0e01f392b293a50b6 (patch)
tree0327b647c1b17c20cb570107c855689f0703aeb3
parent2a8984b0ff70f5d867a35fdddb3f4079b864ed18 (diff)
build_pkg.sh: rm /var/cache/dnf/osmocom*
Don't cache anything about the local repository in /var/cache/dnf. Change-Id: Ied0ea222f6aae2bb6723582a2967e6d12b2bcdb4
-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