mirror of
https://abf.rosa.ru/djam/rpm.git
synced 2025-02-23 18:33:04 +00:00
37 lines
938 B
Diff
37 lines
938 B
Diff
diff --git a/build/parseScript.c b/build/parseScript.c
|
|
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':
|
|
+ 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);
|