Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
74d19ba8
Commit
74d19ba8
authored
Jul 16, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use for instead of forEach
parent
a772559d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
debomatic-webui/lib/client.coffee
debomatic-webui/lib/client.coffee
+5
-9
No files found.
debomatic-webui/lib/client.coffee
View file @
74d19ba8
...
...
@@ -4,15 +4,15 @@ __get_files_list_from_package = (data, callback) ->
data
.
package
.
files
=
[]
data
.
package
.
debs
=
[]
data
.
package
.
sources
=
[]
f
iles
.
forEach
(
f
)
->
f
or
f
in
files
file
=
{}
file
.
extension
=
f
.
split
(
"."
).
pop
()
continue
if
file
.
extension
in
config
.
debomatic
.
excluded_files
file
.
path
=
path
.
join
(
package_path
,
f
)
.
replace
(
config
.
debomatic
.
path
,
config
.
routes
.
debomatic
)
file
.
orig_name
=
f
file
.
name
=
f
.
split
(
"_"
)[
0
]
file
.
extension
=
f
.
split
(
"."
).
pop
()
return
if
file
.
extension
in
config
.
debomatic
.
excluded_files
if
file
.
extension
in
[
"deb"
,
"ddeb"
,
"udeb"
]
data
.
package
.
debs
.
push
(
file
)
else
if
file
.
extension
in
[
"changes"
,
"dsc"
]
or
...
...
@@ -26,12 +26,9 @@ __get_files_list_from_package = (data, callback) ->
else
file
.
name
=
file
.
extension
data
.
package
.
files
.
push
(
file
)
return
callback
(
data
)
callback
data
return
return
__send_package_files_list
=
(
event_name
,
socket
,
data
)
->
__get_files_list_from_package
data
,
(
new_data
)
->
socket
.
emit
event_name
,
new_data
...
...
@@ -113,8 +110,7 @@ __handler_get_file = (socket, data) ->
send
=
(
event_name
,
socket
,
data
)
->
data
.
file
.
content
=
null
socket
.
emit
event_name
,
data
utils
.
watch_path_onsocket
_e
.
file_newcontent
,
socket
,
data
,
file_path
,
send
utils
.
watch_path_onsocket
(
_e
.
file_newcontent
,
socket
,
data
,
file_path
,
send
)
if
data
.
file
.
name
in
config
.
web
.
file
.
preview
and
not
data
.
file
.
force
__send_file
(
_e
.
file
,
socket
,
data
,
config
.
web
.
file
.
num_lines
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment