public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kmod] rawhide: weak-modules: check weak-updates directory exists before using it
@ 2026-10-28 19:35 Eric Chanudet
0 siblings, 0 replies; only message in thread
From: Eric Chanudet @ 2026-10-28 19:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kmod
Branch : rawhide
Commit : 62cbe5d02093bfeb39aacdae1d0d6af244d51bd1
Author : Eric Chanudet <echanude@redhat.com>
Date : 2026-10-28T10:37:24-04:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kmod/c/62cbe5d02093bfeb39aacdae1d0d6af244d51bd1?branch=rawhide
Log:
weak-modules: check weak-updates directory exists before using it
Signed-off-by: Jan Stancek <jstancek@redhat.com>
[forward port from centos-stream:
5275fcaf0fde ("check weak-updates directory exists before using it")]
Signed-off-by: Eric Chanudet <echanude@redhat.com>
---
diff --git a/weak-modules b/weak-modules
index fce27fc..b5391e4 100644
--- a/weak-modules
+++ b/weak-modules
@@ -1096,7 +1096,7 @@ remove_kernel() {
module_has_changed $weak_modules $remove_krel
# Remove everything beneath the weak-updates directory
- ( cd "$weak_modules" && doit rm -rf * )
+ ( [ -d "$weak_modules" ] && cd "$weak_modules" && doit rm -rf * )
}
################################################################################
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 19:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 19:35 [rpms/kmod] rawhide: weak-modules: check weak-updates directory exists before using it Eric Chanudet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox