From 6556f7d76898d63e2602390db490c6235f91ead2 Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Sat, 1 Oct 2011 13:17:58 -0400 Subject: [PATCH] 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 --- kdesrc-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kdesrc-build b/kdesrc-build index 3d2b246..357054d 100755 --- a/kdesrc-build +++ b/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); }