mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Rename market to gplay
This commit is contained in:
parent
36f524e624
commit
b395095949
2 changed files with 7 additions and 7 deletions
|
|
@ -106,7 +106,7 @@ __complete_publish() {
|
||||||
|
|
||||||
__complete_checkupdates() {
|
__complete_checkupdates() {
|
||||||
opts="-h -v -p"
|
opts="-h -v -p"
|
||||||
lopts="--help --verbose --package --auto --autoonly --commit --market"
|
lopts="--help --verbose --package --auto --autoonly --commit --gplay"
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
-p|--package)
|
-p|--package)
|
||||||
__package
|
__package
|
||||||
|
|
|
||||||
|
|
@ -176,10 +176,10 @@ def check_repomanifest(app, sdk_path, branch=None):
|
||||||
return (None, msg)
|
return (None, msg)
|
||||||
|
|
||||||
|
|
||||||
# Check for a new version by looking at the Google market.
|
# Check for a new version by looking at the Google Play Store.
|
||||||
# Returns (None, "a message") if this didn't work, or (version, vercode) for
|
# Returns (None, "a message") if this didn't work, or (version, None) for
|
||||||
# the details of the current version.
|
# the details of the current version.
|
||||||
def check_market(app):
|
def check_gplay(app):
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
url = 'https://play.google.com/store/apps/details?id=' + app['id']
|
url = 'https://play.google.com/store/apps/details?id=' + app['id']
|
||||||
headers = {'User-Agent' : 'Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0'}
|
headers = {'User-Agent' : 'Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0'}
|
||||||
|
|
@ -225,7 +225,7 @@ def main():
|
||||||
help="Only process apps with auto-updates")
|
help="Only process apps with auto-updates")
|
||||||
parser.add_option("--commit", action="store_true", default=False,
|
parser.add_option("--commit", action="store_true", default=False,
|
||||||
help="Commit changes")
|
help="Commit changes")
|
||||||
parser.add_option("--market", action="store_true", default=False,
|
parser.add_option("--gplay", action="store_true", default=False,
|
||||||
help="Only print differences with the Play Store")
|
help="Only print differences with the Play Store")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
@ -239,9 +239,9 @@ def main():
|
||||||
print "No such package"
|
print "No such package"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if options.market:
|
if options.gplay:
|
||||||
for app in apps:
|
for app in apps:
|
||||||
version, reason = check_market(app)
|
version, reason = check_gplay(app)
|
||||||
if version is None and options.verbose:
|
if version is None and options.verbose:
|
||||||
if reason == '404':
|
if reason == '404':
|
||||||
print "%s (%s) is not in the Play Store" % (app['Auto Name'], app['id'])
|
print "%s (%s) is not in the Play Store" % (app['Auto Name'], app['id'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue