public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Eric Chanudet <echanude@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kmod] rawhide: weak-modules: check weak-updates directory exists before using it
Date: Wed, 28 Oct 2026 19:35:43 GMT	[thread overview]
Message-ID: <179321614313.1.10168585337409185365.rpms-kmod-62cbe5d02093@fedoraproject.org> (raw)

            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 * )
 }
 
 ################################################################################

                 reply	other threads:[~2026-10-28 19:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179321614313.1.10168585337409185365.rpms-kmod-62cbe5d02093@fedoraproject.org \
    --to=echanude@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox