mirror of
https://github.com/dynup/kpatch
synced 2025-02-17 02:06:53 +00:00
only allow one cache at a time
This will prevent the ~/.kpatch cache directory from filling up with old caches.
This commit is contained in:
parent
7930fa804b
commit
f7da3ea207
@ -93,6 +93,7 @@ else
|
||||
rpm -ivh "$TEMPDIR/kernel-$DISTROVERSION.src.rpm" >> "$LOGFILE" 2>&1 || die
|
||||
rpmbuild -bp "--target=$(uname -m)" "$HOME/rpmbuild/SPECS/kernel.spec" >> "$LOGFILE" 2>&1 ||
|
||||
die "rpmbuild -bp failed. you may need to run 'yum-builddep kernel' first."
|
||||
rm -rf "$KSRCDIR_DIR"
|
||||
mkdir -p "$KSRCDIR_DIR"
|
||||
mv "$HOME"/rpmbuild/BUILD/kernel-*/linux-"$ARCHVERSION" "$KSRCDIR" >> "$LOGFILE" 2>&1 || die
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user