projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21361: Change variable names to match Go style
[arvados.git]
/
lib
/
install
/
deps.go
diff --git
a/lib/install/deps.go
b/lib/install/deps.go
index f4597d81626614a402559c4913273c18b8cc4b08..9f483b7654a5a2ffed36fdf6f694cdf29c966871 100644
(file)
--- a/
lib/install/deps.go
+++ b/
lib/install/deps.go
@@
-832,21
+832,21
@@
func identifyOS() (osversion, error) {
case "debian":
osv.Debian = true
default:
case "debian":
osv.Debian = true
default:
- id
_like_match
:= false
- for _, id
_l
ike := range strings.Split(kv["ID_LIKE"], " ") {
- switch id
_l
ike {
+ id
LikeMatched
:= false
+ for _, id
L
ike := range strings.Split(kv["ID_LIKE"], " ") {
+ switch id
L
ike {
case "debian":
osv.Debian = true
case "debian":
osv.Debian = true
- id
_like_match
= true
+ id
LikeMatched
= true
case "rhel":
osv.RedHat = true
case "rhel":
osv.RedHat = true
- id
_like_match
= true
+ id
LikeMatched
= true
}
}
- if id
_like_match
{
+ if id
LikeMatched
{
break
}
}
break
}
}
- if !id
_like_match
{
+ if !id
LikeMatched
{
return osv, fmt.Errorf("no supported ID found in /etc/os-release")
}
}
return osv, fmt.Errorf("no supported ID found in /etc/os-release")
}
}