Merge remote branch 'origin/deployed'

* origin/deployed:
  silence keyringanalyzer
  fix path handling in keyringanalyzer
  add flattr button
This commit is contained in:
Jan Dittberner 2010-06-11 20:56:05 +02:00
commit 556e254870

View file

@ -31,6 +31,7 @@ import pkg_resources
import glob import glob
import ConfigParser import ConfigParser
import os import os
import os.path
def _get_keyrings(): def _get_keyrings():
@ -38,10 +39,9 @@ def _get_keyrings():
configured in ddportfolio.ini.""" configured in ddportfolio.ini."""
my_config = ConfigParser.ConfigParser() my_config = ConfigParser.ConfigParser()
my_config.readfp(pkg_resources.resource_stream(__name__, 'ddportfolio.ini')) my_config.readfp(pkg_resources.resource_stream(__name__, 'ddportfolio.ini'))
keyrings = glob.glob(my_config.get('DEFAULT', 'keyring.dir') + keyringdir = os.path.expanduser(my_config.get('DEFAULT', 'keyring.dir'))
'/*.gpg') keyrings = glob.glob(os.path.join(keyringdir, '*.gpg'))
keyrings.extend(glob.glob(my_config.get('DEFAULT', 'keyring.dir') + keyrings.extend(glob.glob(os.path.join(keyringdir, '*.pgp')))
'/*.pgp'))
keyrings.sort() keyrings.sort()
return keyrings return keyrings