Other adjustments (formatting, debug) + update cache
This commit is contained in:
parent
cfff1ba291
commit
74767c544d
3 changed files with 7 additions and 4 deletions
|
@ -68,7 +68,7 @@ kdepim-runtime kdepim-runtime
|
||||||
kdesdk-thumbnailers kdesdk-thumbnailers
|
kdesdk-thumbnailers kdesdk-thumbnailers
|
||||||
kdf kdf
|
kdf kdf
|
||||||
kdgantt2 kdgantt2
|
kdgantt2 kdgantt2
|
||||||
kdiamond kdiamond git
|
kdiamond kdiamond
|
||||||
kdnssd kdnssd
|
kdnssd kdnssd
|
||||||
kfloppy kfloppy
|
kfloppy kfloppy
|
||||||
kfourinline kfourinline
|
kfourinline kfourinline
|
||||||
|
|
|
Binary file not shown.
|
@ -9,8 +9,6 @@ import pickle
|
||||||
import git
|
import git
|
||||||
import sarge
|
import sarge
|
||||||
|
|
||||||
logging.basicConfig(format='%(levelname)s:%(message)s',
|
|
||||||
level=logging.INFO)
|
|
||||||
|
|
||||||
class GitHashCache:
|
class GitHashCache:
|
||||||
|
|
||||||
|
@ -120,9 +118,14 @@ def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("repository", help="OBS repository to use")
|
parser.add_argument("repository", help="OBS repository to use")
|
||||||
parser.add_argument("mapping_file", help="KDE:OBS repository mapping file")
|
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()
|
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 = Path.home() / ".local/share/obs_{}_cache".format(options.repository.replace(":", "_"))
|
||||||
cache_file = str(cache_file)
|
cache_file = str(cache_file)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue