-
-
Save MihaiTabara/d63e41e4e083befb37b9cc420e187442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from snapcraft import storeapi | |
from snapcraft._store import _login | |
def main(): | |
packages = [{'name': "firefox", 'series': | |
storeapi.constants.DEFAULT_SERIES}] | |
channels = ['edge'] | |
store = storeapi.StoreClient() | |
if not _login(store, packages=packages, channels=channels, save=False): | |
raise RuntimeError('Bad Auth') | |
store.conf.parser.write(sys.stdout) | |
sys.stdout.flush() | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment