Commit 967b2929 authored by Leo Iannacone's avatar Leo Iannacone

still more style code

parent c31155ff
...@@ -61,10 +61,8 @@ if config.routes.debomatic ...@@ -61,10 +61,8 @@ if config.routes.debomatic
return return
app.use config.routes.debomatic, serve_static(config.debomatic.path) app.use config.routes.debomatic, serve_static(config.debomatic.path)
app.use config.routes.debomatic, serve_index(config.debomatic.path, app.use(config.routes.debomatic, serve_index(config.debomatic.path,
view: "details" {view: "details", icons: true}))
icons: true
)
# serve stylesheet-javascript # serve stylesheet-javascript
app.use serve_static(__dirname + "/public") app.use serve_static(__dirname + "/public")
......
...@@ -15,8 +15,7 @@ __get_files_list_from_package = (data, callback) -> ...@@ -15,8 +15,7 @@ __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 else if file.extension in ["changes", "dsc"] or f.indexOf('.tar') > 0
f.indexOf('.tar') > 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 = file.extension file.name = file.extension
...@@ -38,9 +37,7 @@ __send_package_files_list = (event_name, socket, data) -> ...@@ -38,9 +37,7 @@ __send_package_files_list = (event_name, socket, data) ->
__read_package_status = (data, cb) -> __read_package_status = (data, cb) ->
package_path = utils.get_package_path(data) package_path = utils.get_package_path(data)
package_json = path.join(package_path, data.package.orig_name + ".json") package_json = path.join(package_path, data.package.orig_name + ".json")
fs.readFile package_json, fs.readFile package_json, {encoding: "utf8"}, (err, content) ->
encoding: "utf8"
, (err, content) ->
if err if err
utils.errors_handler "Client:__read_package_status:", err utils.errors_handler "Client:__read_package_status:", err
return return
......
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