Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
eab94cfe
Commit
eab94cfe
authored
May 26, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix; Update returns non-zero on failure, I got it backwards.
parent
1be2343f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
db/Image.pm.in
db/Image.pm.in
+6
-6
No files found.
db/Image.pm.in
View file @
eab94cfe
...
...
@@ -2036,7 +2036,7 @@ sub SetLogFile($$)
my
($
self
,
$
logfile
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'logfileid' => $logfile->logid()}));
if
($
self
->
Update
({
'logfileid'
=>
$
logfile
->
logid
()}));
return
0
;
}
...
...
@@ -2047,7 +2047,7 @@ sub SetReady($$)
my
($
self
,
$
ready
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'ready' => $ready}));
if
($
self
->
Update
({
'ready'
=>
$
ready
}));
return
0
;
}
...
...
@@ -2059,7 +2059,7 @@ sub MarkReleased($)
my
($
self
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'released' => 1}));
if
($
self
->
Update
({
'released'
=>
1
}));
return
0
;
}
...
...
@@ -2190,7 +2190,7 @@ sub SetDelta($$)
my
($
self
,
$
delta
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'isdelta' => $delta}));
if
($
self
->
Update
({
'isdelta'
=>
$
delta
}));
return
0
;
}
...
...
@@ -2200,7 +2200,7 @@ sub SetSize($$)
my
($
self
,
$
size
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'size' => $size}));
if
($
self
->
Update
({
'size'
=>
$
size
}));
return
0
;
}
...
...
@@ -2210,7 +2210,7 @@ sub SetHash($$)
my
($
self
,
$
hash
)
=
@
_
;
return
-
1
if
(
!
$self->Update({'hash' => $hash}));
if
($
self
->
Update
({
'hash'
=>
$
hash
}));
return
0
;
}
...
...
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