Procházet zdrojové kódy

Dpkg::BuildProfiles: Allow multiple whitespace in get_build_profiles()

This makes the DEB_BUILD_PROFILES environment variable parsing more lax.

Signed-off-by: Guillem Jover <guillem@debian.org>
Johannes Schauer před 11 roky
rodič
revize
218d22c82f
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 4 0
      debian/changelog
  2. 1 1
      scripts/Dpkg/BuildProfiles.pm

+ 4 - 0
debian/changelog

@@ -16,6 +16,10 @@ dpkg (1.17.17) UNRELEASED; urgency=low
   * Initialize dependencies with the correct minimum version from a symbols
     file with multiple SONAMEs in dpkg-shlibdeps.
     Thanks to Jérémy Bobbio <lunar@debian.org>. Closes: #764721
+  * Perl modules:
+    - Allow multiple whitespace in Dpkg::BuildProfiles::get_build_profiles()
+      when parsing the DEB_BUILD_PROFILES environment variable.
+      Thanks to Johannes Schauer <j.schauer@email.de>.
 
   [ Updated programs translations ]
   * German (Sven Joachim).

+ 1 - 1
scripts/Dpkg/BuildProfiles.pm

@@ -56,7 +56,7 @@ sub get_build_profiles {
     return @build_profiles if $cache_profiles;
 
     if (Dpkg::BuildEnv::has('DEB_BUILD_PROFILES')) {
-        @build_profiles = split / /, Dpkg::BuildEnv::get('DEB_BUILD_PROFILES');
+        @build_profiles = split /\s+/, Dpkg::BuildEnv::get('DEB_BUILD_PROFILES');
     }
     $cache_profiles = 1;