Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3748fd56
Commit
3748fd56
authored
Jan 05, 2017
by
Leigh B Stoller
Browse files
Bug fix for updating repo-based profile from new master.
parent
702fd597
Changes
1
Hide whitespace changes
Inline
Side-by-side
apt/manage_profile.in
View file @
3748fd56
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
6
University of Utah and the Flux Group.
# Copyright (c) 2000-201
7
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -349,7 +349,7 @@ if ($update) {
# need to clone to for real now that we can assign a name to it. Only
# for new profiles of course, the user cannot change the url later.
#
if
(
exists
(
$new_args
{'
repourl
'}))
{
if
(
exists
(
$new_args
{'
repourl
'})
||
(
$update
&&
$profile
->
IsRepoBased
())
)
{
my
$reponame
;
my
$repohash
;
...
...
@@ -495,8 +495,10 @@ if ($update) {
if
(
exists
(
$update_args
{
$key
}));
}
}
$profile
->
UpdateMetaData
(
\
%update_args
)
==
0
or
fatal
("
Could not update profile record
");
if
(
keys
(
%update_args
))
{
$profile
->
UpdateMetaData
(
\
%update_args
)
==
0
or
fatal
("
Could not update profile record
");
}
#
# Disable operates on current version or all versions.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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