This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Setup patch to keep test version if test version installed

Corinna Vinschen writes:
> other words, just drop the last three lines in your setup.hint,
> and the external-source hint.


I noticed just in time that the preremove scripts can't be dash scripts
at the moment.

Here's a patch to change that and also allow ".cmd" scripts, just like
already done for postinstall scripts: allow .dash and .cmd extensions for preremove scripts also

diff --git a/ b/
index 60c248d..653d623 100644
--- a/
+++ b/
@@ -160,10 +160,12 @@ Installer::preremoveOne (packagemeta & pkg)
   Progress.SetText1 ("Running preremove script...");
   Progress.SetText2 (;
   Log (LOG_PLAIN) << "Running preremove script for  " << << endLog;
-  try_run_script ("/etc/preremove/",, ".sh");
-  try_run_script ("/etc/preremove/",, ".bat");
+  const unsigned numexts = 4;
+  const char* exts[numexts] = { ".dash", ".sh", ".bat", ".cmd" };
+  for (unsigned i = 0; i < numexts; i++)
+    try_run_script ("/etc/preremove/",, exts[i]);
 Installer::uninstallOne (packagemeta & pkg)

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]