Bug 283026 - --no-src downloads the projects.xml file, making it impossible to run kdesrc-build without internet connection
Summary: --no-src downloads the projects.xml file, making it impossible to run kdesrc-...
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 11:45 UTC by Ralf Jung
Modified: 2011-10-01 17:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.14.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2011-09-29 11:45:51 UTC
Version:           git (using KDE 4.6.5) 
OS:                Linux

Even if there is a cached version of kde_projects.xml present, and if the --no-src option is passed to kdesrc-build, it attempts to re-download the projects file and stops execution if that fails. This effectively prevents using kdesrc-build without an internet connection (to compile previously downloaded sources, for example).

Reproducible: Always

Steps to Reproduce:
Start ./kdesrc--build --no-src with the kde_projects.xml file being present from a previous run.

Actual Results:  
The file is re-downloaded, and if that fails, kdesrc-build stops.

Expected Results:  
It should not be re-downloaded (or, at least, failure to download the file should not stop the script).
Comment 1 Michael Pyne 2011-10-01 17:19:41 UTC
Git commit 6556f7d76898d63e2602390db490c6235f91ead2 by Michael Pyne.
Committed on 01/10/2011 at 19:17.
Pushed by mpyne into branch 'master'.

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

M  +5    -1    kdesrc-build

http://commits.kde.org/kdesrc-build/6556f7d76898d63e2602390db490c6235f91ead2
Comment 2 Ralf Jung 2011-10-01 17:39:47 UTC
It's working fine, thanks a lot!