#!/usr/bin/env python

import loofah.core
import sys

a = sys.argv
if len(a) > 1:
    loofah.core.VERSION_NAME = a[1]

if len(a) > 2:
    loofah.core.SUITE = a[2]

from loofah.sources import digest_sources

print("Digesting from remote")
sources = digest_sources()
print("Saving objects")
sources.save()
print("Done.")
