Markus Muellner
352f4e8772
update golangci-lint and replace deprecated calls to io/ioutil
2022-12-12 10:21:39 +01:00
Andrey Smirnov
2c91bcdc30
Bump Go versions for Travis, fix tests
...
Replace gometalinter with golangci-lint.
Fix system tests (wheezy is gone, replace with stretch).
Fix linter warnings.
2019-07-04 00:16:12 +03:00
William Manley
86dc10028f
Stanza.WriteTo: Sort extra fields alphabetically
...
This makes the output deterministic. This is important to me as I am
using `Packages` index files as a kind of lockfile and committing it
to my git repository. Without this we get a lot of noise in the diff
whenever the file is regenerated because
[go randomises map iteration order][1].
[1]: https://nathanleclaire.com/blog/2014/04/27/a-surprising-feature-of-golang-that-colored-me-impressed/
2019-01-08 15:12:34 +00:00
Oliver Sauder
108b0ea226
Add support to mirror non package installer files
2018-07-06 15:02:37 +02:00
Strajan Sebastian Ioan
d31144b9ae
Buffer increase ( #738 )
...
Increase Scanner buffer size for Stanza reader
2018-05-14 17:41:33 +03:00
Oliver Sauder
e3f1880ad4
Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields
2017-07-05 15:08:02 +02:00
Harald Sitter
f1b6841757
add Checksums-Sha512 to isMultilineField
...
Otherwise line breaks are not properly handled and the output contains
excess newlines
Fixes #361
2016-03-10 14:40:10 +01:00
Andrey Smirnov
77be7b9e3b
Support for SHA-512 hashes on publishing/downloads.
2016-02-18 12:01:51 +03:00
Andrey Smirnov
76bf7cba04
Fix handling of folded fields in Stanza. #270
...
Discovered by @sobczyk
When whitespace is stripped from folded stanza fields, some fields
values are glued together without whitespace which might change its meaning.
2015-09-24 11:59:49 +03:00
Andrey Smirnov
d04f08c1cf
Correctly handle multine fields in Release/non-Release files. #266
2015-06-26 03:07:33 +03:00
Andrey Smirnov
7d4a70ba25
Make first line of multiline field empty for all fields except for Description. #261
2015-06-10 13:44:03 +03:00
Andrey Smirnov
7e57f443ed
Style fix. #193
2015-03-11 21:40:04 +03:00
Andrey Smirnov
b4cf2e7065
Canonical case fixes. #193
2015-03-11 01:25:54 +03:00
Andrey Smirnov
aa9d3360ba
Canonical case-folding for Debian stanzas. #193
2015-03-11 00:46:39 +03:00
Andrey Smirnov
bd2cc45524
Fix order of 'Component' and 'Architecture' fields. #172
2015-01-19 22:03:31 +03:00
Andrey Smirnov
836abdc81e
Bring back "Archive" into canonical order. #172
2015-01-19 21:33:00 +03:00
Andrey Smirnov
876eeedb14
Update canonical order of fields in stanza to match what apt tools generate. #172
2015-01-19 21:17:58 +03:00
Andrey Smirnov
56915c4357
Fix order of Component & Archive fields.
2014-06-29 09:55:51 +04:00
Andrey Smirnov
b717caeda4
Make 'Package:' line field first when serializing stanza. #49
2014-05-30 00:43:19 +04:00
Andrey Smirnov
ff045f9a48
Fixups after renaming debian -> deb. #21
2014-04-07 21:22:58 +04:00
Andrey Smirnov
fd662c9275
Rename debian -> deb. #21
2014-04-07 21:15:13 +04:00