Explorar el Código

Do not print empty lines after 'Setting up ...' output.

Guillem Jover hace 19 años
padre
commit
89da651919
Se han modificado 3 ficheros con 12 adiciones y 8 borrados
  1. 5 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 6 8
      src/configure.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-08-08  Guillem Jover  <guillem@debian.org>
+
+	* src/configure.c (deferred_configure): Do not print a new line
+	if maintainer_script_installed returned true.
+
 2007-08-08  Guillem Jover  <guillem@debian.org>
 
 	* dpkg-deb/build.c (do_build): Use NULL instead of '(char *)0'.

+ 1 - 0
debian/changelog

@@ -27,6 +27,7 @@ dpkg (1.14.6) UNRELEASED; urgency=low
     results with overlapping patterns on 'dpkg-query -W'. Closes: #428427
   * Tightening dpkg-dev versioned Depends to dpkg 1.14.6, and dpkg Conflicts
     against << dpkg-dev 1.14.6, where the perl modularization started.
+  * Do not print empty lines after 'Setting up ...' output. Closes: #392317
 
   [ Updated scripts translations ]
   * French (Frédéric Bothamy, Christian Perrier).

+ 6 - 8
src/configure.c

@@ -297,14 +297,12 @@ void deferred_configure(struct pkginfo *pkg) {
 
 	modstatdb_note(pkg);
 
-	if (maintainer_script_installed(pkg, POSTINSTFILE, "post-installation",
-				"configure",
-				informativeversion(&pkg->configversion)
-				? versiondescribe(&pkg->configversion,
-					vdew_nonambig)
-				: "",
-				NULL))
-		putchar('\n');
+	maintainer_script_installed(pkg, POSTINSTFILE, "post-installation",
+	                            "configure",
+	                            informativeversion(&pkg->configversion) ?
+	                            versiondescribe(&pkg->configversion,
+	                                            vdew_nonambig) : "",
+	                            NULL);
 
 	pkg->status= stat_installed;
 	pkg->eflag= eflagv_ok;