Browse Source

Dpkg::BuildProfiles: Initialize $cache_profiles when setting them

We should consider the value being cached when we set it manually.
Guillem Jover 11 years ago
parent
commit
d633338e57
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/Dpkg/BuildProfiles.pm

+ 1 - 0
scripts/Dpkg/BuildProfiles.pm

@@ -77,6 +77,7 @@ the environment variable B<DEB_BUILD_PROFILES>.
 sub set_build_profiles {
 sub set_build_profiles {
     my (@profiles) = @_;
     my (@profiles) = @_;
 
 
+    $cache_profiles = 1;
     @build_profiles = @profiles;
     @build_profiles = @profiles;
     Dpkg::BuildEnv::set('DEB_BUILD_PROFILES', join ' ', @profiles);
     Dpkg::BuildEnv::set('DEB_BUILD_PROFILES', join ' ', @profiles);
 }
 }