OSDN Git Service

Correct sequence of installation/removal progress reporting.
[mingw/mingw-get.git] / src / pkgunst.cpp
index 3b06a50..d2821ca 100644 (file)
@@ -312,13 +312,15 @@ EXTERN_C void pkgRemove( pkgActionItem *current )
     const char *tarname = pkg->GetPropVal( tarname_key, value_unknown );
     pkgXmlNode *sysroot = sysroot_lookup( pkg, tarname );
 
-    dmh_printf( " removing %s %s\n", pkg->GetName(), tarname );
-
     /* If the package we are about to remove has an associated
-     * pre-remove script, now is the time to invoke it.
+     * pre-remove script, now is the time to invoke it...
      */
     pkg->InvokeScript( "pre-remove" );
 
+    /* ...before we proceed to removal of actual package content.
+     */
+    dmh_printf( " removing %s %s\n", pkg->GetName(), tarname );
+
     /* Removal of virtual (meta) packages is comparitively simple;
      * identified by having an associated archive name of "none", they
      * have no associated archive file, no installed footprint on disk,