From: Ciaran Gultnieks Date: Fri, 13 Jan 2012 08:23:46 +0000 (+0000) Subject: Begin work on better ways to check for updates X-Git-Tag: 0.1~1114 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fd7278c4ef969fa6074e451fab3d7bee5ef5c779;p=fdroidserver.git Begin work on better ways to check for updates --- diff --git a/checkmarket.py b/checkmarket.py deleted file mode 100755 index f8e5c80c..00000000 --- a/checkmarket.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# checkmarket.py - part of the FDroid server tools -# Copyright (C) 2011, Ciaran Gultnieks, ciaran@ciarang.com -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - -import subprocess - -#Read configuration... -repo_name = None -repo_description = None -repo_icon = None -repo_url = None -execfile('config.py') - -subprocess.call('./run.sh ' + market_user + ' ' + market_password - + ' ' + market_deviceid, - cwd='marketcheck', shell=True) - diff --git a/checkmarket2.py b/checkupdates.py similarity index 100% rename from checkmarket2.py rename to checkupdates.py diff --git a/common.py b/common.py index 5aea8db2..c825d7ce 100644 --- a/common.py +++ b/common.py @@ -325,6 +325,7 @@ def parse_metadata(metafile, **kw): thisinfo['Donate'] = None thisinfo['Disabled'] = None thisinfo['AntiFeatures'] = None + thisinfo['Update Check Mode'] = 'Market' thisinfo['Market Version'] = '' thisinfo['Market Version Code'] = '0' thisinfo['Repo Type'] = '' diff --git a/marketcheck/.gitignore b/marketcheck/.gitignore deleted file mode 100644 index 6b468b62..00000000 --- a/marketcheck/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.class diff --git a/marketcheck/README.txt b/marketcheck/README.txt deleted file mode 100644 index 009014c3..00000000 --- a/marketcheck/README.txt +++ /dev/null @@ -1,11 +0,0 @@ - -=Libraries= - -androidmarketapi-x.x.jar is Apache 2.0 licensed - source from: - - http://code.google.com/p/android-market-api/ - -https://code.google.com/p/protobuf/ is New BSD licensed - source from: - - https://code.google.com/p/protobuf/ - diff --git a/marketcheck/androidmarketapi-0.6.jar b/marketcheck/androidmarketapi-0.6.jar deleted file mode 100644 index b7f54192..00000000 Binary files a/marketcheck/androidmarketapi-0.6.jar and /dev/null differ diff --git a/marketcheck/make.sh b/marketcheck/make.sh deleted file mode 100755 index aec4fb1f..00000000 --- a/marketcheck/make.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -javac -classpath androidmarketapi-0.6.jar test.java diff --git a/marketcheck/protobuf-java-2.2.0.jar b/marketcheck/protobuf-java-2.2.0.jar deleted file mode 100644 index 7a0ccde1..00000000 Binary files a/marketcheck/protobuf-java-2.2.0.jar and /dev/null differ diff --git a/marketcheck/run.sh b/marketcheck/run.sh deleted file mode 100755 index 59515a84..00000000 --- a/marketcheck/run.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -java -classpath ".:androidmarketapi-0.6.jar" test $1 $2 $3 diff --git a/marketcheck/test.java b/marketcheck/test.java deleted file mode 100644 index 28431806..00000000 --- a/marketcheck/test.java +++ /dev/null @@ -1,147 +0,0 @@ - -import java.io.*; -import java.util.*; - -import com.gc.android.market.api.MarketSession.Callback; -import com.gc.android.market.api.MarketSession; -import com.gc.android.market.api.model.Market.App; -import com.gc.android.market.api.model.Market.AppsResponse; -import com.gc.android.market.api.model.Market.AppsRequest; -import com.gc.android.market.api.model.Market.CommentsRequest; -import com.gc.android.market.api.model.Market.GetImageRequest; -import com.gc.android.market.api.model.Market.GetImageResponse; -import com.gc.android.market.api.model.Market.ResponseContext; -import com.gc.android.market.api.model.Market.GetImageRequest.AppImageUsage; - -class test { - - /** - * @param args - */ - public static void main(String[] args) { - try { - if(args.length < 3) { - System.out.println("Parameters :\n" + - "email password deviceid"); - return; - } - String login = args[0]; - String password = args[1]; - String deviceid = args[2]; - - // Get a list of apps we want to check - i.e. those that - // we have metadata files for... - File dir = new File("../metadata"); - List apps = new ArrayList(); - String[] metafiles = dir.list(); - for (int i=0; i