1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Metadata: various version updates

This commit is contained in:
Ciaran Gultnieks 2012-01-30 21:11:50 +00:00
parent afc0175eab
commit d30e9c5a08
6 changed files with 61 additions and 14 deletions

View File

@ -30,9 +30,11 @@ def getvcs(vcstype, remote, local):
elif vcstype == 'git-svn': elif vcstype == 'git-svn':
return vcs_gitsvn(remote, local) return vcs_gitsvn(remote, local)
elif vcstype == 'hg': elif vcstype == 'hg':
return vcs_hg(remote,local) return vcs_hg(remote, local)
elif vcstype == 'bzr': elif vcstype == 'bzr':
return vcs_bzr(remote,local) return vcs_bzr(remote, local)
elif vcstype == 'srclib':
return vcs_srclib(remote, local)
raise VCSException("Invalid vcs type " + vcstype) raise VCSException("Invalid vcs type " + vcstype)
class vcs: class vcs:
@ -56,6 +58,7 @@ class vcs:
self.remote = remote self.remote = remote
self.local = local self.local = local
self.refreshed = False self.refreshed = False
self.srclib = None
# Take the local repository to a clean version of the given revision, which # Take the local repository to a clean version of the given revision, which
# is specificed in the VCS's native format. Beforehand, the repository can # is specificed in the VCS's native format. Beforehand, the repository can
@ -69,6 +72,11 @@ class vcs:
def initsubmodules(self): def initsubmodules(self):
raise VCSException('Submodules not supported for this vcs type') raise VCSException('Submodules not supported for this vcs type')
# Returns the srclib (name, path) used in setting up the current
# revision, or None.
def getsrclib(self):
return self.srclib
class vcs_git(vcs): class vcs_git(vcs):
# If the local directory exists, but is somehow not a git repository, git # If the local directory exists, but is somehow not a git repository, git
@ -243,6 +251,28 @@ class vcs_bzr(vcs):
cwd=self.local) != 0: cwd=self.local) != 0:
raise VCSException("Bzr revert failed") raise VCSException("Bzr revert failed")
class vcs_srclib(vcs):
def gotorevision(self, rev):
# Yuk...
extlib_dir = 'build/extlib'
if os.path.exists(self.local):
shutil.rmtree(self.local)
if self.remote.find(':') != -1:
srclib, path = self.remote.split(':')
else:
srclib = self.remote
path = None
libdir = getsrclib(srclib + '@' + rev, extlib_dir)
self.srclib = (srclib, libdir)
if path:
libdir = os.path.join(libdir, path)
shutil.copytree(libdir, self.local)
return self.local
# Get the type expected for a given metadata field. # Get the type expected for a given metadata field.
def metafieldtype(name): def metafieldtype(name):
@ -542,6 +572,8 @@ class MetaDataException(Exception):
# Get the specified source library. # Get the specified source library.
# Returns the path to it. # Returns the path to it.
# TODO: These are currently just hard-coded in this method. It will be a
# metadata-driven system eventually, but not yet.
def getsrclib(spec, extlib_dir): def getsrclib(spec, extlib_dir):
name, ref = spec.split('@') name, ref = spec.split('@')
@ -574,6 +606,12 @@ def getsrclib(spec, extlib_dir):
raise BuildException('Error updating FacebookSDK project') raise BuildException('Error updating FacebookSDK project')
return libdir return libdir
if name == 'OI':
sdir = os.path.join(extlib_dir, 'OI')
vcs = getvcs('git-svn',
'http://openintents.googlecode.com/svn/trunk/', sdir)
vcs.gotorevision(ref)
return sdir
raise BuildException('Unknown srclib ' + name) raise BuildException('Unknown srclib ' + name)
@ -745,6 +783,10 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
for lib in build['srclibs'].split(';'): for lib in build['srclibs'].split(';'):
name, _ = lib.split('@') name, _ = lib.split('@')
srclibpaths.append((name, getsrclib(lib, extlib_dir))) srclibpaths.append((name, getsrclib(lib, extlib_dir)))
basesrclib = vcs.getsrclib()
# If one was used for the main source, add that too.
if basesrclib:
srclibpaths.append(basesrclib)
# Run a pre-build command if one is required... # Run a pre-build command if one is required...
if build.has_key('prebuild'): if build.has_key('prebuild'):

View File

