Make --no-src disable project database updates.

It makes sense that if there's no source code update that there should
be no effective change from the last KDE project database update on the
build list. So, implement bug 283026 to have --no-src give the same
semantics as --pretend for database updates.

BUG:283026
FIXED-IN:1.14.2
wilder
Michael Pyne 15 years ago
parent db6c646b47
commit 6556f7d768
  1. 6
      kdesrc-build

@ -3855,7 +3855,11 @@ sub ensure_projects_xml_present
my $url = "http://projects.kde.org/kde_projects.xml";
my $result = 1;
if (!pretending) {
# Must use ->phases() directly to tell if we will be updating since
# modules are not all processed until after this function is called...
my $updating = grep { /^update$/ } (@{$ctx->phases()});
if (!pretending && $updating) {
info " * Downloading projects.kde.org project database...";
$result = download_file($url, $file);
}

Loading…
Cancel
Save