prepare to release 1.9.0

+ added support of several custom commands
* fix parsing pkg label
This commit is contained in:
arcan1s
2014-05-20 10:07:01 +04:00
parent 90ca8c89f5
commit 2de09cec32
6 changed files with 27 additions and 15 deletions

View File

@ -118,8 +118,9 @@ class DataEngine:
updatedData['value'] = value
elif (sourceName == "custom"):
updatedData['name'] = "custom"
value = str(data[QString(u'custom')].toUtf8()).decode("utf-8")
updatedData['value'] = value
updatedData['value'] = {}
for singleData in data.keys():
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8")
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "rblk")):
updatedData['name'] = "disk-r"
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])