From 9bf75d830a2109b5b5febb4a7f0c61aeb7eee423 Mon Sep 17 00:00:00 2001 From: uniqdom Date: Sun, 20 Jan 2013 18:22:25 -0300 Subject: [PATCH 1/3] FinfAgent (FlurryAgent replacement) srclib --- fdroidserver/common.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 84d15fc0..f62ddb43 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1170,6 +1170,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): vcs.gotorevision(ref) return sdir + if name == 'FinfAgent': + sdir = os.path.join(extlib_dir, 'FinfAgent') + vcs = getvcs('git', + 'https://github.com/uniqdom/FinfAgent.git', sdir, sdk_path) + vcs.gotorevision(ref) + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + sdir]) != 0: + raise BuildException('Error updating FinfAgent project') + return sdir + if name == 'MobAdMob': sdir = os.path.join(extlib_dir, 'MobAdMob') vcs = getvcs('git', From 9bd017d78f8670ee453230945f891ce87371fceb Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 21 Jan 2013 11:48:38 +0000 Subject: [PATCH 2/3] Brief addition of missing auto-update docs --- docs/fdroid.texi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/fdroid.texi b/docs/fdroid.texi index 020bf311..1e519aa1 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -436,6 +436,7 @@ The following sections describe the fields recognised within the file. * Disabled:: * Requires Root:: * Update Check Mode:: +* Auto Update Mode:: * Current Version:: * Current Version Code:: @end menu @@ -908,6 +909,36 @@ it's appropriate. (Also, it currently only works for git repositories). @code{Market} - This is being phased out and should not be used! @end itemize +@node Auto Update Mode +@section Auto Update Mode + +@cindex Auto Update Mode + +This determines the method using for auto-generating new builds new releases are +available - in other words, adding a new Build Version line to the metadata. +This happens in conjunction with the 'Update Check Mode' functionality - i.e. +when an update is detected by that, it is also processed by this. + +Valid modes are: + +@itemize +@item +@code{None} - No auto-updating is done +@item +@code{Version} - Identifies the target commit (i.e. tag) for the new build based +on the given version specification, which is simply text in which %v and %c are +replaced with the required version name and version code respectively. + +For example, if an app always has a tag "2.7.2" corresponding to version 2.7.2, +you would simply specify "Version %v". If an app always has a tag "ver_1234" +for a version with version code 1234, you would specify "Version ver_%c". + +Additionally, a suffix can be added to the version name at this stage, to +differentiate F-Droid's build from the original. Continuing the first example +above, you would specify that as "Version +-fdroid %v" - "-fdroid" is the suffix. +@end itemize + + @node Current Version @section Current Version From 3ff2b289cdfb9ec7c34f1da0e88825c1631c5eb7 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 22 Jan 2013 09:49:33 +0000 Subject: [PATCH 3/3] Minor changes --- fdroidserver/build.py | 3 ++- fdroidserver/common.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 0a95e55c..403c01ef 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -233,7 +233,8 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, sdk_path, force): raise BuildException("Build.py failed on server for %s:%s" % (app['id'], thisbuild['version']), output.strip(), error.strip()) # Retrieve the built files... - if(force): + print "Retrieving build output..." + if force: ftp.chdir('/home/vagrant/tmp') else: ftp.chdir('/home/vagrant/unsigned') diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 4955c4a3..4408cd23 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1088,7 +1088,7 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False): return sdir return libdir -#Leave the native code as a blob; submodules required for that + #Leave the native code as a blob; submodules required for that if name == 'Libpd': sdir = os.path.join(extlib_dir, 'Libpd') vcs = getvcs('git',