Przeglądaj źródła

dpkg-architecture: Wrap long strings for die calls

Guillem Jover 18 lat temu
rodzic
commit
55c612f327
2 zmienionych plików z 11 dodań i 2 usunięć
  1. 5 0
      ChangeLog
  2. 6 2
      scripts/dpkg-architecture.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-11-04  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-architecture.pl: Wrap long strings for die calls
+	at less than 80 chars.
+
 2007-11-04  Guillem Jover  <guillem@debian.org>
 
 	* scripts/Dpkg/Arch.pm (debarch_to_gnutriplet): New function.

+ 6 - 2
scripts/dpkg-architecture.pl

@@ -159,12 +159,16 @@ if (!defined($deb_host_arch)) {
 
 if ($req_host_arch ne '' && $req_host_gnu_type eq '') {
     $req_host_gnu_type = debarch_to_gnutriplet($req_host_arch);
-    die (sprintf(_g("unknown Debian architecture %s, you must specify GNU system type, too"), $req_host_arch)) unless defined $req_host_gnu_type;
+    die (sprintf(_g("unknown Debian architecture %s, you must specify " .
+                    "GNU system type, too"), $req_host_arch))
+        unless defined $req_host_gnu_type;
 }
 
 if ($req_host_gnu_type ne '' && $req_host_arch eq '') {
     $req_host_arch = gnutriplet_to_debarch($req_host_gnu_type);
-    die (sprintf(_g("unknown GNU system type %s, you must specify Debian architecture, too"), $req_host_gnu_type)) unless defined $req_host_arch;
+    die (sprintf(_g("unknown GNU system type %s, you must specify " .
+                    "Debian architecture, too"), $req_host_gnu_type))
+        unless defined $req_host_arch;
 }
 
 if ($req_host_gnu_type ne '' && $req_host_arch ne '') {