Просмотр исходного кода

Dpkg::BuildProfiles: Initialize $cache_profiles when setting them

We should consider the value being cached when we set it manually.
Guillem Jover лет назад: 11
Родитель
Сommit
d633338e57
1 измененных файлов с 1 добавлено и 0 удалено
  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 {
     my (@profiles) = @_;
 
+    $cache_profiles = 1;
     @build_profiles = @profiles;
     Dpkg::BuildEnv::set('DEB_BUILD_PROFILES', join ' ', @profiles);
 }