Andrey Smirnov
186bb2dff0
Add flag to disable/enable support for legacy pool paths
...
Legacy pool paths are enabled by default, but for new aptly installations
(when aptly config is first generated), it would be disabled explicitly.
2017-04-26 23:37:31 +03:00
Andrey Smirnov
5dd11a2ec2
Pull original packages when skipping existing packages
2017-04-26 23:17:04 +03:00
Andrey Smirnov
10c096fbb6
Update all other pieces for the CheckumStorage and Verify
2017-04-26 23:17:04 +03:00
Andrey Smirnov
c40025a335
Add progress bar on package saving progress
2017-04-26 23:17:03 +03:00
Andrey Smirnov
bc7903f86e
Rework mirror update (download packages) implementation
...
`PackageDownloadTask` is just a reference to file now. Whole process
was rewritten to follow pattern: download to temp location inside the pool,
verify/update checksums, import into pool as final step.
This removes a lot of edge cases when aptly internal state might be broken
if updating from rogue mirror.
Also this changes whole memory model: package list/files are kept in memory
now during the duration of `mirror update` command and saved to disk
only in the end.
2017-04-26 23:17:03 +03:00
Clemens Rabe
aa16899c60
Adaption of tests.
2017-03-24 06:25:46 +01:00
Clemens Rabe
16a0d0d428
Added option --skip-existing-packages to speed up mirror update.
2017-03-23 22:01:11 +01:00
Clemens Rabe
66f51d2b17
Added option --skip-existing-packages to speed up mirror update.
2017-03-23 21:55:22 +01:00
Andrey Smirnov
11d828b3b1
Add govet/golint into Travis CI build
...
Fix current issues
2017-03-22 21:49:16 +03:00
Raphael Medaer
bfb9ffad1d
Added expected error on 'Packages.xz' for TestDownload[WithSources]Flat.
2017-03-16 22:41:25 +03:00
Oliver Sauder
f31b5ec3f8
Adjusted test with new maxTries param for download
2016-11-28 17:02:24 +01:00
Andrey Smirnov
aa53b8da15
Go 1.6.
2016-04-18 12:47:00 +03:00
Andrey Smirnov
7bb052ac37
Fix unit-tests. #324
2015-12-24 14:08:37 +03:00
Andrey Smirnov
84801bce78
Fix unit-tests
...
Go 1.5 has different error message, randomize port number in test to avoid
collisions.
2015-09-22 11:18:57 +03:00
Andrey Smirnov
8ca07d9acd
Fix unit tests. #71
2015-03-18 22:10:49 +03:00
Andrey Smirnov
8e20daa927
Refactor out IsClearSigned to separate method. #71
2015-03-13 18:42:34 +03:00
Andrey Smirnov
903d4cefba
gofmt -s
2015-02-22 14:29:09 +03:00
Chris Read
daf887e54f
Upgrade gocheck
2014-11-05 13:27:15 -06:00
Andrey Smirnov
7be2ef8b85
Don't fallback between compression methods available unless we get strictly HTTP 404. #129 #125
...
Prior to that, some real errors could have been masked away by that fallback.
2014-10-24 08:51:04 +04:00
Andrey Smirnov
a356f3dff9
Marking RemoteRepo as being updated, with worker PID, checking for locks. #45 #114
2014-10-03 01:32:19 +04:00
Andrey Smirnov
a0870f6726
Refactor mirror download code, split it into separate methods. #45 #114
2014-10-02 19:30:37 +04:00
Andrey Smirnov
7ad1bb387b
Support for .udeb downloads from remote mirrors. #108
2014-09-25 19:34:16 +04:00
Andrey Smirnov
ce1df9447d
Support for filters in RemoteRepo: filtering mirror contents by query. #62
2014-07-16 02:27:29 +04:00
Andrey Smirnov
10bbefeb25
Fix support for flat format repositories in subdirectories with common pool. #47
2014-05-10 16:56:50 +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