rpm/debug.patch

38 lines
938 B
Diff
Raw Permalink Normal View History

diff --git a/build/parseScript.c b/build/parseScript.c
2019-06-14 18:35:02 +03:00
index 4a677cb..eafc5e7 100644
--- a/build/parseScript.c
+++ b/build/parseScript.c
@@ -265,6 +265,11 @@ int parseScript(Spec spec, int parsePart)
case 'n':
flag = PART_NAME;
/*@switchbreak@*/ break;
+#ifdef DEBUG
+ case 'f':
2019-06-14 18:35:02 +03:00
+ rpmlog(RPMLOG_INFO, "DEBUG: Got -f option for a script\n");
+ break;
+#endif
}
}
@@ -465,12 +470,20 @@ int parseScript(Spec spec, int parsePart)
}
if (file) {
+#ifdef DEBUG
+ rpmlog(RPMLOG_INFO, "DEBUG: Got a file to be included into the script\n");
+#endif
switch (parsePart) {
case PART_PRE:
pkg->preInFile = xstrdup(file);
break;
case PART_POST:
pkg->postInFile = xstrdup(file);
+#ifdef DEBUG
+ if (pkg->postInFile) {
+ rpmlog(RPMLOG_INFO, "DEBUG: xstrdup-ped for file in post-script\n");
+ }
+#endif
break;
case PART_PREUN:
pkg->preUnFile = xstrdup(file);