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
2e44f299
Commit
2e44f299
authored
Mar 07, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get files, debs and archives
parent
a5efa1c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
debomatic-webui/send.js
debomatic-webui/send.js
+19
-3
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+1
-1
No files found.
debomatic-webui/send.js
View file @
2e44f299
...
@@ -56,11 +56,27 @@ debomatic_sender = {
...
@@ -56,11 +56,27 @@ debomatic_sender = {
package
:
function
(
socket
,
package_info
)
{
package
:
function
(
socket
,
package_info
)
{
package_path
=
path
.
join
(
BASE_DIR
,
package_info
.
distribution
,
'
pool
'
,
package_info
.
package
+
"
_
"
+
package_info
.
version
);
package_path
=
path
.
join
(
BASE_DIR
,
package_info
.
distribution
,
'
pool
'
,
package_info
.
package
+
"
_
"
+
package_info
.
version
);
get_files_list
(
package_path
,
false
,
function
(
files
)
{
get_files_list
(
package_path
,
false
,
function
(
files
)
{
result
=
[]
package_info
.
files
=
[]
package_info
.
debs
=
[]
package_info
.
archives
=
[]
files
.
forEach
(
function
(
f
)
{
files
.
forEach
(
function
(
f
)
{
result
.
push
(
f
);
extension
=
f
.
split
(
'
.
'
).
pop
();
if
(
extension
==
"
deb
"
||
extension
==
"
ddeb
"
)
package_info
.
debs
.
push
(
f
);
else
if
(
f
.
indexOf
(
'
.tar
'
)
>=
0
)
{
archive
=
{}
archive
.
name
=
f
archive
.
path
=
path
.
join
(
package_path
,
f
)
package_info
.
archives
.
push
(
archive
)
}
else
{
file
=
{}
file
.
name
=
f
file
.
path
=
path
.
join
(
package_path
,
f
)
file
.
label
=
extension
package_info
.
files
.
push
(
file
)
}
});
});
package_info
.
files
=
result
;
socket
.
emit
(
'
package-files
'
,
package_info
);
socket
.
emit
(
'
package-files
'
,
package_info
);
});
});
}
}
...
...
debomatic-webui/views/layout.ejs
View file @
2e44f299
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
package
=
data
.
package
package
=
data
.
package
version
=
data
.
version
version
=
data
.
version
data
.
files
.
forEach
(
function
(
f
){
data
.
files
.
forEach
(
function
(
f
){
$
(
'
#files
'
).
append
(
'
<li><a href="#
'
+
distro
+
"
/
"
+
package
+
"
/
"
+
version
+
'
/
'
+
f
+
'
">
'
+
f
+
'
</li>
'
);
$
(
'
#files
'
).
append
(
'
<li><a href="#
'
+
distro
+
"
/
"
+
package
+
"
/
"
+
version
+
'
/
'
+
f
.
name
+
'
">
'
+
f
.
label
+
'
</li>
'
);
});
});
});
});
...
...
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