@ -18,6 +18,6 @@ Build Version:0.1.7_rc1,10,0.1.7_rc1,target=android-8
Build Version:0.1.7_rc2,11,0.1.7_rc2,target=android-8 Build Version:0.1.7_rc2,11,0.1.7_rc2,target=android-8
Update Check Mode:Market Update Check Mode:Market
Current Version:0.1.7_rc1 Current Version:0.1.7_rc2
Current Version Code:10 Current Version Code:11

View File

@ -22,3 +22,7 @@ cd .. && \
cp -r Util/src . && \ cp -r Util/src . && \
rm -rf Util/ rm -rf Util/
Update Check Mode:Market
Current Version:3.0.1
Current Version Code:15

View File

@ -13,4 +13,9 @@ Repo Type:hg
Repo:https://code.google.com/p/kitchentimer/ Repo:https://code.google.com/p/kitchentimer/
Build Version:1.1.6,116,aec14b3db581 Build Version:1.1.6,116,aec14b3db581
Build Version:1.2.0,121,!No source code
Update Check Mode:Market
Current Version:1.2.0
Current Version Code:121

View File

@ -18,20 +18,15 @@ Repo:https://github.com/liato/android-bankdroid.git
# work on devices anyway, it would inherit either nothing, or the wrong thing! # work on devices anyway, it would inherit either nothing, or the wrong thing!
# Ref: http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b # Ref: http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b
Build Version:1.6.3,102,612aae755a82008f44a6,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml Build Version:1.6.3,102,612aae755a82008f44a6,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
Build Version:1.7.2,110,fec08e34a157a3e0b455,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml Build Version:1.7.2,110,fec08e34a157a3e0b455,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
Build Version:1.7.3,115,!a08cab7e66c70e7b0f5c but wrong version code in repo Build Version:1.7.3,115,!a08cab7e66c70e7b0f5c but wrong version code in repo
Build Version:1.8.0,120,899e4b957e512bf55254,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml Build Version:1.8.0,120,899e4b957e512bf55254,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
Build Version:1.8.1,121,b5f637bbb301aa2fe997c9f3367cfb144d158633,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml Build Version:1.8.1,121,b5f637bbb301aa2fe997c9f3367cfb144d158633,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
Build Version:1.8.1,121,9f626b0dedb01cb90a16fb127a041c5f3dd1c579,target=android-10,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml Build Version:1.8.1,121,9f626b0dedb01cb90a16fb127a041c5f3dd1c579,target=android-10,encoding=utf-8,extlibs=commons-io/commons-io-2.0.1.jar;guava-r08/guava-r08.jar,prebuild=sed -i "s@parent=\"android:WindowTitleBackground\"@@" res/values/styles.xml
Build Version:1.8.5,128,263023cd883da7b12c94cb46b9d3fdd23068446c,target=android-11,encoding=utf-8,prebuild=mv lib libs Build Version:1.8.5,128,263023cd883da7b12c94cb46b9d3fdd23068446c,target=android-11,encoding=utf-8,prebuild=mv lib libs
Build Version:1.8.5,128,e6582cc4249e2d6ba6a8630322a5dc26e54d35ff,target=android-11,encoding=utf-8,prebuild=mv lib libs
Update Check Mode:Market Update Check Mode:Market
Current Version:1.8.5 Current Version:1.8.7
Current Version Code:128 Current Version Code:131

View File

@ -55,8 +55,9 @@ Build Version:3.0.54-47,447,cr3.0.54-47,subdir=android,rm=android/build.properti
Build Version:3.0.55-5,505,cr3.0.55-5,subdir=android,rm=android/build.properties,buildjni=yes Build Version:3.0.55-5,505,cr3.0.55-5,subdir=android,rm=android/build.properties,buildjni=yes
Build Version:3.0.55-9,509,cr3.0.55-9,subdir=android,rm=android/build.properties,buildjni=yes Build Version:3.0.55-9,509,cr3.0.55-9,subdir=android,rm=android/build.properties,buildjni=yes
Build Version:3.0.55-14,514,cr3.0.55-14,subdir=android,rm=android/build.properties,buildjni=yes Build Version:3.0.55-14,514,cr3.0.55-14,subdir=android,rm=android/build.properties,buildjni=yes
Build Version:3.0.55-30,530,cr3.0.55-30,subdir=android,rm=android/ant.properties,buildjni=yes
Update Check Mode:Market Update Check Mode:Market
Current Version:3.0.55-14 Current Version:3.0.55-30
Current Version Code:514 Current Version Code:530