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
e46c0e75
Commit
e46c0e75
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use data in __get_files_list_from_package
parent
a9c8118d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
debomatic-webui/send.js
debomatic-webui/send.js
+11
-15
No files found.
debomatic-webui/send.js
View file @
e46c0e75
...
...
@@ -27,12 +27,12 @@ function __get_files_list(dir, onlyDirectories, callback) {
});
}
function
__get_files_list_from_package
(
package_path
,
callback
)
{
package_
info
=
{}
function
__get_files_list_from_package
(
data
,
callback
)
{
package_
path
=
utils
.
get_package_path
(
data
)
__get_files_list
(
package_path
,
false
,
function
(
files
)
{
package_info
.
files
=
[]
package_info
.
debs
=
[]
package_info
.
archives
=
[]
data
.
package
.
files
=
[]
data
.
package
.
debs
=
[]
data
.
package
.
archives
=
[]
files
.
forEach
(
function
(
f
)
{
file
=
{}
file
.
path
=
path
.
join
(
package_path
,
f
).
replace
(
config
.
debomatic_path
,
config
.
debomatic_webpath
)
...
...
@@ -41,26 +41,22 @@ function __get_files_list_from_package(package_path, callback) {
file
.
label
=
f
.
replace
(
file
.
name
+
'
_
'
,
''
)
file
.
extension
=
f
.
split
(
'
.
'
).
pop
();
if
(
file
.
extension
==
"
deb
"
||
file
.
extension
==
"
ddeb
"
)
package_info
.
debs
.
push
(
file
);
data
.
package
.
debs
.
push
(
file
);
else
if
(
f
.
indexOf
(
'
.tar
'
)
>=
0
||
file
.
extension
==
"
changes
"
||
file
.
extension
==
"
dsc
"
)
{
package_info
.
archives
.
push
(
file
)
data
.
package
.
archives
.
push
(
file
)
}
else
{
file
.
name
=
file
.
extension
package_info
.
files
.
push
(
file
)
data
.
package
.
files
.
push
(
file
)
}
});
callback
(
package_info
);
callback
(
data
);
});
}
function
__send_package_files_list
(
socket
,
data
)
{
package_path
=
utils
.
get_package_path
(
data
)
__get_files_list_from_package
(
package_path
,
function
(
package_files
){
data
.
package
.
files
=
package_files
.
files
data
.
package
.
debs
=
package_files
.
debs
data
.
package
.
archives
=
package_files
.
archives
socket
.
emit
(
'
package_file_list
'
,
data
)
__get_files_list_from_package
(
data
,
function
(
new_data
){
socket
.
emit
(
'
package_file_list
'
,
new_data
)
});
}
...
...
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