mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Merge branch 'master' into verbose-rewrite
This commit is contained in:
commit
67b8825560
5 changed files with 32 additions and 29 deletions
|
@ -399,7 +399,7 @@ class vcs_hg(vcs):
|
|||
if subprocess.call(['hg', 'clone', self.remote, self.local]) !=0:
|
||||
raise VCSException("Hg clone failed")
|
||||
else:
|
||||
if subprocess.call('hg status -u | xargs rm -rf',
|
||||
if subprocess.call('hg status -uS | xargs rm -rf',
|
||||
cwd=self.local, shell=True) != 0:
|
||||
raise VCSException("Hg clean failed")
|
||||
if not self.refreshed:
|
||||
|
@ -409,11 +409,11 @@ class vcs_hg(vcs):
|
|||
self.refreshed = True
|
||||
|
||||
rev = str(rev if rev else 'default')
|
||||
if rev:
|
||||
revargs = [rev]
|
||||
if subprocess.call(['hg', 'checkout', '-C'] + revargs,
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Hg checkout failed")
|
||||
if not rev:
|
||||
return
|
||||
if subprocess.call(['hg', 'update', '-C', rev],
|
||||
cwd=self.local) != 0:
|
||||
raise VCSException("Hg checkout failed")
|
||||
|
||||
def gettags(self):
|
||||
p = subprocess.Popen(['hg', 'tags', '-q'],
|
||||
|
@ -565,7 +565,7 @@ def parse_metadata(metafile):
|
|||
# Defaults for fields that come from metadata...
|
||||
thisinfo['Name'] = None
|
||||
thisinfo['Auto Name'] = ''
|
||||
thisinfo['Category'] = 'None'
|
||||
thisinfo['Categories'] = 'None'
|
||||
thisinfo['Description'] = []
|
||||
thisinfo['Summary'] = ''
|
||||
thisinfo['License'] = 'Unknown'
|
||||
|
@ -655,6 +655,8 @@ def parse_metadata(metafile):
|
|||
if len(value) > 0:
|
||||
raise MetaDataException("Unexpected text on same line as " + field + " in " + metafile.name)
|
||||
elif fieldtype == 'string':
|
||||
if field == 'Category' and thisinfo['Categories'] == 'None':
|
||||
thisinfo['Categories'] = value.replace(';',',')
|
||||
thisinfo[field] = value
|
||||
elif fieldtype == 'flag':
|
||||
if value == 'Yes':
|
||||
|
@ -775,7 +777,7 @@ def write_metadata(dest, app):
|
|||
writefield('Disabled')
|
||||
if app['AntiFeatures']:
|
||||
writefield('AntiFeatures')
|
||||
writefield('Category')
|
||||
writefield('Categories')
|
||||
writefield('License')
|
||||
writefield('Web Site')
|
||||
writefield('Source Code')
|
||||
|
@ -1125,7 +1127,7 @@ def parse_androidmanifests(paths):
|
|||
vnsearch = re.compile(r'.*android:versionName="([^"]+?)".*').search
|
||||
psearch = re.compile(r'.*package="([^"]+)".*').search
|
||||
|
||||
vcsearch_g = re.compile(r'.*versionCode[ =]*([0-9]+?).*').search
|
||||
vcsearch_g = re.compile(r'.*versionCode[ =]*([0-9]+?)[^\d].*').search
|
||||
vnsearch_g = re.compile(r'.*versionName[ =]*"([^"]+?)".*').search
|
||||
psearch_g = re.compile(r'.*packageName[ =]*"([^"]+)".*').search
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue