mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Relax .dsc checkshums parsing. #71
This commit is contained in:
+2
-2
@@ -124,7 +124,7 @@ func NewSourcePackageFromControlFile(input Stanza) (*Package, error) {
|
|||||||
}
|
}
|
||||||
parts := strings.Fields(line)
|
parts := strings.Fields(line)
|
||||||
|
|
||||||
if len(parts) != 3 {
|
if len(parts) < 3 {
|
||||||
return fmt.Errorf("unparseable hash sum line: %#v", line)
|
return fmt.Errorf("unparseable hash sum line: %#v", line)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ func NewSourcePackageFromControlFile(input Stanza) (*Package, error) {
|
|||||||
return fmt.Errorf("unable to parse size: %s", err)
|
return fmt.Errorf("unable to parse size: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
filename := filepath.Base(parts[2])
|
filename := filepath.Base(parts[len(parts)-1])
|
||||||
|
|
||||||
found := false
|
found := false
|
||||||
pos := 0
|
pos := 0
|
||||||
|
|||||||
Reference in New Issue
Block a user