mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Make decorator for architecture be in curly braces, so there's no conflict with Debian "only for arch".
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user