mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
First metadata checks rewrite; New metadata.py module
This commit is contained in:
parent
b6f5c15a7c
commit
fb38eb6b8c
10 changed files with 750 additions and 697 deletions
|
@ -28,7 +28,7 @@ from optparse import OptionParser
|
|||
import traceback
|
||||
import HTMLParser
|
||||
from distutils.version import LooseVersion
|
||||
import common
|
||||
import common, metadata
|
||||
from common import BuildException
|
||||
from common import VCSException
|
||||
|
||||
|
@ -295,7 +295,7 @@ def main():
|
|||
config = common.read_config(options)
|
||||
|
||||
# Get all apps...
|
||||
apps = common.read_metadata(options.verbose)
|
||||
apps = metadata.read_metadata(options.verbose)
|
||||
|
||||
# Filter apps according to command-line options
|
||||
if options.package:
|
||||
|
@ -453,7 +453,7 @@ def main():
|
|||
|
||||
if writeit:
|
||||
metafile = os.path.join('metadata', app['id'] + '.txt')
|
||||
common.write_metadata(metafile, app)
|
||||
metadata.write_metadata(metafile, app)
|
||||
if options.commit and logmsg:
|
||||
print "Commiting update for " + metafile
|
||||
gitcmd = ["git", "commit", "-m",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue