Commit 795ca2d4 authored by Leo Iannacone's avatar Leo Iannacone

get a better filename for archives

parent 2cbb6304
...@@ -21,7 +21,11 @@ function __get_files_list_from_package(data, callback) { ...@@ -21,7 +21,11 @@ function __get_files_list_from_package(data, callback) {
data.package.debs.push(file); data.package.debs.push(file);
} }
else if (f.indexOf('.tar') >= 0 || file.extension == "changes" || file.extension == "dsc") { else if (f.indexOf('.tar') >= 0 || file.extension == "changes" || file.extension == "dsc") {
file.name = f.replace(data.package.name + '_' + data.package.version, '') file.name = f.replace(data.package.name + '_' + data.package.version + '.', '')
if (file.extension == 'changes')
file.name = file.extension
else if (f.indexOf('.tar') >= 0 && f.indexOf('.orig.') > 0)
file.name = 'orig.' + f.split('.orig.').pop()
data.package.archives.push(file) data.package.archives.push(file)
} }
else { else {
......
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