Make decorator for architecture be in curly braces, so there's no conflict with Debian "only for arch".

This commit is contained in:
Andrey Smirnov
2014-02-17 15:05:34 +04:00
parent 5af0c45e10
commit 7ab456f6ff
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -230,8 +230,8 @@ func ParseDependencyVariants(variants string) (l []Dependency, err error) {
// ParseDependency parses dependency in format "pkg (>= 1.35) [arch]" into parts
func ParseDependency(dep string) (d Dependency, err error) {
if strings.HasSuffix(dep, "]") {
i := strings.LastIndex(dep, "[")
if strings.HasSuffix(dep, "}") {
i := strings.LastIndex(dep, "{")
if i == -1 {
err = fmt.Errorf("unable to parse dependency: %s", dep)
return