1
0
Fork 0

Other adjustments (formatting, debug) + update cache

This commit is contained in:
Luca Beltrame 2016-09-18 01:01:42 +02:00
parent cfff1ba291
commit 74767c544d
3 changed files with 7 additions and 4 deletions

View file

@ -68,7 +68,7 @@ kdepim-runtime kdepim-runtime
kdesdk-thumbnailers kdesdk-thumbnailers
kdf kdf
kdgantt2 kdgantt2
kdiamond kdiamond git
kdiamond kdiamond
kdnssd kdnssd
kfloppy kfloppy
kfourinline kfourinline

1 akonadi akonadi-server
68 kdesdk-thumbnailers kdesdk-thumbnailers
69 kdf kdf
70 kdgantt2 kdgantt2
71 kdiamond kdiamond git
72 kdnssd kdnssd
73 kfloppy kfloppy
74 kfourinline kfourinline

Binary file not shown.

View file

@ -9,8 +9,6 @@ import pickle
import git
import sarge
logging.basicConfig(format='%(levelname)s:%(message)s',
level=logging.INFO)
class GitHashCache:
@ -120,9 +118,14 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("repository", help="OBS repository to use")
parser.add_argument("mapping_file", help="KDE:OBS repository mapping file")
parser.add_argument("--debug", help="Show debugging output", action="store_true")
options = parser.parse_args()
level = logging.INFO if not options.debug else logging.DEBUG
logging.basicConfig(format='%(levelname)s:%(message)s',
level=level)
cache_file = Path.home() / ".local/share/obs_{}_cache".format(options.repository.replace(":", "_"))
cache_file = str(cache_file)