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
61f1cb28
Commit
61f1cb28
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some comment
parent
354ca4cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
debomatic-webui/app.js
debomatic-webui/app.js
+3
-2
No files found.
debomatic-webui/app.js
View file @
61f1cb28
...
@@ -50,6 +50,7 @@ io.sockets.on('connection', function(socket) {
...
@@ -50,6 +50,7 @@ io.sockets.on('connection', function(socket) {
watchers
=
[]
watchers
=
[]
socket
.
set
(
'
view
'
,
data
,
function
()
{
socket
.
set
(
'
view
'
,
data
,
function
()
{
packages_path
=
path
.
join
(
config
.
debomatic_path
,
data
.
distribution
.
name
,
'
pool
'
)
packages_path
=
path
.
join
(
config
.
debomatic_path
,
data
.
distribution
.
name
,
'
pool
'
)
// watch on incoming packages
try
{
try
{
watchIncomingPackages
=
fs
.
watch
(
packages_path
,
{
persistent
:
true
},
function
(
event
,
fileName
)
{
watchIncomingPackages
=
fs
.
watch
(
packages_path
,
{
persistent
:
true
},
function
(
event
,
fileName
)
{
if
(
event
==
'
rename
'
)
if
(
event
==
'
rename
'
)
...
@@ -57,7 +58,7 @@ io.sockets.on('connection', function(socket) {
...
@@ -57,7 +58,7 @@ io.sockets.on('connection', function(socket) {
});
});
watchers
.
push
(
watchIncomingPackages
);
watchers
.
push
(
watchIncomingPackages
);
}
catch
(
err
)
{}
}
catch
(
err
)
{}
// if user is viewing a package, watch package dir
if
(
data
.
package
&&
data
.
package
.
name
&&
data
.
package
.
version
)
{
if
(
data
.
package
&&
data
.
package
.
name
&&
data
.
package
.
version
)
{
pack_path
=
path
.
join
(
packages_path
,
data
.
package
.
name
+
'
_
'
+
data
.
package
.
version
);
pack_path
=
path
.
join
(
packages_path
,
data
.
package
.
name
+
'
_
'
+
data
.
package
.
version
);
try
{
try
{
...
...
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