chiark / gitweb /
Error if UCM:Tags is used with git-svn without tags set up
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:41:50 +0000 (12:41 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:41:50 +0000 (12:41 +0200)
fdroidserver/checkupdates.py

index 83604f6f17b0ee42c9ce0d84f50b6ec31c462a0c..7ce1457510c1b35b6dd114a8ed99a22bca9c60c8 100644 (file)
@@ -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)