Oliver Sauder
092a7ed8f3
Rename AccessByHash to AcquireByHash for consistency with other flags
2017-11-30 09:46:02 +01:00
André Roth
bb2db7e500
Support Acquire-By-Hash for index files
...
The added "aptly publish repo" option "-access-by-hash" publishes
the index files (Packages*, Sources*) also as hardlinked hashes.
Example:
/dists/yakkety/main/binary-amd64/by-hash/SHA512/31833ec39acc...
The Release files indicate this with the option "Acquire-By-Hash: yes"
This is used by apt >= 1.2.0 and prevents the "Hash sum mismatch" race
condition between a server side "aptly publish repo" and "apt-get update"
on a client.
See: http://www.chiark.greenend.org.uk/~cjwatson/blog/no-more-hash-sum-mismatch-errors.html
This implementation uses symlinks in the by-hash/*/ directory for keeping
only two versions of the index files and deleting older files
automatically.
Note: this only works with aptly.FileSystemPublishedStorage
Closes : #536
Signed-off-by: André Roth <neolynx@gmail.com >
2017-11-30 09:46:02 +01:00
Andrey Smirnov
3756db2491
Upgrade gin-gonic to latest master, fix compatibility issues
2017-09-28 00:33:59 +03:00
Ludovico Cavedon
d6a3917141
Add -skip-cleanup option for publish commands.
...
Allow skipping unreferenced files cleanup on publish switch/update/drop
via the -skip-cleanup command line option.
Also support API SkipCleanup parameter.
Fixes #570 .
2017-08-15 19:08:17 -07:00
Andrey Smirnov
0e9f966dd1
Fix up other code to support new GPG provider structure
2017-07-21 01:01:58 +03:00
Oliver Sauder
e3f1880ad4
Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields
2017-07-05 15:08:02 +02:00
Andrey Smirnov
1be8d39105
Refactor GPG signer/verifier
...
Goal is to make it easier to plug in another implementation.
2017-05-23 02:54:56 +03:00
Andrey Smirnov
470165a419
Enable goconst & interfacer linters
2017-05-17 00:53:10 +03:00
Andrey Smirnov
5ce6bf8718
Enable vetshadow linter
2017-05-04 23:00:13 +03:00
Andrey Smirnov
516dd7b044
Switch to gometalinter
...
Only small amount of required checks is enabled,
plan is to enable more linters as issues are fixed in the code.
2017-03-23 01:51:08 +03:00
Andrey Smirnov
18d04c7977
Fix failure not being reported from API. #290
2016-03-01 12:52:54 +03:00
Andrey Smirnov
f50e008763
Make 'SkipContents' configurable in API. #345
...
Also add global configuration to disable 'skipContents' by
default for all new published repos/snapshots.
2016-02-14 14:49:16 +03:00
Andrey Smirnov
f8bca463bb
Add -force-drop to aptly publish drop, ?force=1 to DELETE publish/... to drop
...
published repositories even if cleanup fails. #153
2015-03-11 22:02:11 +03:00
Andrey Smirnov
01c0d19243
Fix bug with components not being cleaned up after publish update. #116
2015-03-03 20:49:49 +03:00
Andrey Smirnov
49a9ad79dd
Adjust return code for publish create call. #116
2015-03-01 22:31:56 +03:00
Andrey Smirnov
2f1afa54c2
Publish update/drop APIs, rework prefix, move publishing APIs. #116
2015-03-01 19:55:02 +03:00
Andrey Smirnov
e5d646c007
Merge branch 'sbadia-swift'
...
Conflicts:
AUTHORS
2015-02-21 01:08:48 +03:00
Andrey Smirnov
b323e315d1
Add comments where required.
2015-02-20 23:47:17 +03:00
Andrey Smirnov
88ff4493b0
Publish list API. #116
2015-02-20 11:12:16 +03:00
Andrey Smirnov
76ee53e9f8
Eliminate data races by using API without Progress. #116
2015-02-16 00:32:45 +03:00
Andrey Smirnov
24418ab0a4
Small fixes to publish update API. #174
2015-02-07 19:01:06 +03:00
Andrey Smirnov
ea8bfeb8a7
Merge branch 'feature/RepoUpdateAPI' of https://github.com/mkoval/aptly into mkoval-feature/RepoUpdateAPI
2015-02-07 18:52:29 +03:00
Andrey Smirnov
a4201a40d2
Allow to override architectures when publishing. #116
2015-02-07 18:36:42 +03:00
Michael Koval
a29034caa5
Implemented apiPublishUpdateSwitch.
2015-01-21 02:23:08 -05:00
Andrey Smirnov
98ca0cdf33
Publish repo REST API. #116
2015-01-07 16:11:34 +03:00