From 09fb7969b4cf31f669ca624f3738c80c1c5ef6c8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 23 May 2014 17:07:41 -0400 Subject: [PATCH] do not include URL in index.xml because it will get out of date As far as I can tell, the 'url' metadata in index.xml is not used at all by the client. In order to keep it up-to-date in the local repo, it would have to regenerate index.xml and index.jar each time the IP address changed. That would mean a decent amount of work happening in the background, all the update an unused field in index.xml. --- src/org/fdroid/fdroid/localrepo/LocalRepoManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java b/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java index 1aef45b92..0b8abd410 100644 --- a/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java +++ b/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java @@ -298,7 +298,6 @@ public class LocalRepoManager { repo.setAttribute("pubkey", Hasher.hex(LocalRepoKeyStore.get(context).getCertificate())); long timestamp = System.currentTimeMillis() / 1000L; repo.setAttribute("timestamp", String.valueOf(timestamp)); - repo.setAttribute("url", uriString); rootElement.appendChild(repo); Element repoDesc = doc.createElement("description");