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
5682fd79
Commit
5682fd79
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set correctly files information
parent
61f1cb28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
debomatic-webui/send.js
debomatic-webui/send.js
+11
-12
No files found.
debomatic-webui/send.js
View file @
5682fd79
...
@@ -35,20 +35,19 @@ function get_files_list_from_pacakge(package_path, callback) {
...
@@ -35,20 +35,19 @@ function get_files_list_from_pacakge(package_path, callback) {
package_info
.
debs
=
[]
package_info
.
debs
=
[]
package_info
.
archives
=
[]
package_info
.
archives
=
[]
files
.
forEach
(
function
(
f
)
{
files
.
forEach
(
function
(
f
)
{
extension
=
f
.
split
(
'
.
'
).
pop
();
file
=
{}
if
(
extension
==
"
deb
"
||
extension
==
"
ddeb
"
)
file
.
path
=
path
.
join
(
pack_path
,
f
).
replace
(
config
.
debomatic_path
,
config
.
debomatic_webpath
)
package_info
.
debs
.
push
(
f
);
file
.
orig_name
=
f
else
if
(
f
.
indexOf
(
'
.tar
'
)
>=
0
)
{
file
.
name
=
f
.
split
(
'
_
'
)[
0
]
archive
=
{}
file
.
label
=
f
.
replace
(
file
.
name
+
'
_
'
,
''
)
archive
.
name
=
f
file
.
extension
=
f
.
split
(
'
.
'
).
pop
();
archive
.
path
=
path
.
join
(
package_path
,
f
)
if
(
file
.
extension
==
"
deb
"
||
file
.
extension
==
"
ddeb
"
)
package_info
.
archives
.
push
(
archive
)
package_info
.
debs
.
push
(
file
);
else
if
(
f
.
indexOf
(
'
.tar
'
)
>=
0
||
file
.
extension
==
"
changes
"
||
file
.
extension
==
"
dsc
"
)
{
package_info
.
archives
.
push
(
file
)
}
}
else
{
else
{
file
=
{}
file
.
label
=
file
.
extension
file
.
name
=
f
file
.
path
=
path
.
join
(
package_path
,
f
)
file
.
label
=
extension
package_info
.
files
.
push
(
file
)
package_info
.
files
.
push
(
file
)
}
}
});
});
...
...
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