Commit eb9f0a2a authored by Leo Iannacone's avatar Leo Iannacone

add support to source format 1.0 - closes #6

parent b53dd3f6
# unreleased # unreleased
* [new] [module] add parser for blhc log file
* [new] show file size for package files * [new] show file size for package files
* [new] disable autoscroll pressing on "back on top" panel * [new] disable autoscroll pressing on "back on top" panel
* [new] [module] add parser for blhc log file
* [fix] add support to sourceupload.changes
* [fix] [module] use readline while parsing piuparts log file * [fix] [module] use readline while parsing piuparts log file
* [fix] add support to sourceupload.changes
* [fix] add support to source format 1.0 - closes #6
# 1.0.0 (2014-07-23) # 1.0.0 (2014-07-23)
* Migrate to coffee-script, code refactory * Migrate to coffee-script, code refactory
......
...@@ -21,12 +21,14 @@ get_files_list_from_package = (data, callback) -> ...@@ -21,12 +21,14 @@ get_files_list_from_package = (data, callback) ->
file.name = f.split("_")[0] file.name = f.split("_")[0]
if file.extension in ["deb", "ddeb", "udeb"] if file.extension in ["deb", "ddeb", "udeb"]
data.package.debs.push(file) data.package.debs.push(file)
else if file.extension in ["changes", "dsc"] or f.indexOf('.tar') > 0 else if file.extension in ["changes", "dsc"] or f.indexOf('.tar.') > 0 or f.indexOf('.diff.') > 0
file.name = f.replace(data.package.orig_name + ".", "") file.name = f.replace(data.package.orig_name + ".", "")
if file.extension is "changes" if file.extension is "changes"
file.name = f.split('_').pop() file.name = f.split('_').pop()
else if f.indexOf('.orig.tar') > 0 else if f.indexOf('.orig.tar') > 0
file.name = "orig." + f.split(".orig.").pop() file.name = "orig." + f.split(".orig.").pop()
else if f.indexOf('.diff.') > 0
file.name = "diff." + f.split(".diff.").pop()
data.package.sources.push(file) data.package.sources.push(file)
else else
file.name = file.extension file.name = file.extension
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment