Esempio n. 1
0
def stripPrecompiled(string):
    if string.startswith('precompiled/'):
        return string[12:]
    return string


files = [stripPrecompiled(file) for file in argv[1:]]

Updater.MAIN_URL = 'file:' + updateDirectory
downloader = XMLFileDownloader()
downloader.start()
plugins = PluginCollection()

progress = StderrProgress()
checksummer = Checksummer(progress)
if len(files) == 0:
    checksummer.updateFromLocal()
else:
    if files[0] == '--auto':
        automatic = True
        files = files[1:]
    else:
        automatic = False
    checksummer.updateFromLocal(files)
    # check dependencies
    check = files
    needUpload = []
    while len(check) > 0:
        implied = []
        for file in check:
Esempio n. 2
0
	updateDirectory = '/var/www/update/'

def stripPrecompiled(string):
	if string.startswith('precompiled/'):
		return string[12:]
	return string

files = [stripPrecompiled(file) for file in argv[1:]]

Updater.MAIN_URL = 'file:' + updateDirectory
downloader = XMLFileDownloader()
downloader.start()
plugins = PluginCollection()

progress = StderrProgress()
checksummer = Checksummer(progress)
if len(files) == 0:
	checksummer.updateFromLocal()
else:
	if files[0] == '--auto':
		automatic = True
		files = files[1:]
	else:
		automatic = False
	checksummer.updateFromLocal(files)
	# check dependencies
	check = files
	needUpload = []
	while len(check) > 0:
		implied = []
		for file in check:
Esempio n. 3
0
#!/bin/sh
''''exec "$(dirname "$0")"/../fiji --jython "$0" "$@" # (call again with fiji)'''

from sys import argv

from fiji.updater.logic import Checksummer, PluginCollection
from fiji.updater.util import StderrProgress
from java.lang.System import getProperty

dbPath = getProperty('fiji.dir') + '/db.xml.gz'

progress = StderrProgress()
checksummer = Checksummer(progress)
if len(argv) > 1:
	checksummer.updateFromLocal(argv[1:])
else:
	checksummer.updateFromLocal()
plugins = PluginCollection.getInstance()
plugins.sort()
for plugin in plugins:
	print plugin, plugin.current.checksum