MB = 2 ** 20
- size = (dev.meta['SIZE'] + MB - 1) // MB
+ size = (dev.size + MB - 1) // MB
shrinked = 'shrinked' in session and session['shrinked']
postfix = " (shrinked)" if shrinked else ''
try:
dev = session['device']
if "checksum" not in session:
- size = dev.meta['SIZE']
+ size = dev.size
md5 = MD5(out)
session['checksum'] = md5.compute(session['snapshot'], size)
def upload_image(session):
d = session["dialog"]
- size = session['device'].meta['SIZE']
+ size = session['device'].size
if "account" not in session:
d.msgbox("You need to provide your ~okeanos login username before you "
"image creation process?\n\nChoose <Yes> to run the wizard, " \
"<No> to run the snf-image-creator in expert mode or press " \
"ESC to quit the program." \
- % (dev.ostype if dev.ostype == dev.distro else "%s/%s" %
- (dev.distro, dev.ostype))
+ % (dev.ostype if dev.ostype == dev.distro else "%s (%s)" %
+ (dev.ostype, dev.distro))
update_background_title(session)