"...git@scm.cms.hu-berlin.de:iqb/verona-modules-aspect.git" did not exist on "2998b6bfe74324f3cf89bd270199825ae3a95108"
Newer
Older
import os, sys, re, shutil, zipfile, datetime
from eotimeseriesviewer.externals.qps.make import updateexternals
from eotimeseriesviewer.externals.qps.make.updateexternals import RemoteInfo, updateRemoteLocations
from eotimeseriesviewer import DIR_REPO
import git # install with: pip install gitpython
updateexternals.setProjectRepository(DIR_REPO)
RemoteInfo.create(r'https://bitbucket.org/jakimowb/qgispluginsupport.git',
key='qps',
#prefixLocal='site-packages/qps',
prefixLocal='eotimeseriesviewer/externals/qps',
prefixRemote=r'qps',
remoteBranch='master')
def updateRemotes(remoteLocations):
"""
Shortcut to update from terminal
:param remoteLocations: str or list of str with remote location keys to update.
"""
if isinstance(remoteLocations, str):
remoteLocations = [remoteLocations]
updateexternals.updateRemoteLocations(remoteLocations)
def run():
updateRemotes('qps')
if __name__ == "__main__":
# update remotes source-code sources
to_update = ['qps']