Blame 0001-Print-full-path-if-file-removal-fails.patch
|
Florian Festi |
b86572 |
From f1503ab6e898430b80017c0f8347860f3a74d5bb Mon Sep 17 00:00:00 2001
|
|
Florian Festi |
b86572 |
From: Florian Festi <ffesti@redhat.com>
|
|
Florian Festi |
b86572 |
Date: Mon, 11 Dec 2023 15:50:15 +0100
|
|
Florian Festi |
b86572 |
Subject: [PATCH] Print full path if file removal fails
|
|
Florian Festi |
b86572 |
|
|
Florian Festi |
b86572 |
For normal debug output the basename of the files are sufficient as when
|
|
Florian Festi |
b86572 |
debugging is enabled the directories are also printed. But here the
|
|
Florian Festi |
b86572 |
warning is given without a debug flag so we need the full context right
|
|
Florian Festi |
b86572 |
there.
|
|
Florian Festi |
b86572 |
---
|
|
Florian Festi |
b86572 |
lib/fsm.c | 4 ++--
|
|
Florian Festi |
b86572 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Florian Festi |
b86572 |
|
|
Florian Festi |
b86572 |
diff --git a/lib/fsm.c b/lib/fsm.c
|
|
Florian Festi |
b86572 |
index fcd764648..2189bd84c 100644
|
|
Florian Festi |
b86572 |
--- a/lib/fsm.c
|
|
Florian Festi |
b86572 |
+++ b/lib/fsm.c
|
|
Florian Festi |
b86572 |
@@ -1174,9 +1174,9 @@ int rpmPackageFilesRemove(rpmts ts, rpmte te, rpmfiles files,
|
|
Florian Festi |
b86572 |
|
|
Florian Festi |
b86572 |
if (rc) {
|
|
Florian Festi |
b86572 |
int lvl = strict_erasures ? RPMLOG_ERR : RPMLOG_WARNING;
|
|
Florian Festi |
b86572 |
- rpmlog(lvl, _("%s %s: remove failed: %s\n"),
|
|
Florian Festi |
b86572 |
+ rpmlog(lvl, _("%s %s%s: remove failed: %s\n"),
|
|
Florian Festi |
b86572 |
S_ISDIR(fp->sb.st_mode) ? _("directory") : _("file"),
|
|
Florian Festi |
b86572 |
- fp->fpath, strerror(errno));
|
|
Florian Festi |
b86572 |
+ rpmfiDN(fi), fp->fpath, strerror(errno));
|
|
Florian Festi |
b86572 |
}
|
|
Florian Festi |
b86572 |
}
|
|
Florian Festi |
b86572 |
|
|
Florian Festi |
b86572 |
--
|
|
Florian Festi |
b86572 |
2.43.0
|
|
Florian Festi |
b86572 |
|