From 4e153cc60dffcba7319208359884848d220bc6a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Thu, 26 Jun 2014 12:41:50 +0200 Subject: [PATCH] Error if UCM:Tags is used with git-svn without tags set up --- fdroidserver/checkupdates.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 83604f6f..7ce14575 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -102,6 +102,9 @@ def check_tags(app, pattern): if repotype not in ('git', 'git-svn', 'hg', 'bzr'): return (None, 'Tags update mode only works for git, hg, bzr and git-svn repositories currently', None) + if repotype == 'git-svn' and ';' not in app['Repo']: + return (None, 'Tags update mode used in git-svn, but the repo was not set up with tags', None) + # Set up vcs interface and make sure we have the latest code... vcs = common.getvcs(app['Repo Type'], app['Repo'], build_dir) -- 2.30.2