mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Try to fix some TypeErrors
This commit is contained in:
parent
1f3653af15
commit
0b6faa5f22
1 changed files with 4 additions and 3 deletions
|
@ -287,11 +287,12 @@ def resize_icon(iconpath, density):
|
||||||
if any(length > size for length in im.size):
|
if any(length > size for length in im.size):
|
||||||
oldsize = im.size
|
oldsize = im.size
|
||||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
im.thumbnail((size, size), Image.ANTIALIAS)
|
||||||
logging.info(iconpath, "was too large at", oldsize, "- new size is", im.size)
|
logging.info("%s was too large at %s - new size is %s" % (
|
||||||
|
iconpath, oldsize, im.size))
|
||||||
im.save(iconpath, "PNG")
|
im.save(iconpath, "PNG")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.info(iconpath, "is small enough:", im.size)
|
logging.debug("%s is small enough: %s" % im.size)
|
||||||
|
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
logging.info("WARNING: Failed resizing {0} - {1}".format(iconpath, e))
|
logging.info("WARNING: Failed resizing {0} - {1}".format(iconpath, e))
|
||||||
|
@ -782,7 +783,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
||||||
|
|
||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
logging.info("Creating signed index.")
|
logging.info("Creating signed index.")
|
||||||
logging.info("Key fingerprint: %s", repo_pubkey_fingerprint)
|
logging.info("Key fingerprint: %s" % repo_pubkey_fingerprint)
|
||||||
|
|
||||||
#Create a jar of the index...
|
#Create a jar of the index...
|
||||||
p = FDroidPopen(['jar', 'cf', 'index.jar', 'index.xml'], cwd=repodir)
|
p = FDroidPopen(['jar', 'cf', 'index.jar', 'index.xml'], cwd=repodir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue