André Roth
93d9d509d5
debian: fix build
2026-05-02 14:10:31 +02:00
André Roth
98ed26b470
go: mod tidy
2026-04-28 12:48:37 +02:00
André Roth
0babc6b4ab
debian: embed yaml config
2026-04-28 12:48:37 +02:00
André Roth
55d2549e1f
Revert "use new azure-sdk"
...
This reverts commit e2cbd637b8 .
# Conflicts:
# azure/public.go
# go.sum
# Conflicts:
# go.mod
# go.sum
2026-04-28 12:48:37 +02:00
André Roth
f3e3ff1432
Revert "go1.24: fix lint, unit and system tests"
...
This reverts commit f7057a9517 .
# Conflicts:
# api/api.go
# api/files.go
# api/repos.go
# database/etcddb/database_test.go
# deb/remote_test.go
# deb/snapshot_bench_test.go
# deb/version.go
# files/package_pool.go
# files/public_test.go
# http/download.go
# http/grab.go
# s3/server_test.go
2026-04-28 12:48:37 +02:00
André Roth
aa3861af9c
Revert "ran "gofmt -s -w ." to format the code"
...
This reverts commit b49a631e0b .
# Conflicts:
# utils/config_test.go
2026-04-28 12:48:37 +02:00
André Roth
34660d3615
disable swagger
2026-04-28 12:48:37 +02:00
André Roth
d63377a851
debian native build
2026-04-28 12:48:36 +02:00
André Roth
a20eb6866a
document prometheus API
...
* enable in dev and test env
* fix api/repos doc
2026-04-26 23:56:05 +02:00
André Roth
809ab47042
Merge pull request #1559 from linuxdataflow/feat/pls/api-package-count
...
feat(api): add NumPackages to mirrors/repos/snapshots list responses
2026-04-26 18:39:24 +02:00
André Roth
0b84009b4a
tests: add new arguments
2026-04-26 18:37:36 +02:00
Pierig Le Saux
92d7561d49
test(api): add coverage for NumPackages list handlers and error paths
2026-04-26 18:37:36 +02:00
Pierig Le Saux
e908531bef
feat(api): add NumPackages to mirrors/repos/snapshots list responses
...
add API response wrappers with NumPackages derived from RefList length; keep show endpoint payloads unchanged for backward compatibility; add API tests for list endpoint NumPackages; update swagger response schemas for list endpoints
2026-04-26 18:37:36 +02:00
André Roth
f8620d10b2
Merge pull request #1558 from linuxdataflow/feat/pls/gpg-list-and-delete
...
list and delete gpg keys
2026-04-26 18:36:30 +02:00
Pierig Le Saux
8be72b48a1
update
2026-04-26 17:44:25 +02:00
Pierig Le Saux
5655480e00
add codecoverage
2026-04-26 17:44:25 +02:00
Pierig Le Saux
3c8defa304
update
2026-04-26 17:44:25 +02:00
Pierig Le Saux
1ed50697ec
fix: delete is interactive
2026-04-26 17:44:25 +02:00
Pierig Le Saux
3b432d42b5
documentation
2026-04-26 17:44:25 +02:00
Pierig Le Saux
89e3bdfa07
delete a gpg key
2026-04-26 17:44:25 +02:00
André Roth
f8d2d3cb8d
fix lint errors
2026-04-26 17:41:12 +02:00
André Roth
01004e19c0
Merge pull request #1546 from aptly-dev/dependabot/go_modules/google.golang.org/grpc-1.79.3
...
build(deps): bump google.golang.org/grpc from 1.64.1 to 1.79.3
2026-04-26 17:11:45 +02:00
dependabot[bot]
92bb28149c
build(deps): bump google.golang.org/grpc from 1.64.1 to 1.79.3
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.64.1 to 1.79.3.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.64.1...v1.79.3 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.79.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-26 14:43:41 +00:00
André Roth
652210acfa
Merge pull request #1554 from aptly-dev/dependabot/go_modules/github.com/aws/aws-sdk-go-v2/service/s3-1.97.3
...
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.67.1 to 1.97.3
2026-04-26 16:38:23 +02:00
André Roth
45f3da256b
Merge pull request #1543 from PhilipCramer/feat/appstream-mirror-support
...
Add appstream support
2026-04-26 15:36:07 +02:00
dependabot[bot]
3c5e83366a
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3
...
Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2 ) from 1.67.1 to 1.97.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.67.1...service/s3/v1.97.3 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
dependency-version: 1.97.3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-26 13:12:54 +00:00
Philip Cramer
a7a4bb7001
test: improve test coverage for AppStream feature
2026-04-26 15:04:38 +02:00
Philip Cramer
2f7f726d4c
fix: reject AppStream flag for flat repos instead of silently skipping
2026-04-26 15:04:38 +02:00
Philip Cramer
43d7284657
docs: update man page and AUTHORS for AppStream support
2026-04-26 15:04:37 +02:00
Philip Cramer
02423af931
fix: prevent db cleanup from deleting AppStream pool files
2026-04-26 15:04:17 +02:00
Philip Cramer
2a228625e2
test: add system test for AppStream publish pass-through
2026-04-26 15:04:17 +02:00
Philip Cramer
16e0302f30
test: update snapshot golden files for AppStream field
2026-04-26 15:04:17 +02:00
Philip Cramer
6ecbc9ba90
test: add system tests for AppStream mirror create, edit, and update
2026-04-26 15:04:17 +02:00
Philip Cramer
7276b9621f
feat: add --with-appstream to bash/zsh shell completions
2026-04-26 15:04:17 +02:00
Philip Cramer
fb7734b5b0
test: add unit tests for AppStream pass-through feature
2026-04-26 15:04:17 +02:00
Philip Cramer
29c37293b9
feat: wire AppStream support through CLI, API, and publish
2026-04-26 15:04:17 +02:00
Philip Cramer
f25ba2e6b0
feat: propagate AppStreamFiles through snapshots
2026-04-26 15:04:17 +02:00
Philip Cramer
6a5b9ddacf
feat: add AppStream (DEP-11) download support to RemoteRepo
2026-04-26 15:04:17 +02:00
André Roth
48355f65ed
Merge pull request #1542 from tonobo/reproducible-publish
...
Add SOURCE_DATE_EPOCH support for GPG signers
2026-04-26 15:01:27 +02:00
Tim Foerster
d616977904
Add SOURCE_DATE_EPOCH support for GPG signers
...
Both the external GPG signer (--faked-system-time) and internal Go
OpenPGP signer (signerConfig.Time) now honor SOURCE_DATE_EPOCH,
producing reproducible signatures alongside the plain Release file dates.
Adds system tests for both signer backends verifying byte-identical
Release, Release.gpg and InRelease across repeated publishes.
The signer tests (PublishRepo3[78]Test) are using an ed25519 key because
ed25519 signatures are deterministic by design. The Go openpgp library
uses a random nonce for DSA/ECDSA (see signature.go Sign calls using
config.Random() link below) so those signatures vary across runs
even with a fixed timestamp, making byte-identical verification impossible.
In addition to 49f342878a
Ref: https://github.com/aptly-dev/aptly/pull/1537
Ref: https://github.com/ProtonMail/go-crypto/blob/v1.4.0/openpgp/packet/signature.go#L945-L979
2026-04-26 14:32:23 +02:00
André Roth
3c068febde
Merge pull request #1541 from aptly-dev/dependabot/go_modules/github.com/cloudflare/circl-1.6.3
...
build(deps): bump github.com/cloudflare/circl from 1.6.1 to 1.6.3
2026-04-26 14:31:08 +02:00
dependabot[bot]
76adbe49e0
build(deps): bump github.com/cloudflare/circl from 1.6.1 to 1.6.3
...
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl ) from 1.6.1 to 1.6.3.
- [Release notes](https://github.com/cloudflare/circl/releases )
- [Commits](https://github.com/cloudflare/circl/compare/v1.6.1...v1.6.3 )
---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
dependency-version: 1.6.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-26 12:00:02 +00:00
André Roth
f6221a2413
Merge pull request #1535 from lecafard/push-qxtqtunqqqnu
...
Add edit mirror API endpoint
2026-04-26 13:57:49 +02:00
André Roth
4f46cb04f5
Merge pull request #1561 from russelltg/docs
...
fix docs for Serve in API mode
2026-04-25 20:07:40 +02:00
Russell Greene
66e814c086
fix docs for Serve in API mode
2026-04-13 10:59:47 -06:00
tom
b3f5d96490
Add edit mirror API endpoint
2026-04-12 22:26:58 +02:00
André Roth
144265122a
Merge pull request #1533 from xzhang1/add-version
...
`Release` file: support `Version` field
2026-04-12 20:09:39 +02:00
André Roth
4f95d75c37
Merge pull request #1547 from aptly-dev/dependabot/pip/system/requests-2.33.0
...
build(deps): bump requests from 2.32.4 to 2.33.0 in /system
2026-04-12 20:06:48 +02:00
dependabot[bot]
8db1d2e7f1
build(deps): bump requests from 2.32.4 to 2.33.0 in /system
...
Bumps [requests](https://github.com/psf/requests ) from 2.32.4 to 2.33.0.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.32.4...v2.33.0 )
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.33.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-12 17:26:36 +00:00
André Roth
4088a811cd
ci: do not upload coverage for dependabot
2026-04-12 18:55:54 +02:00
André Roth
2ac4c75fad
ci: fix coverage
2026-03-28 15:17:47 +01:00
Zhang Xiao
e2ebcbb02a
Release file: support Version field
...
https://wiki.debian.org/DebianRepository/Format#Version
The Version field, if specified, shall be the version of the release.
On the other hand, if not set or set to an empty value, the Version
field will not be included in the Release file.
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-03-03 07:38:44 +00:00
André Roth
9defe70190
Merge pull request #1537 from tonobo/reproducible-publish
...
Add SOURCE_DATE_EPOCH support for reproducible builds
2026-02-28 12:46:57 +01:00
André Roth
23943d47e9
Merge pull request #1531 from xzhang1/fix-testcase
...
fix `t06_publish/PublishSnapshot43Test_gold` gold error
2026-02-28 11:44:32 +01:00
Tim Foerster
49f342878a
Add SOURCE_DATE_EPOCH support for reproducible builds
...
Implement support for the SOURCE_DATE_EPOCH environment variable as
specified by reproducible-builds.org. When set, this variable overrides
the current timestamp in the Release file's Date and Valid-Until fields,
enabling reproducible filesystem publishes.
- Read SOURCE_DATE_EPOCH environment variable in Publish()
- Use the epoch timestamp for both Date and Valid-Until fields
- Gracefully fallback to current time if unset or invalid
- Add comprehensive tests for valid and invalid SOURCE_DATE_EPOCH values
2026-02-20 07:24:52 +01:00
Zhang Xiao
1f29c65a95
fix t06_publish/PublishSnapshot43Test_gold gold error
...
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-02-03 07:12:04 +00:00
André Roth
a65f79eb79
Merge pull request #1479 from abregar/issues-309-691
...
Add config key for 'gpgKeys' and allow multiple keyRefs when signing with gpg, fixing Issues #309 and #691
2026-01-26 11:58:03 +01:00
André Roth
c6a9f82358
multi sign: add test
2026-01-26 11:26:40 +01:00
Ales Bregar
1702537979
clearer REST api docs, put whitespace to docs to show that keyId strings are trimmed
2026-01-24 10:55:15 +01:00
Ales Bregar
12604b9379
updating REST api with multiple gpg keys support, due backwards compatibility introducing CSV under same key (gpg-key)
2026-01-24 10:55:15 +01:00
Ales Bregar
9b523e6bd5
review fix
2026-01-24 10:55:15 +01:00
Ales Bregar
aa030e3f36
system test t12_api sends empty keyRef string, making gpg fail
2026-01-24 10:55:15 +01:00
Ales Bregar
8e739524b0
system test unexpected string fix (would be helpful, but not changing the test just for this)
2026-01-24 10:55:15 +01:00
Ales Bregar
4ba4c0cba6
system test configuration fix
2026-01-24 10:55:15 +01:00
Ales Bregar
48d02918c1
documentation updated
2026-01-24 10:55:15 +01:00
Ales Bregar
d672bfa317
white space revert to minimize change
2026-01-24 10:55:15 +01:00
Ales Bregar
9a90038dd2
- #309 adding gpgKeys config key, accepting array of keyRef, cli args has precedence
...
- #691 adding handling of multiple keyRefs when signing with gpg
2026-01-24 10:55:15 +01:00
André Roth
7d23196f76
Merge pull request #1529 from aptly-dev/fix/deadlocks
...
tasklist: fix deadlocks
2026-01-20 21:28:00 +01:00
André Roth
2c6812934e
tasklist: fix deadlocks
...
* lock correct resources
* unlock list before queueing
2026-01-18 19:31:26 +01:00
André Roth
60f3eb151b
Merge pull request #1484 from xzhang1/update_label
...
Support updating label and origin domain of publish
2026-01-17 11:44:32 +01:00
André Roth
0db9797c4e
add test
2026-01-16 14:50:09 +01:00
Zhang Xiao
a2ffffedc1
Support updating label and origin domain of publish
...
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-01-16 14:50:09 +01:00
André Roth
19b98c62c1
Merge pull request #1504 from bwitt/error_outofspace
...
Return error on out of space
2026-01-16 14:49:20 +01:00
André Roth
06fea598e1
ci: fail on failed coverage upload
2026-01-16 13:15:43 +01:00
André Roth
9a6f06d23e
unit-test: use /smallfs when non-root
2026-01-11 21:19:24 +01:00
André Roth
67f6a0e458
ci: provide 1MB /smallfs to docker
2026-01-11 21:19:24 +01:00
André Roth
a57e2aecd7
ci: run unit tests in docker
...
- run separate unit-test job
- build docker
- allow make docker-unit-tests in ci
2026-01-11 21:19:13 +01:00
Brian Witt
1e7c15b69b
error on out of space
2026-01-11 14:26:56 +01:00
André Roth
a70f572efd
docs: update PR tempalte
2026-01-11 14:02:24 +01:00
André Roth
8c183b45c6
Merge pull request #1524 from jay7x/patch-1
...
Update Puppet module references in README
2026-01-11 13:06:46 +01:00
Yury Bushmelev
a8f7f58dab
Update Puppet module references in README
...
Removed outdated Puppet module references and added an actively
maintained one.
2026-01-07 13:52:12 +08:00
André Roth
31fe26de5e
Merge pull request #1461 from aptly-dev/dependabot/go_modules/github.com/cloudflare/circl-1.6.1
...
build(deps): bump github.com/cloudflare/circl from 1.4.0 to 1.6.1
2026-01-04 18:14:13 +01:00
André Roth
eb1b770dc2
Merge pull request #1506 from aptly-dev/dependabot/go_modules/golang.org/x/crypto-0.45.0
...
build(deps): bump golang.org/x/crypto from 0.36.0 to 0.45.0
2026-01-04 17:56:40 +01:00
dependabot[bot]
abb2ad635f
build(deps): bump golang.org/x/crypto from 0.36.0 to 0.45.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.36.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-04 16:30:54 +00:00
dependabot[bot]
a75df0a697
build(deps): bump github.com/cloudflare/circl from 1.4.0 to 1.6.1
...
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl ) from 1.4.0 to 1.6.1.
- [Release notes](https://github.com/cloudflare/circl/releases )
- [Commits](https://github.com/cloudflare/circl/compare/v1.4.0...v1.6.1 )
---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
dependency-version: 1.6.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-01-04 16:29:56 +00:00
André Roth
ea797f8ebe
Merge pull request #1518 from LebedevRI/inrelease-signedby
...
`InRelease` file: support `Signed-By` field
2026-01-04 12:46:35 +01:00
Roman Lebedev
a4cc9211d6
InRelease file: support Signed-By field
...
https://wiki.debian.org/DebianRepository/Format#Signed-By says:
> **Signed-By**
> An optional field containing a comma separated list of
> OpenPGP key fingerprints to be used for validating
> the next Release file. The fingerprints must consist
> only of hex digits and may not contain spaces.
> The fingerprint specifies either the key the Release file
> must be signed with or the key the signature key must be
> a subkey of. The later match can be disabled by appending
> an exclamation mark to the fingerprint.
>
> If the field is present, a client should only accept future updates
> to the repository that are signed with keys listed in the field.
> The field should be ignored if the Valid-Until field is not present
> or if it is expired.
For both the CLI tools and JSON, the field is taken as a string verbatim.
When specified, we must also provide `Valid-Until` field,
and i'm not sure there is an 'infinity' value for it,
so 100 years will have to do?
Fixes https://github.com/aptly-dev/aptly/issues/1497
2025-12-30 06:06:48 +03:00
André Roth
836d9f3b8b
Merge pull request #1509 from thunder-coding/dpkg-compliant-version-compare
...
make version comparision more similar to that of dpkg
2025-12-26 16:56:11 +01:00
André Roth
61650e5b3b
Merge branch 'master' into dpkg-compliant-version-compare
2025-12-26 16:55:52 +01:00
André Roth
4e457aa570
Merge pull request #1513 from gaby/add-latest-flag-to-makecmdmirrorupdate
...
feat: Support for only downloading the latest version of packages
2025-12-26 16:26:43 +01:00
André Roth
fe70da9c08
Merge branch 'master' into add-latest-flag-to-makecmdmirrorupdate
2025-12-26 16:26:01 +01:00
André Roth
4b57e65658
Merge pull request #1505 from atotto/feature/mirror-from-google-artifact-registry
...
feat(http): add Google Artifact Registry authentication for ar+https scheme
2025-12-26 16:13:01 +01:00
Ato Araki
bcd81eeae4
update AUTHORS
2025-12-17 12:57:17 +09:00
Ato Araki
af483d1165
feat(http): add GCP authentication for ar+https scheme
2025-12-17 12:57:17 +09:00
André Roth
6b8651fda2
Merge pull request #1510 from LeiCraft/fix-swagger-pascalcase
...
Fix swagger property casing
2025-12-15 10:23:41 +01:00
Juan Calderon-Perez
de699aebe5
Update AUTHORS list
2025-12-11 09:42:15 -05:00
Juan Calderon-Perez
0021cf876b
Harden latest-only filtering
2025-12-11 07:20:37 -05:00
Linus Fischer
32b601bde6
Fix swagger property casing
2025-12-02 11:03:28 +00:00
Yaksh Bariya
b464e7f80b
give myself some credit as well
...
Cause I'm nice :)
2025-12-01 00:33:04 +05:30
Yaksh Bariya
e0f282aca9
make version comparision more similar to that of dpkg
...
Initially found by automated repository health checks used by Termux
in https://github.com/termux/termux-packages/issues/27472
The root problem was 4.3.5a comparing less than 4.3.5-rc1-1 by aptly
According to debian "4.3.5a" > "4.3.5-rc1-1"
This is because dpkg splits hyphen for revision at the first hyphen,
whereas aptly was splitting at the last hyphen which is different from
dpkg's behaviour.
dpkg behaviour: https://git.dpkg.org/cgit/dpkg/dpkg.git/tree/lib/dpkg/parsehelp.c#n242
Perhaps this wasn't detected as there was broken tests in the repository
since the initial commit of aptly. This also fixes those tests
2025-12-01 00:28:37 +05:30
André Roth
ba65daf6cb
Merge pull request #1480 from alguimodd/s3-reupload-fix
...
feat(s3): add publishedPrefix to pathCache to avoid reupload of files
2025-11-11 19:00:31 +01:00
Christoph Fiehe
b8455f6de9
Merge branch 'master' into s3-reupload-fix
2025-11-10 20:58:43 +01:00
André Roth
132c923f25
Merge pull request #1493 from Daedaluz/fix/update-repo-api
...
Editing repo via api 404
2025-11-08 13:10:48 +01:00
André Roth
b6d83a4f61
Merge pull request #1492 from refi64/docker-test-fixes
...
Various fixes for system-test and docker integration
2025-10-19 20:33:34 +02:00
André Roth
4526d6d831
Merge pull request #1498 from chesseed/fix/swagger-errors
...
Fix Swagger errors
2025-10-19 20:30:42 +02:00
chesseed
02d2ba255c
fix comment
2025-10-09 21:33:20 +02:00
chesseed
d94792dd65
fix swagger errors
2025-10-09 21:26:30 +02:00
Tobias Assarsson
66eb75f492
fix repo edit api.
2025-09-24 16:40:23 +02:00
Ryan Gonzalez
33a2f70d07
system-test: Allow skipping coverage
...
Enabling coverage near-doubles the incremental build time and adds
overhead to individual tests on the order of **5-10x** or more. It's not
essential to have this for quick local system-test runs, so add an option
to disable it.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
10f942c8e0
system-test: Forward CAPTURE to docker
...
The code was only forwarding TEST, but CAPTURE is useful too.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
568a9ce4d5
docker: Preserve the go build cache
...
Otherwise, every `make docker-...` invocation will need to rebuild
everything from scratch.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
ddf415a359
docker: Fix usage with rootless podman and SELinux
...
When using rootless podman, the *current user* gets mapped to uid 0,
which results in the aptly user being unable to write to the build
directory. We can instead map the current user to the corresponding uid
in the container via `PODMAN_USERNS=keep-id`, which matches up with what
docker-wrapper wants...but then that will *enter the container as the
current uid*, which messes with the ability to set permissions on
`/var/lib/aptly`. That can be fixed by explicitly passing `--user 0:0`,
which should be a no-op on docker (since the container's default user is
already root).
Additionally, this adds `--security-opt label=disable` to avoid
permission errors when running on systems with SELinux enforcing.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
29ac9c1919
system-test: Fix crash when a comparison with a non-string value fails
...
`orig` isn't necessarily a string, so the string concatenation here can
raise a TypeError.
2025-09-23 16:25:46 -05:00
André Roth
d3bed7830c
Merge pull request #1482 from JupiterRider/tautological_condition
...
remove useless nil check
2025-08-30 19:22:52 +02:00
JupiterRider
c2d5f47643
Merge branch 'master' into tautological_condition
2025-08-30 18:51:27 +02:00
André Roth
731e92c8e4
Merge pull request #1483 from JupiterRider/gofmt
...
format the Go code with gofmt
2025-08-30 18:04:29 +02:00
André Roth
94a600c0c1
README: remove buster
2025-08-29 10:35:02 +02:00
André Roth
e1d8ae8a35
Merge pull request #1472 from Yye847/master
...
Update README.rst
2025-08-29 10:34:33 +02:00
André Roth
d3b7186dea
Merge pull request #1481 from agustinhenze/master
...
Add mutex on LinkFromPool to fix #1449
2025-08-29 09:55:15 +02:00
Agustin Henze
3608c137a0
Add mutex on LinkFromPool to fix #1449
...
This fixes the race condition that happens when you call publish
concurrently. It adds a valuable test that reproduces the error almost
deterministically, it's hard to say always but I have run this in loop
100 times and it reproduces the error consistently without the patch and
after the patch it works consistently.
2025-08-28 10:40:53 +02:00
JupiterRider
15a3efe758
add JupiterRider to AUTHORS file
2025-08-20 19:48:29 +02:00
JupiterRider
4b73ae462f
remove tautological (unnecessary) nil condition
2025-08-20 19:45:53 +02:00
JupiterRider
b49a631e0b
ran "gofmt -s -w ." to format the code
2025-08-20 19:41:26 +02:00
Alejandro Guijarro Monerris
12b6b04055
chore: add name to AUTHORS
2025-08-13 16:38:44 +02:00
Alejandro Guijarro Monerris
a1f659bea0
feat(s3): add publishedPrefix to pathCache to avoid reupload of files
2025-08-13 16:35:34 +02:00
André Roth
8ca4cb8dcb
ci: remove EOL debian/buster
2025-08-12 14:31:44 +02:00
André Roth
8ce8f250d5
update Releasing.md
2025-08-12 14:00:57 +02:00
Yye847
3672f6f92f
Update README.rst
...
add trixie in list of available dists also in CLI part of README
2025-07-25 12:29:59 +02:00
Yye847
888a6b2caa
Update README.rst
...
add trixie in list of available dists
2025-07-25 12:23:04 +02:00
André Roth
231039e86c
Merge pull request #1466 from itayporezky/itay-api
...
Fix non related API params from mirror update
2025-07-20 23:32:41 +02:00
Itay Porezky
dc884e6052
Removing non related actions from mirror update
2025-06-29 21:55:27 +03:00
André Roth
4675589cf6
Merge pull request #1460 from aptly-dev/dependabot/pip/system/requests-2.32.4
...
build(deps): bump requests from 2.28.2 to 2.32.4 in /system
2025-06-21 15:40:30 +02:00
dependabot[bot]
32f03bfd62
build(deps): bump requests from 2.28.2 to 2.32.4 in /system
...
Bumps [requests](https://github.com/psf/requests ) from 2.28.2 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.32.4 )
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.32.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-10 03:23:26 +00:00
André Roth
d1bfd29dfd
Merge pull request #1458 from aptly-dev/release/1.6.2
...
Release 1.6.2
2025-06-09 18:12:35 +02:00
André Roth
27ec594606
update releasing.md
2025-06-09 14:38:53 +02:00
André Roth
f652a522fd
update changelog for 1.6.2
2025-06-09 14:38:53 +02:00
André Roth
a794e87490
Merge pull request #1456 from aptly-dev/doc/gpg-api
...
doc: add swagger doc for /api/gpg/key
tests: use faketime for expired keys/signatures
2025-06-09 13:40:54 +02:00
André Roth
5b04d4fbe1
system-tests: abort on failure
2025-06-09 13:17:54 +02:00
André Roth
1566e193f6
system-test: enable faketime optionally per test
2025-06-09 13:17:54 +02:00
André Roth
601c8e9d52
tests: use faketime to prevent expired signing keys
2025-06-08 20:05:49 +02:00
André Roth
8e5707dbcc
unit-tests: allow running individual tests
2025-06-08 15:00:16 +02:00
André Roth
ad4d0c7b96
doc: add swagger doc for /api/gpg/key
...
- cleanup swagger validation errors
2025-06-08 14:24:27 +02:00
André Roth
a11e004943
Merge pull request #1452 from boxjan/master
...
bash-completion: include global options in aptly command completions
2025-05-25 22:54:45 +02:00
boxjan
f605d86a4e
bash-completion: include global options in aptly command completions
2025-05-06 10:11:46 +00:00
André Roth
f8bde63081
Merge pull request #1443 from aptly-dev/dependabot/go_modules/golang.org/x/net-0.38.0
...
Bump golang.org/x/net from 0.33.0 to 0.38.0
2025-05-01 12:17:14 +02:00
dependabot[bot]
887ce71005
Bump golang.org/x/net from 0.33.0 to 0.38.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 09:14:39 +00:00
André Roth
87233ceafe
Merge pull request #1441 from aptly-dev/dependabot/go_modules/golang.org/x/crypto-0.35.0
...
Bump golang.org/x/crypto from 0.31.0 to 0.35.0
2025-05-01 11:13:30 +02:00
André Roth
27c15680e8
Merge pull request #1445 from silkeh/fix-db-references
...
Remove corrupt package references in `db recover`
2025-05-01 10:27:42 +02:00
dependabot[bot]
cb72e2d70f
Bump golang.org/x/crypto from 0.31.0 to 0.35.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.31.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.35.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 08:15:38 +00:00
André Roth
2cafbc8484
Merge pull request #1439 from aptly-dev/feature/go-1.24
...
go: use version 1.24
2025-05-01 10:14:27 +02:00
Silke Hofstra
6dbb28b2b8
Add myself to authors
2025-04-30 12:21:34 +02:00
Silke Hofstra
d8a4a28259
Remove corrupt package references in db recover
...
When aptly crashes it is possible to get a corrupt database with a dangling key reference.
This results in an error with 'key not found', eg:
ERROR: unable to load package Pall example-package 1.2.3 778cf6f877bf6e2d: key not found
This change makes `db recover` fix this situation by removing the dangling references.
2025-04-30 12:21:34 +02:00
André Roth
9a217171c8
go: mod tidy
2025-04-26 13:35:49 +02:00
André Roth
c67cafcf94
Makefile: allow no cache docker build
2025-04-26 13:31:16 +02:00
André Roth
f7057a9517
go1.24: fix lint, unit and system tests
...
- development env: base on debian trixie with go1.24
- lint: run with default config
- fix lint errors
- fix unit tests
- fix system test
2025-04-26 13:29:50 +02:00
André Roth
ae5379d84a
go: use version 1.24
2025-04-25 14:20:13 +02:00
André Roth
c05068c2e8
Merge pull request #1440 from aptly-dev/bugfix/issue-1435-fix-s3-upload-unchanged-package
...
Fix upload of unchanged packages in S3 on source update of published repository
2025-04-25 13:21:10 +02:00
André Roth
22bc2f9d0f
system-tests: improve sorted compare
...
sort both aptly output and gold file. output original output for
debugging on failure.
* Makefile: enable CAPTURE=1 env variable for capturing gold files
* docker-system-test: use AWS env vars for S3 tests
* fix system tests timing issue with order of gpg logs in publish tests
2025-04-25 00:51:59 +02:00
André Roth
c07bf2b108
s3: add debug logs for commands
...
* initialize zerolog for commands
* Change default log format: remote colors and timestamp
2025-04-24 12:13:38 +02:00
André Roth
e447fc0f1e
ci: keep CI artifacts for 7 days
2025-04-21 12:01:39 +02:00
André Roth
e062df68c5
go1.23: update golangci-lint version
...
and fix warnings.
2025-04-20 20:32:55 +02:00
André Roth
664a5cd675
go1.23: fix system test
2025-04-20 11:57:42 +02:00
André Roth
9ef217b351
ci: use go 1.23 compatible with gocovmerge
2025-04-20 11:38:33 +02:00
Christoph Fiehe
67bd15487d
Fixes Issue#1435.
...
Signed-off-by: Christoph Fiehe <christoph.fiehe@eurodata.de >
2025-04-14 13:39:45 +02:00
André Roth
ab18da351d
ci: add release notes
...
and update Releasing.md
2025-02-15 22:25:56 +01:00
André Roth
1abb735bfa
Merge pull request #1430 from aptly-dev/release/1.6.1
...
Release/1.6.1
2025-02-15 19:10:42 +01:00
André Roth
9397d8ab36
add releasing doc
2025-02-15 16:23:53 +01:00
André Roth
82300d6944
update changelog
2025-02-15 16:17:37 +01:00
André Roth
cf3841e35c
Merge pull request #1425 from aptly-dev/fix/debian-compliance
...
postrm: remove aptly-api user and home directory on purge
2025-01-24 00:49:15 +01:00
Sébastien Delafond
1a0bffdc51
postrm: remove aptly-api user and home directory on purge
2025-01-22 21:48:02 +01:00
André Roth
666b5c9700
Merge pull request #1422 from aptly-dev/fix/empty-mirror-snapshot
...
Allow snapshotting empty mirrors
2025-01-13 12:36:01 +01:00
André Roth
2eabc6045f
go mod tidy
2025-01-12 00:05:00 +01:00
André Roth
cc32e79f2a
Merge pull request #1423 from mikelolasagasti/google-uuid
...
Switch to google/uuid module
2025-01-11 23:56:23 +01:00
Mikel Olasagasti Uranga
7074fc8856
Switch to google/uuid module
...
Current used github.com/pborman/uuid hasn't seen any updates in years.
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info >
2025-01-11 23:18:50 +01:00
André Roth
a7d85e5905
Merge pull request #1187 from aptly-dev/dependabot/go_modules/github.com/gin-gonic/gin-1.9.1
...
Bump github.com/gin-gonic/gin from 1.7.7 to 1.9.1
2025-01-11 22:15:59 +01:00
André Roth
cad4233d0d
Bump github.com/gin-gonic/gin from 1.7.7 to 1.9.1
...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin ) from 1.7.7 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases )
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gin-gonic/gin/compare/v1.7.7...v1.9.1 )
---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
# Conflicts:
# go.mod
# go.sum
2025-01-11 21:48:14 +01:00
André Roth
9b9894c07d
update README
2025-01-11 21:33:40 +01:00
André Roth
8546cf31ce
add test: snapshot empty mirror
2025-01-11 20:00:42 +01:00
André Roth
aa0830ff0c
Revert "fix empty mirror check"
...
This reverts commit 09a44ba409 .
2025-01-11 19:17:28 +01:00
dependabot[bot]
4076941bd7
Bump golang.org/x/net from 0.28.0 to 0.33.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.28.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.28.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-11 15:58:10 +01:00
André Roth
4170c9e995
update README
2025-01-11 15:58:10 +01:00
André Roth
a862192bc4
ci: more relaxed aptly upload
2025-01-11 15:58:10 +01:00
André Roth
5a18428666
aptly.conf: fix s3 example
2025-01-11 15:25:53 +01:00
August Feng
0b5a627c84
update goleveldb dependency
2025-01-11 14:35:28 +01:00
André Roth
65820cdf7a
update man page
2024-12-24 19:02:38 +01:00
André Roth
2c3a107e00
update changelog
2024-12-24 18:57:40 +01:00
André Roth
e028db585f
fix man page
2024-12-21 22:32:50 +01:00
André Roth
d523ca8186
update Makefile PHONY
2024-12-21 22:13:26 +01:00
André Roth
f008f245dc
update man page
2024-12-21 21:35:06 +01:00
André Roth
f2f3196368
fix AUTHORS for man page
...
only US ASCII seems to be supported
2024-12-21 21:34:46 +01:00
Karol Swiderski
29eccc9226
improve doc
...
add instructions for macos users
2024-12-21 21:29:26 +01:00
André Roth
9abbd74a9f
improve doc
...
do not set default value for FromSnapshot when creating a repo
2024-12-21 20:23:52 +01:00
André Roth
846fe5e08a
update changelog
2024-12-21 19:41:59 +01:00
André Roth
da29961052
Revert "debian: do not conflict with gnupg1"
...
This reverts commit 2f540a8026 .
2024-12-21 18:55:49 +01:00
André Roth
e5b8315859
Merge pull request #1411 from schoenherrg/feature/filter-using-file
...
Feature: Support Reading Filter Expressions from a File
2024-12-21 18:54:44 +01:00
André Roth
c6bb5f76f7
cmd filter: add comment and cleanup
2024-12-21 11:37:15 +01:00
André Roth
fea7acb56e
Merge pull request #1407 from aptly-dev/dependabot/go_modules/golang.org/x/crypto-0.31.0
...
Bump golang.org/x/crypto from 0.26.0 to 0.31.0
2024-12-20 11:29:07 +01:00
Gordian Schoenherr
50d3676847
Update man page
2024-12-20 12:55:56 +09:00
Gordian Schoenherr
8830354027
Extend system tests for @file filter syntax
2024-12-20 10:59:29 +09:00
Gordian Schoenherr
2467674fca
Update system tests
2024-12-19 16:05:21 +09:00
Gordian Schoenherr
9691b0f518
Refactor query reading from file, update docs
...
Add support for @file syntax in more places.
2024-12-19 15:02:10 +09:00
Christof Warlich
005114839a
Generalize to read filter from file or stdin.
2024-12-13 11:24:54 +09:00
Christof Warlich
a5d322252a
Allow reading package query for -filter option from a file.
2024-12-13 11:24:47 +09:00
dependabot[bot]
b49630d6fc
Bump golang.org/x/crypto from 0.26.0 to 0.31.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.26.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-12 00:24:55 +00:00
André Roth
93650efddb
Merge pull request #1404 from schoenherrg/fix/with-sources-ignored
...
Fix `-with-sources` not fetching differently named source packages
2024-12-11 13:01:30 +01:00
André Roth
d87327835e
Merge pull request #1401 from aptly-dev/feature/yaml-config
...
Feature/yaml config
2024-12-11 12:38:47 +01:00
André Roth
0d90ff96b9
debian: add build dependency for yaml
2024-12-11 12:02:52 +01:00
André Roth
b14595cb2d
cleanup makefile
2024-12-11 12:02:52 +01:00
André Roth
e50a5e175f
update documentation and man page
2024-12-11 12:02:52 +01:00
André Roth
a7d6782176
add test and improve config error messages
2024-12-11 12:02:52 +01:00
André Roth
eb6dd4d69e
swagger: fix docker serve
2024-12-11 12:02:52 +01:00
André Roth
a15d8a3f7b
add test
2024-12-11 12:02:52 +01:00
André Roth
22cfa4c8c7
add yaml example
2024-12-11 12:02:52 +01:00
André Roth
4e566b4692
fix tests and lint
2024-12-11 12:02:52 +01:00
André Roth
9d0c7b5ade
make yaml config default
2024-12-11 12:02:52 +01:00
André Roth
87a36633e9
group and order config items
...
and fix lint
2024-12-11 12:02:52 +01:00
André Roth
0e0189f0eb
use yaml config file
2024-12-11 12:02:52 +01:00
André Roth
a880a88fc0
yaml config
2024-12-11 12:02:52 +01:00
André Roth
465312b8a0
Merge pull request #1359 from aptly-dev/improve/documentation
...
Improve/documentation
2024-12-11 12:02:13 +01:00
André Roth
e319f3cd14
update doc
...
make descrptions consistent
2024-12-11 11:19:46 +01:00
André Roth
e92afd8f78
fix unit tests on arm
...
and fix etcd data dir
2024-12-11 10:40:44 +01:00
André Roth
280563caa8
unit-tests: allow running as user
2024-12-11 10:40:44 +01:00
André Roth
3d8968eff3
swagger: install native swag
2024-12-11 10:40:44 +01:00
André Roth
1301847b7e
update CONTRIBUTING
2024-12-11 10:40:44 +01:00
André Roth
09c56342d2
fix json
2024-12-11 10:40:44 +01:00
André Roth
ea80f6d49c
write commented json default config
2024-12-11 10:40:44 +01:00
André Roth
622072bd50
document aptly.conf
2024-12-11 10:40:44 +01:00
André Roth
1f469e23b5
fix optional params
2024-12-11 10:40:44 +01:00
André Roth
d8b9777b40
swagger: document params
2024-12-11 10:40:44 +01:00
André Roth
e5e3c49ace
swagger: document async
2024-12-11 10:40:44 +01:00
André Roth
c6e0a06b14
swagger: cleanup
2024-12-11 10:40:44 +01:00
André Roth
75e5f95277
task-dummy: remove internal testing API
2024-12-11 10:40:44 +01:00
André Roth
a59fc6b8e8
swwagger: cleanup
2024-12-11 10:40:44 +01:00
André Roth
4ff3c894fa
swagger: cleanup Snapshots
2024-12-11 10:40:44 +01:00
André Roth
abfad37640
swagger: cleanup files doc
2024-12-11 10:40:44 +01:00
André Roth
63b8cc9ad9
dos: improve api info
2024-12-11 10:40:44 +01:00
André Roth
a69c00a5bc
swagger: improve layout
...
and fix lint
2024-12-11 10:40:44 +01:00
André Roth
4f229a5bcf
update doc
2024-12-11 10:40:44 +01:00
André Roth
83f7c869f0
doc: improve cmd usage arguments
2024-12-11 10:40:44 +01:00
André Roth
397362bb1a
fix swagger build
2024-12-11 10:40:44 +01:00
iofq
d5571c41c7
Update files api docs
2024-12-11 10:40:44 +01:00
iofq
39921809ee
Update db api docs
2024-12-11 10:40:44 +01:00
iofq
68fe2bc852
Update gpg, graph api docs
2024-12-11 10:40:44 +01:00
iofq
398fec13b0
Update packages api docs
2024-12-11 10:40:44 +01:00
iofq
9fc7ebdac2
Update repos, task, snapshot api docs
2024-12-11 10:40:44 +01:00
André Roth
74bc3f5db3
update go.mod
...
and make sure make lint has the VERSION generated
2024-12-11 10:40:44 +01:00
André Roth
a5f8ce2503
doc: import chapters from aptly.info
2024-12-11 10:40:44 +01:00
André Roth
2171c05ef8
fix lint
2024-12-11 10:40:44 +01:00
André Roth
8f8de4bd29
update
2024-12-11 10:40:44 +01:00
André Roth
c055611914
update go.mod
2024-12-11 10:40:44 +01:00
André Roth
9b8f6b1d56
fix conflict
2024-12-11 10:40:43 +01:00
André Roth
096fa47c6d
update doc
2024-12-11 10:40:43 +01:00
André Roth
e677a2e84a
go mod tidy
2024-12-11 10:40:43 +01:00
André Roth
69a1e2561d
docs: improve swagger
...
- use markdown files in swagger
- automate version, use swager.conf template
- embed swagger ui index.html as docs.html
2024-12-11 10:40:43 +01:00
André Roth
2df82e87b7
document aptly.conf
2024-12-11 10:40:43 +01:00
André Roth
cc1fc7ccfe
allow comments in config file
2024-12-11 10:40:43 +01:00
André Roth
ba86851d07
add api documentation stubs
2024-12-11 10:40:43 +01:00
André Roth
f9ae9b323a
Merge pull request #1214 from aptly-dev/fix/1213-aptly-graph-removed-before-exiting
...
Fix: Graph deleted before aptly exits
2024-12-11 10:11:49 +01:00
André Roth
5e91b10c8c
improve test to check for source pkgs with different name
2024-12-11 05:33:38 +01:00
Gordian Schoenherr
568345c396
Add name to AUTHORS
2024-12-10 12:12:23 +09:00
Gordian Schoenherr
8c3fe8dabb
Fix failing system test
...
The fix of the -with-filter flag causes the following previously
missing source files to be downloaded, so I updated the test file.
```
rkward_0.7.5-1~bullseyecran.0.debian.tar.xz
rkward_0.7.5-1~bullseyecran.0.dsc
rkward_0.7.5.orig.tar.gz
rpy2_3.5.12-1~bullseyecran.0.debian.tar.xz
rpy2_3.5.12-1~bullseyecran.0.dsc
rpy2_3.5.12.orig.tar.gz
```
2024-12-10 11:52:55 +09:00
Gordian Schoenherr
ef6815222c
Add unit tests for filtering with source packages
2024-12-09 13:17:41 +09:00
Gordian Schoenherr
0c76677b16
Fix -with-sources not downloading differently named sources
...
Such as e.g. downloading 'glibc' when the sources for 'libc6'
are requested.
2024-12-09 13:17:41 +09:00
Gordian Schoenherr
3b785e4165
Refactor Filter options into a struct
...
It was already a lot of options for one method and I am going to add
another one in the next commit.
2024-12-09 13:17:41 +09:00
André Roth
320307f504
graph: do not remove tempfile when opening in viewer
2024-12-04 17:30:27 +01:00
André Roth
88ef8efba5
Merge pull request #1396 from aptly-dev/fix/debianization
...
Fix/debianization
2024-12-04 09:07:26 +01:00
André Roth
3fad19650d
Merge pull request #1400 from cfiehe/fix/null_pointer_when_dropping_published_repo
...
Fix: Null pointer when dropping a multi-dist published repo
2024-12-02 15:47:30 +01:00
Christoph Fiehe
7d9f020ae8
Fix null pointer when dropping a multi dist published repo.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-12-02 15:09:46 +01:00
André Roth
2f540a8026
debian: do not conflict with gnupg1
2024-12-01 10:54:54 +01:00
André Roth
b2d05828a5
set systemd service file limit to 32768
2024-12-01 10:54:54 +01:00
André Roth
b7e91f0994
Merge pull request #1395 from leighlondon/patching-aws-sdk-go-v2
...
Bulk patch aws/aws-sdk-go-v2 dependencies
2024-11-28 13:57:06 +01:00
Leigh London
247f5e7c60
update AUTHORS
2024-11-19 15:06:58 +11:00
Leigh London
36121e5643
Bulk patch aws/aws-sdk-go-v2 dependencies
2024-11-19 14:59:26 +11:00
André Roth
763b810ca8
Merge pull request #1392 from aptly-dev/fix/azure-sdk-migration
...
Migrate to azure-sdk-for-go
2024-11-17 18:13:02 +01:00
André Roth
d80b905945
run azure tests in docker
2024-11-17 17:44:31 +01:00
André Roth
e2cbd637b8
use new azure-sdk
2024-11-17 17:43:20 +01:00
André Roth
d96ef0f178
Merge pull request #1393 from aptly-dev/improve/debianization
...
Improve/debianization
2024-11-17 17:38:47 +01:00
André Roth
de181bef0f
Merge pull request #1186 from aptly-dev/feature/384-generate-checksums-for-component-files
...
Feature/384-generate-checksums-for-component-files
2024-11-17 17:33:41 +01:00
André Roth
14e4f3dad8
include more official debianization
2024-11-17 15:44:27 +01:00
André Roth
d2b9adf6f2
Add a test to confirm that skel files added with the same path as a repository file do not override the repository file.
...
Co-authored-by: iofq <cjriddz@protonmail.com >
2024-11-17 14:17:14 +01:00
André Roth
036422399a
add -no-lock flag to service
2024-11-17 14:10:31 +01:00
André Roth
53c2f8b778
debian: add lintian
...
and fix/improve cross building. build now with PIE and RELRO
2024-11-17 14:10:30 +01:00
André Roth
6050051e04
adapt to official debian aptly packaging
2024-11-17 14:10:30 +01:00
André Roth
8c2ea639fd
debian: use package versions from bookworm-backports
2024-11-17 14:10:30 +01:00
André Roth
5ddb718eab
support ~ in rootDir
2024-11-17 14:09:37 +01:00
André Roth
9ca9569714
fix build and golangci-lint
2024-11-17 14:09:37 +01:00
Mauro Regli
1357d246d8
rename addon files to skel files
2024-11-17 14:09:37 +01:00
Mauro Regli
03f189b62c
add first test of addon files
2024-11-17 14:09:37 +01:00
Mauro Regli
8d8f4714c3
add name to AUTHORS list
2024-11-17 14:09:37 +01:00
Mauro Regli
c75c2c7594
pass down addonpath from api and cmd context
2024-11-17 14:09:37 +01:00
Mauro Regli
17186b0c73
add GetAddonPaths to publish file
2024-11-17 14:09:37 +01:00
Mauro Regli
2aac7baf52
add AddonIndex to index_files
...
I had to remove "signable: false" (line 399), since that property
doesn't exist.
2024-11-17 14:09:37 +01:00
Mauro Regli
bc090e1dce
add GetAddonDir to context
2024-11-17 14:09:37 +01:00
André Roth
31ccce1343
Merge pull request #1388 from aptly-dev/fix/flat-mirror-filtering
...
do not set empty mirror architectures for flat mirrors
2024-11-16 21:40:27 +01:00
André Roth
147955c682
Merge pull request #1390 from iofq/master
...
Make HTTP server wait for tasks before shutdown
2024-11-10 15:38:47 +01:00
iofq
840b76228a
add shutdown context unit test
2024-11-09 15:34:35 -06:00
iofq
8436001d5b
Make HTTP server wait for tasks before shutdown
2024-11-08 14:06:23 -06:00
André Roth
c86b888b0a
add tests
2024-11-08 19:00:18 +01:00
André Roth
0936922172
only allow mirrors with architectures set
2024-11-08 17:07:37 +01:00
André Roth
62a0a1a560
log error
2024-11-08 17:07:37 +01:00
André Roth
596f59d3c4
fix tests
2024-11-08 17:07:37 +01:00
André Roth
e642847a82
log filtering error
2024-11-08 17:07:37 +01:00
André Roth
26c14e218a
fix lint
2024-11-08 17:07:37 +01:00
André Roth
26c775ccfd
fix test
...
flat repos may have architecture which is needed for filtering dependencies
2024-11-08 17:07:37 +01:00
André Roth
d6284148f9
set Architectures from flat mirror
...
note: 'Architecture' is not official, but used by nvidia mirrors for no debian arch 'x86_64'. shold this be supported ?
2024-11-08 17:07:37 +01:00
André Roth
4c58266a87
do not set empty mirror architectures for flat mirrors
2024-11-08 17:07:37 +01:00
André Roth
2f06b0690c
Merge pull request #1387 from 5hir0kur0/fix/providesDependency-error
...
package.go: Fix bug in providesDependency
2024-11-08 16:22:48 +01:00
André Roth
19d213d748
fix tests
2024-11-08 15:55:01 +01:00
5hir0kur0
c8fca7953c
package.go: Fix bug in providesDependency
...
Use package version if `Provides:` entry does not specify a version.
2024-11-08 15:55:01 +01:00
André Roth
55d4d98353
Merge pull request #1389 from aptly-dev/remove-lfs
...
Remove lfs
2024-11-08 15:52:32 +01:00
André Roth
dd4f90e4c2
Revert "use git-lfs for test files"
...
This reverts commit bf4b660568 .
2024-11-08 15:23:31 +01:00
André Roth
6647f6d0e0
Merge pull request #1386 from aptly-dev/fix/add-provided-package
...
Fix/add provided package
2024-11-08 10:58:30 +01:00
André Roth
9d05949d19
update doc
2024-11-08 10:20:25 +01:00
André Roth
9da58b1ea2
ci: lfs checkout
2024-11-07 17:14:56 +01:00
André Roth
38485a5b1e
add test
2024-11-07 17:07:37 +01:00
André Roth
bf4b660568
use git-lfs for test files
2024-11-07 17:07:37 +01:00
André Roth
c028d5e8cb
docker-server: also watch cmd/ directory
2024-11-04 17:02:54 +01:00
André Roth
eafec74c29
allow to exclude provided packages from list.Search
2024-11-04 17:02:54 +01:00
André Roth
74364544c2
Merge pull request #1366 from cfiehe/feature/allow_component_management
...
Allow adding, removing and replacing of published repository components
2024-11-01 20:45:23 +01:00
André Roth
a4c53689ca
docker-wrapper: ignore root user
...
some systems (MacOS) might have root permissions on the volume directories.
2024-11-01 20:18:05 +01:00
André Roth
0ceff44421
improve log
2024-11-01 20:01:45 +01:00
André Roth
f79423a4ee
update swagger documentation
2024-11-01 17:48:03 +01:00
Christoph Fiehe
c9309c926c
Command to replace the whole staged source list added.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-11-01 17:48:03 +01:00
André Roth
ee3124cfc6
update bash completion
2024-11-01 17:48:03 +01:00
André Roth
eb94211053
fix race conditions
2024-11-01 17:48:03 +01:00
André Roth
bd01cd4033
update swagger documentation
2024-11-01 17:48:03 +01:00
Christoph Fiehe
21013a8317
Command descriptions fixed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-11-01 17:48:03 +01:00
Christoph Fiehe
451de79666
Improve consistency between API and Swagger docs.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-11-01 17:48:03 +01:00
André Roth
755fdfaca2
update swagger documentation
...
- add default values
- set default values
2024-11-01 17:48:03 +01:00
André Roth
f4057850b9
fix compile and lint errors
2024-11-01 17:47:50 +01:00
André Roth
a56f52ff18
update man pages
2024-10-22 16:58:15 +02:00
André Roth
4d6688d68e
sanitize archs
2024-10-22 16:58:15 +02:00
Christoph Fiehe
7a7ff1142c
Minor code and documentation changes.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
8cceed12f7
Fix tests.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
f8f28e9554
Fixing tests and fix cleanup.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
ac5ecf946d
Cleanup improved and code redundant code removed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
d87d8bac92
Fix test cases.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
9dffe791ad
Restoring original test sequence
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
3057aed571
Test cases added.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
14c29ff912
Fixing tests.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
73cdf5417b
Use POST instead of PUT for source creation.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
André Roth
fa0d2860f0
fix multidist in publish
2024-10-22 16:58:15 +02:00
André Roth
dcbb2a06a5
fix build
2024-10-22 16:58:15 +02:00
Christoph Fiehe
bd64232eb6
Allow management of components
...
This commit allows to add, remove and update components of published repositories without the need to recreate them.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
André Roth
767bc6bd0b
Merge pull request #1380 from aptly-dev/fix/concurrent-api
...
Fix race condition with async API operations
2024-10-22 16:56:12 +02:00
André Roth
8ddb81eb5c
Merge pull request #1368 from aptly-dev/fix/repo-add-errmsg
...
repo add: improve error message
2024-10-22 16:39:45 +02:00
André Roth
f16a68f59c
fix race condition with repo add files
...
Do all relevant database reading/modifying inside `maybeRunTaskInBackground`.
Notably, `LoadComplete` will load the reflist of a repo. if this is done outside of a background operation,
the data might be outdated when the background tasks runs.
2024-10-22 15:12:25 +02:00
André Roth
0e6f9c38fb
ci: add packages to aptly repo with async
2024-10-22 14:38:02 +02:00
André Roth
037da55de1
Merge pull request #1375 from aol-nnov/api-create-repo-from-snapshot
...
Update create repo API to support snapshots
2024-10-22 11:45:47 +02:00
André Roth
0666f8784f
repo from snapshot: add negative test
2024-10-22 11:13:31 +02:00
André Roth
01f16d35c2
swagger: make json params uppercase and add default values
2024-10-22 11:02:59 +02:00
Андрей Лухнов
f8e0a8d880
Update create repo API to support snapshots
...
To achieve feature parity with cli, it is now possible
to create repos from snapshots
2024-10-22 07:53:43 +03:00
André Roth
ae0fa20aa6
Merge pull request #1370 from aptly-dev/fix/path-traversal
...
fix path traversal
2024-10-11 15:15:30 +02:00
André Roth
cefc09a41b
more sanitize
2024-10-11 14:11:09 +02:00
André Roth
7742980426
use specific go version
...
As of Go 1.21, toolchain versions must use the 1.N.P syntax.
2024-10-11 12:56:08 +02:00
André Roth
57639c4adf
Sanitize path api params
...
- fix path traversal complains by CodeQL
2024-10-11 12:56:08 +02:00
André Roth
75ca51b23b
improve error message
2024-10-10 12:03:13 +02:00
André Roth
ce2966e547
Merge pull request #1364 from aptly-dev/feature/persist-multidist
...
Feature/persist multidist
2024-10-09 11:55:48 +02:00
André Roth
861260198a
publish: persist multidist flag
2024-10-08 22:28:12 +02:00
André Roth
3e7bec5604
Merge pull request #1363 from aptly-dev/improve/dev-ci
...
Improve/dev ci
2024-10-08 22:22:34 +02:00
André Roth
14a343a0d7
system tests: support fitureCmds and allow dirmgr to startup
...
- fixes a race condition, where dirmgr does not seem to be ready
- imports secret key for signing if gpg2 is used
2024-10-08 15:38:42 +02:00
André Roth
704af8f2f0
docker: use bash shell for aptly user
2024-10-08 02:14:30 +02:00
André Roth
ac2dd1dfd3
go mod tidy
2024-10-08 01:22:10 +02:00
André Roth
df18133179
fix system test
...
fixture commands are actually executing ./aptly-test, do the same here
2024-10-08 01:22:10 +02:00
André Roth
be6d06a653
ci: delete aptly tasks after publish
2024-10-08 01:22:10 +02:00
André Roth
a998755245
debian: fix dependencies
...
- docker: install more tools
2024-10-08 01:22:10 +02:00
André Roth
98c82a3684
improve Makefile
...
- simplify Makefile
- improve devserver
- improve make clean
2024-10-08 01:22:10 +02:00
André Roth
4658bec08b
Merge pull request #1358 from aptly-dev/improve/grab-downloader
...
improve and test grab downloader
2024-10-05 18:29:08 +02:00
André Roth
33047c2c55
cleanup gpg keys
...
- move gpg files to one place
- with gpg2, the secretkey parameter is ignored. aptly can also ignore it
2024-10-04 18:46:40 +02:00
André Roth
b2b7f11d17
ci: remove pip and virtualenv
...
- separate unit tests, benchmark, system tests, flake8
2024-10-04 15:56:57 +02:00
André Roth
f0ad0f9496
improve and test grab downloader
2024-10-04 13:37:56 +02:00
André Roth
d6a156b181
Merge pull request #1162 from aptly-dev/feature/176-snapshot-pull-api
...
Snapshot Pull API
2024-10-03 23:07:27 +02:00
André Roth
880f487093
Merge pull request #1352 from aptly-dev/feature/storage-api
...
Feature/storage api
2024-10-03 23:02:19 +02:00
André Roth
bce54d5878
mirror api: update documentation
2024-10-03 22:39:03 +02:00
André Roth
dbc336f921
system-tests: show execution time
2024-10-03 21:53:43 +02:00
André Roth
71085969f5
Makefile: more colors
2024-10-03 19:17:27 +02:00
André Roth
c35cd783cf
swagger: improve doc
2024-10-03 17:46:32 +02:00
André Roth
38ea720fc5
snapshot merge: use proper REST api
...
- this breaks the existing api, which is only available in CI builds
- improve swagger doc
2024-10-03 17:34:29 +02:00
André Roth
06b2b920da
make REST api more restful
2024-10-03 14:51:45 +02:00
André Roth
a3078fa93e
improve make clean
2024-10-03 14:25:46 +02:00
André Roth
0bc45c822d
swagger: document /api/snapshots/pull
2024-10-03 14:25:46 +02:00
Mauro Regli
af5b04b24f
Feature: Add Pull Snapshot API
2024-10-03 14:25:46 +02:00
André Roth
678d0c61f1
github: move upload-artifacts script to pipeline directory
2024-10-03 01:24:10 +02:00
André Roth
37ee41af67
system-test: enable test not depending on FTP
2024-10-03 01:15:56 +02:00
André Roth
8b8eb57555
update etcd go mod
...
to be compatible with debian version
2024-10-03 01:15:56 +02:00
André Roth
d6efe8636e
cleanup FTP system tests
...
as we cannot test FTP with S3 backend easily, test is disabled and removed from api tests
2024-10-03 01:15:56 +02:00
André Roth
caf55bb8e0
ci: cleanup step names
2024-10-03 01:15:56 +02:00
André Roth
cc4798472f
fix test depending on gpg1 keys
2024-10-02 21:29:28 +02:00
André Roth
e3a95d5c4e
make swagger quiet
2024-10-02 21:29:25 +02:00
André Roth
997ffe9c31
system-tests: install swag only if needed
2024-10-02 21:29:12 +02:00
André Roth
c6c607a406
improve make docker-shell
2024-10-02 19:13:00 +02:00
André Roth
c25693b009
storage: add tests
2024-10-02 19:12:05 +02:00
André Roth
fca153cc8b
docker-deb: install and init swagger
2024-10-02 18:48:48 +02:00
André Roth
06cbd29d0d
add storage API
2024-10-02 18:48:48 +02:00
André Roth
aff7b0db50
Merge pull request #1348 from aptly-dev/improve/debian-build
...
Improve/debian build
2024-10-01 20:11:00 +02:00
André Roth
f7ff964085
debian: fix lintian complaints
...
- remove dulplicate bash completion
- fix lintian complaint about bash completion
- add built-using
2024-10-01 13:59:42 +02:00
André Roth
94dc4f2365
debian: update dependencies
...
all go dependencies are available in debian/testing (trixie) and aptly builds.
2024-10-01 13:59:42 +02:00
André Roth
09954b2c73
build-deb: build only host architecture
2024-10-01 13:59:42 +02:00
André Roth
87fc8c16af
Merge pull request #1351 from aptly-dev/feature/swagger
...
Feature/swagger
2024-10-01 13:07:40 +02:00
André Roth
75530810b5
ci: update actions/checkout module
2024-10-01 01:36:09 +02:00
André Roth
bdabfa1071
go mod tidy
2024-10-01 01:32:56 +02:00
André Roth
26a9219f7d
swagger: add test
2024-10-01 01:32:56 +02:00
André Roth
5b92336668
add development server
2024-10-01 01:07:09 +02:00
André Roth
fb538333fa
add swagger documentation
2024-10-01 01:07:09 +02:00
André Roth
1d1bd41bb8
add swagger support
...
- install swaggo
- add swagger config option
2024-10-01 01:07:09 +02:00
dependabot[bot]
96e60ae540
build(deps): bump google.golang.org/grpc from 1.64.0 to 1.64.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.64.0 to 1.64.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.64.0...v1.64.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-24 16:41:06 +02:00
Christoph Fiehe
4195ad90bc
Allow to add a new component to a published repo
...
This commit modifies the behavior of the publish switch method in the way, that also new components can be added to an already published repository. It is no longer necessary to drop and recreate the whole publish.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-09-24 15:43:27 +02:00
André Roth
eaa363eb82
ci: allow to force ci build
...
this should not build release if pipeline triggered on master and master also has a version tag. avoid building same version twice and uploading to ci and release repos.
2024-09-24 10:14:39 +02:00
André Roth
795870bca5
ci: skip deb upload if no creds
2024-09-24 10:14:39 +02:00
André Roth
7e73165409
ci: use tag/branch for release/ci building
2024-09-24 10:14:39 +02:00
André Roth
2d6d371292
update man page
2024-09-24 10:14:39 +02:00
André Roth
d9168ed723
ci: log aptly version
2024-09-24 10:14:39 +02:00
André Roth
57fc7f7098
fix github-upload
2024-09-24 10:14:39 +02:00
André Roth
20c81d7f9a
ci: allow pull requests
...
disable tests if env secrets are empty
- detect emtpy aws token
- upload: check for aptly creds
2024-09-24 10:14:39 +02:00
André Roth
67d04ca878
debian: move config file to aptly-api
2024-09-24 10:14:39 +02:00
André Roth
f5dda668e3
ci: do not upload ci on release builds
2024-09-24 10:14:39 +02:00
André Roth
769150dec6
system tests: enable S3 tests
2024-09-24 10:14:39 +02:00
André Roth
02d080955b
ci: move scripts to makefile
2024-09-24 10:14:39 +02:00
André Roth
04739a41fa
ci: do not unzip articact upload
2024-09-24 10:14:39 +02:00
André Roth
9771747916
improve CI workflow
...
- use debian version consistently
- if the commit is not on a git tag, append ci version
- avoid double zipping
- cleanup binary builds
- replace `make release` with `make binaries`
- add missing files to archives
- use matrix build for deb packages
- allow building release version
- keep directory inside zip archives
- accept releases only on master
only tags on master will trigger a release
- cleanup namings
- keep path in zip
- add retention period for pipeline artifacts
2024-09-24 10:14:39 +02:00
André Roth
497196886a
system-tests: download compressed etcd.db
2024-09-24 10:14:39 +02:00
iofq
056df39a3c
move release script to Makefile
2024-09-24 10:14:39 +02:00
iofq
5e86a0b9e6
use multiarch CI build for release
2024-09-24 10:14:39 +02:00
André Roth
ba2c86361d
remove debug
2024-09-24 10:14:39 +02:00
André Roth
b92ca5d6e5
use unique and incremental CI version
2024-09-24 10:14:39 +02:00
André Roth
fe2c623638
debian: fix config migration
2024-09-24 10:14:39 +02:00
André Roth
0e9f047c37
ci upload: handle errors
2024-09-24 10:14:39 +02:00
André Roth
582201ab7c
build for Debian trixie (testing)
2024-09-24 10:14:39 +02:00
André Roth
88f4101866
update or downgrade go modules to match debian versions
...
- use go 1.22 (as available also in bookworm-backports)
- do not install go mods in docker
2024-09-24 10:14:39 +02:00
André Roth
373a157163
release for ubu24.04
2024-09-24 10:14:39 +02:00
André Roth
0178093f6c
catch config file errors
2024-09-24 10:14:39 +02:00
André Roth
8e8cf90a71
ci: use async aptly publish
2024-09-24 10:14:39 +02:00
André Roth
a22dc9be1b
do not hardcode go version
2024-09-24 10:14:39 +02:00
André Roth
2306993b7b
ci: improve aptly repo layout
...
use the new -multi-dist option to combine all distributions into one
publish point:
deb http://repo.aptly.info/ci bookworm main
or:
deb http://repo.aptly.info/release bookworm main
for the following distributions: buster, bullseye, bookworm, focal, jammy
2024-09-24 10:14:39 +02:00
André Roth
c248dc1803
github CI: use dpkg-buildpackage for building debian packages
...
- use go 1.19
- Makefile: improve unit test output
- cleanup: remove travis
2024-09-24 10:14:39 +02:00
André Roth
53f96c98ad
CI: use go 1.22 for merging code code
2024-09-24 10:14:39 +02:00
André Roth
98b1ed07d1
docker: improve dev env
...
- abort docker scripts on error
- generate version in system tests
- build debian packages in docker
- add make clean target
- fix lint
2024-09-24 10:14:39 +02:00
André Roth
b342af0d96
system tests: fix gpgv warning when verifying signatures
...
gpgv: can't allocate lock for '/home/runner/.gnupg/aptlytest.gpg'
this forced running local system tessts in /home/runner, as it is
in the gitgub actions.
2024-09-24 10:14:39 +02:00
André Roth
52faf78324
use /usr/local/etc/aptly.conf config file
...
fixes #1108
2024-09-24 10:14:39 +02:00
Andre Roth
8fd48e9fa9
add default aptly config files
...
config rfiles are read in the following order:
1) ~/.aptly.conf
2) /usr/local/etc/aptly.conf
3) /etc/aptly.conf
2024-09-24 10:14:39 +02:00
André Roth
32a3943821
support ~ in rootDir as home directory
2024-09-24 10:14:39 +02:00
André Roth
f7f220aa18
debianize
...
- fix make version on debian
- update gitignore
- add aptly-api and service
- install zsh completion
- add debug package
- move aptly data from orig deb package
- do not add shell for service user
- use 8080 as default port
2024-09-24 10:14:39 +02:00
iofq
372ce3c4bc
Avoid nil panic when downloadSpeedLimit is set in api mode
2024-08-16 10:04:46 +02:00
André Roth
95915480a0
update tests
...
the fixed handling of provided packages results in snapshots no longer missing provided packages,
and also provided packages being added to repos.
2024-08-11 12:35:46 +02:00
5hir0kur0
d2332e6452
Log a warning for errors in MatchesDependency
2024-08-11 12:35:46 +02:00
André Roth
1428f54a02
make compatible with go 1.19
2024-08-11 12:35:46 +02:00
André Roth
feb87c0f19
Revert "Remove errors.Join usage for go1.19 compatibility"
...
This reverts commit 1339e35dd785fff114549e027d81cbe47a882e27.
2024-08-11 12:35:46 +02:00
5hir0kur0
934fa0598b
Remove errors.Join usage for go1.19 compatibility
2024-08-11 12:35:46 +02:00
5hir0kur0
6d6761e234
Add unit tests for Provides entries with version
2024-08-11 12:35:46 +02:00
5hir0kur0
ab18d4835b
Support version relation in Provides entries
2024-08-11 12:35:46 +02:00
iofq
ff8a02959c
fix throttled downloader
2024-08-11 10:20:37 +02:00
André Roth
37a9fbe530
api: fix OOM with sync tasks
...
since sync API calls also use tasks internally, this lead to out of memory due to aptly never removing them.
2024-08-03 14:36:04 +02:00
André Roth
735d7a4d61
docker: reduce build size
2024-08-03 00:14:26 +02:00
André Roth
40eb4b4751
docker-lint: use go 1.19 compatible golangci-lint version
...
- use same user in docker container
- use GOPATH in source dir to prevent downloading all dependencies on each run
- add make clean
2024-08-03 00:14:26 +02:00
André Roth
0a6e8e3c9e
update code of conduct to use github discussions
2024-08-03 00:14:26 +02:00
André Roth
556d7fa4b8
apply PR feedback
2024-08-03 00:14:26 +02:00
André Roth
5718f3f2f5
improve Makefile help
2024-08-03 00:14:26 +02:00
André Roth
0251fddae4
improve Makefile documentation
2024-08-03 00:14:26 +02:00
André Roth
0215925608
add graphviz to enable system tests
...
aptly uses dot in the aptly graph command and API. if it is not available, the test is skipped...
2024-08-03 00:14:26 +02:00
André Roth
696b78f207
docker: update dev env and documentation
2024-08-03 00:14:26 +02:00
André Roth
674f4f784b
s3: use new Endpoint API
...
lint: s3/public.go#L136
SA1019: config.WithEndpointResolverWithOptions is deprecated: The global endpoint resolution interface is deprecated. See deprecation docs on [WithEndpointResolver]. (staticcheck)
lint: s3/public.go#L137
SA1019: aws.Endpoint is deprecated: This structure was used with the global [EndpointResolver] interface, which has been deprecated in favor of service-specific endpoint resolution. See the deprecation docs on that interface for more information. (staticcheck)
lint: s3/public.go#L138
SA1019: aws.Endpoint is deprecated: This structure was used with the global [EndpointResolver] interface, which has been deprecated in favor of service-specific endpoint resolution. See the deprecation docs on that interface for more information. (staticcheck)
2024-08-03 00:14:26 +02:00
André Roth
83a05a1900
golangci-lint: download and build before lint
2024-08-03 00:14:26 +02:00
André Roth
48a0bca35e
allow s3 test in docker
...
read AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY from ./aws.creds when running:
make docker-system-tests
2024-08-03 00:14:26 +02:00
dependabot[bot]
a7690c375e
Bump google.golang.org/grpc from 1.38.0 to 1.56.3
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.38.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.38.0...v1.56.3 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 22:15:17 +02:00
André Roth
a0bd32a39c
system tests: fix expired ppa mirror key
2024-07-31 22:16:00 +02:00
André Roth
0b3dd2709b
apply PR feedback
2024-07-31 22:16:00 +02:00
André Roth
ff1557afee
update go.mod
2024-07-31 22:16:00 +02:00
André Roth
67771795ca
etcd: implement transactions
...
- use temporary db for lookups in transactions
- use batch implementation to commit transaction
2024-07-31 22:16:00 +02:00
André Roth
7a01c9c62d
etcd: implement batch operations
...
- cache the operations internally in a list
- Write() applies the list to etcd
2024-07-31 22:16:00 +02:00
André Roth
9768ecef22
etcd: implement temporary db support
...
- temporary db support is implemented with a unique key prefix
- prevent closing etcd connection when closing temporary db
2024-07-31 22:16:00 +02:00
André Roth
640c202ee5
etcd: implement separate system tests
...
- add t13_etcd test directory
- etcd will be started for the unit tests and each system test
- etcd will load fixture DB export if requested by the test
- existing tests are reused for etcd testing
2024-07-31 22:16:00 +02:00
André Roth
f10acb3df8
etcd: fix db config and test
...
fix unit test for adapted config file
2024-07-31 22:16:00 +02:00
André Roth
5b74f82edb
etcd: fix int overflow
...
goxc fails with:
Error: database/etcddb/database.go:17:25: cannot use 2048 * 1024 * 1024 (untyped int constant 2147483648) as int value in struct literal (overflows)
2024-07-31 22:16:00 +02:00
hudeng
59bf4501e8
feat: Use databaseBackend config repace databaseEtcd
...
databaseBackend config contains type and url sub config, It can facilitate the expansion of other types of databases in the future.
2024-07-31 22:16:00 +02:00
hudeng
f29449db14
feat: Add system test for etcd
2024-07-31 22:16:00 +02:00
hudeng
78172d11d7
feat: Add etcd database support
...
improve concurrent access and high availability of aptly with the help of the characteristics of etcd
2024-07-31 22:16:00 +02:00
NeroBurner
f42ff697d4
CONTRIBUTING: Python3 is supportet
...
Explicitly state that Python3 is supported and required.
Since aptly `v1.5.1` (with commit 035d5314b0 )
the tests are ported to Python3.
With a687df2f4f the system
tests are run with `python3` per default.
With f4a152ab22 (after `v1.5.0` aptly tag)
the tests run against Python 3.11.
2024-07-25 10:10:05 +02:00
André Roth
57e2c5c670
api tests: use check_task_fail
2024-07-24 21:19:47 +02:00
André Roth
8b41ec48c8
use consistent golangci-lint version
2024-07-24 21:19:47 +02:00
André Roth
49ff832f94
reenable lost tests
2024-07-24 21:19:47 +02:00
André Roth
09a44ba409
fix empty mirror check
2024-07-24 21:19:47 +02:00
André Roth
deae90485a
fix DirIsAccessible
...
perms 0000 need to be checked explicitly
2024-07-24 21:19:47 +02:00
André Roth
4a0bdcbb64
improve system tests
...
- log import errors for test modules
- log output only on test failure
- improve docker system test container
- use go 1.19 in docker system tests
- download go dependencies in docker container
- system tests: color failues output
- imrpove test result output
- do not install golangci-lint in system tests
2024-07-24 21:19:47 +02:00
André Roth
9f1860dff7
fix unit test
2024-07-24 21:19:47 +02:00
André Roth
fe25414b45
api: repo copy handle package not found
...
and add tests for error proper handling.
2024-07-24 21:19:47 +02:00
André Roth
49184c9163
fix apiReposCopyPackage getting corrupt file name
...
it seems c.Params.ByName("file") should not be used
inside maybeRunTaskInBackground, as the content may be corrupted sometimes.
2024-07-24 21:19:47 +02:00
André Roth
440c3debdc
improve api tests and error output
...
show only relevant aptly logs if a test fails.
for async tasks, show task output, as it contains the error message.
2024-07-24 21:19:47 +02:00
André Roth
8029305d32
dependencies: remove duplicates / missing deps from test
2024-07-11 18:25:49 +02:00
5hir0kur0
02bdb7c76a
Deduplicate missing dependency list
2024-07-11 18:25:49 +02:00
5hir0kur0
8d537b4e3e
Fix bug in dependency resolution
2024-07-11 18:25:49 +02:00
Sylvain Nieuwlandt
11401ca472
[api/copy] create system tests for new copy api endpoint
2024-07-10 16:43:03 +02:00
Valentin BRICE
66429bff45
[api/repos] Add copy API
2024-07-10 16:43:03 +02:00
Sylvain Nieuwlandt
8114786179
Declare the Copy API
2024-07-10 16:43:03 +02:00
André Roth
d8c1e432c6
add test
2024-07-03 18:08:58 +02:00
André Roth
3a286ae07f
fix unit tests
2024-07-03 18:08:58 +02:00
André Roth
a93ccd4100
fix tests
2024-07-03 18:08:58 +02:00
André Roth
c1f7e5fe96
handle GpgDisableVerify and ignore-signatures consistently
...
and be less verbose
2024-07-03 18:08:58 +02:00
André Roth
d16110068c
allow not signed mirrors without InRelease file
2024-07-03 18:08:58 +02:00
André Roth
4661913265
add system test for maximumVersion filter
2024-06-24 17:44:40 +02:00
hudeng
ecc88e7a40
feat: repo and snapshots packages filter api add 'maximumVersion' query parameter support
...
example: `curl http://localhost:8080/api/repos/test/packages\?maximumVersion\=1 `
Change-Id: Ie9ffd36146bf017bbb353737f32360f7b73d6b0a
2024-06-24 17:44:40 +02:00
André Roth
5cf8c54cb2
fix test
2024-06-20 23:40:46 +02:00
André Roth
b758033ccb
fix compilation
2024-06-20 23:40:46 +02:00
Kevin Martin
13f4bb441d
Check if S3 bucket is encrypted by default.
...
Adds check to see if the S3 bucket is encrypted by default. If so this
uses the existing workaround for object etags not matching file MD5s.
2024-06-20 23:40:46 +02:00
Kevin Martin
1af09069f7
Check both MD5 locations for S3 KMS support.
...
If the S3 bucket used to house a repo has KMS encryption enabled then
the etag of an object may not match the MD5 of the file. This may
cause an incorrect error to be reported stating the file already
exists and is different.
A mechanism exists to work around this issue by using the MD5 stored
in object metadata. This check doesn't always cover the case where KMS
is enabled as the fallback is only used if the etag is not 32
characters long.
This commit changes the fallback mechanism so that it is used in any
case where the object's etag does not match the source MD5. This will
incur a performance penalty of an extra head request for each object
with a mismatch.
2024-06-20 23:40:46 +02:00
Ryan Gonzalez
b5bf2cbcda
Fix functional tests' '--capture' on Python 3
...
None of the commands' output is ever treated as binary, so we can just
always decode it as text.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
André Roth
fb3436b23d
fix golangci-lint errors
2024-06-17 11:51:18 +02:00
André Roth
1a3cfea348
replace io/ioutil
...
fixes golangci-lint errors
2024-06-17 11:51:18 +02:00
André Roth
c33141d49b
fix golangci-lint and compilation errors
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
f9325fbc91
Add support for Azure package pools
...
This adds support for storing packages directly on Azure, with no truly
"local" (on-disk) repo used. The existing Azure PublishedStorage
implementation was refactored to move the shared code to a separate
context struct, which can then be re-used by the new PackagePool. In
addition, the files package's mockChecksumStorage was made public so
that it could be used in the Azure PackagePool tests as well.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
810df17009
Clean up temporary files when mirroring
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
19255debb9
Reduce required usage of LocalPackagePool
...
Several sections of the code *required* a LocalPackagePool, but they
could still perform their operations with a standard PackagePool.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
1ebd37f9ad
Move Stat() into LocalPackagePool
...
The contents of `os.Stat` are rather fitted towards local package pools,
but the method is in the generic PackagePool interface. This moves it to
LocalPackagePool, and the use case of simply finding a file's size is
delegated to a new, more generic PackagePool.Size() method.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
8e37813129
Add support for custom package pool locations
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
91574b53d9
Add functional tests for Azure publishing
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
b8e0aba3cf
Document Azure configuration
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
0eccaf2b60
Change Azure endpoint syntax to require a full URL
...
Before, a "partial" URL (either "localhost:port" or an endpoint URL
*without* the account name as the subdomain) would be specified, and the
full one would automatically be inferred. Although this is somewhat
nice, it means that the endpoint string doesn't match the official Azure
syntax:
https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string
This also raises issues for the creation of functional tests for Azure,
as the code to determine the endpoint string needs to be duplicated
there as well.
Instead, it's just easiest to follow Azure's own standard, and then
sidestep the need for any custom logic in the functional tests.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
Ryan Gonzalez
859edb10cd
Fix S3 tests on Python 3
...
read_path() can read in binary, which the S3 tests don't support (simply
because they don't need it)...but it needs to be able to take the `mode`
argument anyway.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-06-17 11:51:18 +02:00
André Roth
f0bf519d36
cleanup
2024-06-15 19:18:14 +02:00
André Roth
d8cfafccc9
system tests: improve log output
2024-06-15 19:18:14 +02:00
André Roth
34c1c1f83a
system-tests: make docker abortable and use colors
2024-06-15 19:18:14 +02:00
André Roth
3e1485faf5
queue sync calls
2024-06-15 19:18:14 +02:00
André Roth
efc5573b8e
Makefile: run unit tests in docker
2024-06-15 19:18:14 +02:00
André Roth
45035802be
implement task queue waiting for resources
2024-06-15 19:18:14 +02:00
André Roth
2d97ba2bbd
fix flake8 error
2024-06-15 19:18:14 +02:00
André Roth
05fed16f6d
fix golangci-lint error
2024-06-15 19:18:14 +02:00
Ramón N.Rodriguez
9b1f4272c0
AUTHORS: claiming the fame and glory
2024-06-15 19:18:14 +02:00
Ramón N.Rodriguez
1987220f1e
api: publish: block on concurrent calls
...
This commit blocks concurrent calls to RunTaskInBackground which is
intended to fix the quirky behaviour where concurrent PUT calls to
api/publish/<prefix>/<distribution> would immedietly reuturn an error.
The solution proposed in this commit is not elegant and probaly has
unintended side-effects. The intention of this commit is to highlight
the area that actually needs to be addressed.
Ideally this patch is amended or dropped entierly in favor of a better
fixup.
2024-06-15 19:18:14 +02:00
Ramón N.Rodriguez
47696a3303
api:publish: test concurrency
...
This commit introduces a test which runs concurrent publishes (which
could be parallell with multiproccessing, python is fun).
The test purposly fails (at the point in history that this patch is
written) in order to make it as easy as possible to verify later patches,
which hopefully addresses concurrency problems.
The same behaviour can easily be tested outside of the system tests with
the following (or similar) shell
$ aptly serve -listen=:8080 -no-lock
$ aptly repo create create -distributions=testing local-repo
$ atply publish repo -architectures=amd64 local-repo
$ apt download aptly
$ aptly repo add local-repo ./aptly*.deb
$ for _ in $(seq 10); do curl -X PUT 127.0.0.1:8080/api/publish//testing
In the local testing perfomed (on a dual core vm) the first 1-4 jobs
would typically succeed and the rest would error out.
2024-06-15 19:18:14 +02:00
André Roth
787f954833
mirror: do not download already downloaded packages
...
this change imports downloaded packages into the pool immediately after download.
in case mirroring is aborted and later resumed, already downloaded packages will not be downloaded anymore.
2024-06-15 16:15:23 +02:00
André Roth
e9bdb983c8
tasks: improve log level
2024-06-15 16:15:23 +02:00
Noa Resare
b4cd86aa14
Introduce option multi-dist to the publish commands
...
This change makes it possible to publish multiple distributions
with packages named the same but with different content by changing
structure of the generated pool hierarchy. The option not enabled
by default as this changes the structure of the output which could
break the expectations of other tools.
2024-06-15 11:27:26 +02:00
Cal Jurgella
4bd26f5977
Enable SkipArchitectureCheck and IgnoreSignatures in mirror API
2024-06-14 14:30:29 +02:00
André Roth
57ff7c69cd
mirror api: add test for SkipArchitectureCheck and SkipComponentCheck
2024-06-14 14:30:29 +02:00
André Roth
c843709eab
add github sponsors
2024-06-12 13:01:40 +02:00
Jens Reinsberger
4bc2180eed
fix failing build on hosts with wildcard dns
...
on hosts which have wildcard dns domains in their local domain search
list, builds failed because "nosuch.host" could actually be resolved.
Since ".host" isn't a recommended TLD by RFC2606, we use ".invalid" now.
And since this is not enough to fix the problem, we use now absoulte
domain names (having a '.' at the end)
2024-05-15 16:42:37 +02:00
Paul Cacheux
5353890b24
use tagged version of ProtonMail/go-crypto in go.mod
2024-05-15 16:41:35 +02:00
Ryan Gonzalez
79975bf2b6
Fix reflist diffs failing to compact when one of the inputs ends
...
The previous reflist logic would early-exit the loop body if one of the
lists was empty, but that skips the compacting logic entirely.
Instead of doing the early-exit, we can leave a list's ref as nil when
the list end is reached and then flip the comparison result, which will
essentially treat it as being greater than all others. This should
preserve the general behavior without omitting the compaction.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 17:36:36 +02:00
Ryan Gonzalez
8d09c202db
Skip loading reflists when listing published repos
...
The output doesn't actually depend on the reflists, and loading them for
every published repo starts to take substantial time and memory.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 17:35:44 +02:00
André Roth
27013c0b2b
apply go mod tidy
2024-04-24 16:46:16 +02:00
André Roth
756c499314
fix go mod tidy and use go 1.19
...
let's be compatible with debian/bookworm
2024-04-24 16:46:16 +02:00
Ryan Gonzalez
6c6d1b18ba
Use zero-copy decoding for reflists
...
Reflists are basically stored as arrays of strings, which are quite
space-efficient in MessagePack. Thus, using zero-copy decoding results
in nice performance and memory savings, because the overhead of separate
allocations ends up far exceeding the overhead of the original slice.
With the included benchmark run for 20s with -benchmem, the runtime,
memory usage, and allocations go from ~740us/op, ~192KiB/op, and 4100
allocs/op to ~240us/op, ~97KiB/op, and 13 allocs/op, respectively.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 16:46:16 +02:00
Ryan Gonzalez
8cb1236a8c
Improve publish cleanup perf when sources share most of their packages
...
The cleanup phase needs to list out all the files in each component in
order to determine what's still in use. When there's a large number of
sources (e.g. from having many snapshots), the time spent just loading
the package information becomes substantial. However, in many cases,
most of the packages being loaded are actually shared across the
sources; if you're taking frequent snapshots, for instance, most of the
packages in each snapshot will be the same as other snapshots. In these
cases, re-reading the packages repeatedly is just a waste of time.
To improve this, we maintain a list of refs that we know were processed
for each component. When listing the refs from a source, only the ones
that have not yet been processed will be examined. Some tests were also
added specifically to check listing the files in a component.
With this change, listing the files in components on a copy of our
production database went from >10 minutes to ~10 seconds, and the newly
added benchmark went from ~300ms to ~43ms.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 16:46:16 +02:00
Ryan Gonzalez
5636a9990b
Improve performance of simple reflist merges
...
When merging reflists with ignoreConflicting set to true and
overrideMatching set to false, the individual ref components are never
examined, but the refs are still split anyway. Avoiding the split when
we never use the components brings a massive speedup: on my system, the
included benchmark goes from ~1500 us/it to ~180 us/it.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 16:46:16 +02:00
Ryan Gonzalez
8ab8398c50
Use github.com/saracen/walker for file walk operations
...
In some local tests w/ a slowed down filesystem, this massively cut down
on the time to clean up a repository by ~3x, bringing a total 'publish
update' time from ~16s to ~13s.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 16:46:16 +02:00
André Roth
53c4a567c0
README: add new gitter url
2024-04-21 13:22:06 +02:00
dependabot[bot]
ff8f79f883
Bump golang.org/x/net from 0.17.0 to 0.23.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-20 22:51:50 +02:00
André Roth
06be6f23a6
Revert "Bump requests from 2.28.2 to 2.31.0 in /system"
...
This reverts commit 24e62b58bc .
2024-04-17 22:08:27 +02:00
dependabot[bot]
24e62b58bc
Bump requests from 2.28.2 to 2.31.0 in /system
...
Bumps [requests](https://github.com/psf/requests ) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0 )
---
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-17 21:35:16 +02:00
André Roth
b37a3341e8
trigger pipeline
2024-04-17 18:39:45 +02:00
André Roth
eee6ccc311
trigger pipeline
2024-04-17 18:19:29 +02:00
André Roth
f233a21787
github CI: nightly builds for multiple distributions
...
Since the pipeline changed to use ucuntu22.04 runners, the nighty debian packages do not work on debian buster anymore.
This change updates the pipeline to build for Ubuntu 20.04 and 22.04 as well as for
Debian 10, 11 and 12.
The distribution specific apt sources are as follows:
"deb http://repo.aptly.info/nightly-bookworm bookworm main"
(replace bookworm with focal, buster, bullseye. Install aptly repo key with: curl -fsS https://www.aptly.info/pubkey.txt | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/aptly.gpg)
The builds on focal will also release to the legacy nightly apt repo: https://github.com/aptly-dev/aptly/actions/runs/8723898496/job/23933824692#step:7:24
This only affects nightly builds, for now.
Pipeline example: [](https://github.com/aptly-dev/aptly/actions/runs/8723898496 )
2024-04-17 17:48:37 +02:00
dependabot[bot]
940538e39b
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0
...
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-11 23:34:38 +02:00
André Roth
3a29e08ff2
fix typo
2024-04-11 19:40:25 +02:00
André Roth
2a2e35c096
add test for publishing distribution with slash (/)
2024-04-11 19:37:51 +02:00
Ariel D'Alessandro
287a947c62
Revert "Don't allow '/' in distribution name, auto-replace '/' with '-' while guessing. #110 "
...
This reverts commit 1daa076d65 .
Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com >
2024-04-11 19:37:51 +02:00
André Roth
32595e7cb7
openpgp: export full key for internal gpg
2024-04-11 10:15:02 +02:00
André Roth
9deb031c44
fix system tests
...
- use s3 mirror instead of internet download
- reduce download verbosity
- do not use venv in docker-system-tests
- be more verbose on test output
- do not run golangci-lint in system-tests
2024-04-11 10:15:02 +02:00
André Roth
6be4f5e8d0
gpg api: allow self signed and use default gpg version
2024-04-03 10:16:56 +02:00
André Roth
b5b0a52cbe
s3 api: get publish root list
2024-04-03 10:14:01 +02:00
André Roth
a0af6a25aa
fix lint complaints
2024-04-03 10:13:24 +02:00
Robert LeBlanc
c2ee086487
Fix the installer path for Ubuntu Focal
...
Ubuntu has started depreciating the Debian installer in focal
and moved the installer images to a different path. In versions
after focal, they are completly removed. This basically gives
us more time to figure out how to use the new system.
2024-04-03 10:13:24 +02:00
xinhangzhou
43a0ceb350
chore: remove repetitive words
...
Signed-off-by: xinhangzhou <shuangcui@aliyun.com >
2024-04-03 10:12:06 +02:00
André Roth
50eaf6c0bb
update docker / makefile
2024-03-06 12:46:44 +01:00
André Roth
e564b7c150
cleanup Makefile
2024-03-06 08:08:47 +01:00
André Roth
943e76ae8b
golangci-lint: add new github workflow
2024-03-06 08:08:42 +01:00
André Roth
72a7780054
fix golint complaints
2024-03-06 06:21:36 +01:00
dependabot[bot]
1001ca92c8
Bump golang.org/x/crypto from 0.14.0 to 0.17.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-06 21:19:55 +01:00
dependabot[bot]
d060ad7200
Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7
...
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl ) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases )
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7 )
---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-06 20:50:27 +01:00
Ludovico Cavedon
eeb5bd79d0
s3: fix test
2024-02-06 20:49:35 +01:00
Ludovico Cavedon
fad660450c
Cache bucket content by prefix
...
When a publishing uses a publish prefix, instead of listing the contents
of the whole bucket under the storage prefix, only list the contents of
the bucket under the storage prefix and publish prefix, and cache it by
publish prefix.
This speeds up publish operations under a prefix.
2024-02-06 20:49:35 +01:00
André Roth
01893a492f
s3: call s3.ListFiles only on publish path in LinkFromPool
...
instead of caching the whole s3 bucket, cache only the pool path. this
requires an additional parameter, and since this is an interface, all
implementations need to follow. might help in other backends too.
closes #1181
2024-02-06 20:49:35 +01:00
André Roth
e61a4dd53c
fix golangci-lint errors
2024-02-06 20:49:35 +01:00
André Roth
183e6ec436
fix indentation
2024-02-06 20:49:35 +01:00
André Roth
ebd5aa5fe9
s3: respect default ACLs
2024-02-06 20:49:35 +01:00
André Roth
1b6e5e5b3b
s3: clear / invalidate pathCache for repeated operations
2024-02-06 20:49:35 +01:00
André Roth
7b7ebc5711
s3: fix FileExists not working in some go versions
2024-02-06 20:49:35 +01:00
Nic Waller
92e16c81df
Update AUTHORS
...
as per contributor instructions
2024-02-06 20:49:35 +01:00
Nic Waller
5c1fd4dd2c
clean pathCache
2024-02-06 20:49:35 +01:00
André Roth
d7cc9b89d1
system tests: use repository mirrors on S3 for reproducibility
...
no direct internet download from apt repositories,
which over time will change or cease to exist.
also migrate to gpg2 on newer ubuntu.
2024-02-05 13:04:45 +01:00
André Roth
a69aa7c533
system-tests: add Dockerfile
2024-02-05 13:04:45 +01:00
André Roth
a71186bcc3
gitlab: use ubuntu22.04 runners and gpg2
2024-02-05 13:04:45 +01:00
Paul Cacheux
aeef41bf70
add support for EdDSA keys in pubkeyAlgorithmName
2023-11-23 11:40:58 +01:00
Paul Cacheux
99dbe31d20
fix t09_repo/IncludeRepo21Test_gold gold error
2023-11-23 11:40:58 +01:00
Paul Cacheux
5ca3a97bd3
add name to authors
2023-11-23 11:40:58 +01:00
Paul Cacheux
cfcab13c2a
replace golang.org/x/crypto/openpgp with github.com/ProtonMail/go-crypto/openpgp
2023-11-23 11:40:58 +01:00
dependabot[bot]
f1649a647b
Bump golang.org/x/net from 0.15.0 to 0.17.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-01 19:32:49 +00:00
Ryan Gonzalez
11deb9425b
Shut down cleanly when 'api serve' is interrupted
...
This will properly close the db and, more particularly, flush out any
profile files being written. Otherwise, they can end up empty or
truncated.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2023-10-24 15:35:41 +02:00
Sylvain Baubeau
3aaf0a8c44
Switch to aws-sdk-go-v2
2023-10-24 15:30:52 +02:00
Ryan Gonzalez
322e5c1587
Add myself to authors
...
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2023-10-03 08:31:39 +02:00
Ryan Gonzalez
ed45c44931
Fix the test output regex on Go 1.20
...
1.20 changes the output format of coverage checks slightly to include
a package name on each line, followed by `coverage:`, but the current
regex assumes that the line *starts* with `coverage:`.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2023-10-03 08:31:39 +02:00
Ryan Gonzalez
889fcc2158
Improve test output regex for better perf
...
The current regex runs in exponential time, which massively impacts the
runtime of the test suite, taking several seconds (~4s on my system)
just to perform a single match. By replacing the mix of re.findall + the
initial capture group with re.search + some string slicing, the time
spent matching the regex becomes nearly instant, e.g.:
$ make system-test TESTS='Config*'
goes from taking ~10s to ~1.5s.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2023-10-03 08:31:39 +02:00
Mauro Regli
f155ed3ba9
Set Golangci-lint timeout to 5m
2023-09-21 11:25:18 +02:00
Mauro Regli
0d20c59a98
Fix: Change expected output for malformed input that changed in Go
2023-09-21 11:25:18 +02:00
Mauro Regli
ae61706a34
Fix: Implement golangci-lint suggestions
2023-09-21 11:25:18 +02:00
Mauro Regli
f4a152ab22
Update CI to only use 1.21 and python 3.11
2023-09-21 11:25:18 +02:00
Mauro Regli
972bf6b3cf
Update Golang to 1.21 and dependencies
2023-09-21 11:25:18 +02:00
Mauro Regli
18203c614d
Fix: Pipeline failing because of outdated Repo
...
Updated the repo key, repo links in tests (jessie-cran35 -> bullseye-cran40) and the expected test output.
Fixes : #1218
2023-09-14 10:35:00 +02:00
Mauro Regli
40c242f9d1
Fix: Remove Batch from API options, set to true by default, add comments
...
Fixes : #1106
2023-09-14 10:34:20 +02:00
Mauro Regli
ee4c83e323
Fix: Pipeline failing because of nvidia repo change
2023-09-13 09:04:51 +02:00
Crawax
214e9075ad
Fix returncode when deleting a mirror with snapshot
...
When trying to delete a mirror that has snapshot and not providing the
force option, the API should not return a `500
StatusInternalServerError`.
A `403 StatusForbidden` is more appropriate when the condition is
expected by the server.
2023-08-18 14:20:23 +02:00
guoguangwu
847fd90e36
chore: unnecessary use of fmt.Sprintf
2023-07-14 11:35:08 +02:00
Benj Fassbind
ecc055180c
Fix publishing race condition
...
A race condition for publishing packages and
mirrors at the same time was introduced in
commit 77d7c38 .
The problem is that when opening a leveldb transaction
and performing another 'put' to the db
the system freezes.
2023-05-31 15:48:42 +02:00
Alexander Zubarev
1501a4e531
Add strike to AUTHORS
2023-05-26 17:20:16 +02:00
Alexander Zubarev
8f53e01749
Show storage of publish on graph
2023-05-26 17:20:16 +02:00
Sjoerd Simons
1df8cff842
Update go-xz to 0.1.0
...
Older versions go-xz didn't wait for child processes meaning for exery
unpack action a defunct xz would stick around. This got fixed in 0.1.0
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2023-05-19 19:49:54 +02:00
Mauro Regli
76744ead86
Fix Release failing 'Cannot find goxc'
2023-05-15 11:15:48 +02:00
Mauro Regli
f6a7030654
Try to fix UnixSocketAPITest by upgrading dependencies
...
Updated urllib, requests and requests_unixsocket
2023-05-15 11:15:48 +02:00
Mauro Regli
7c8dd7362d
Fix: Missing newline makes tests fail
2023-05-15 11:15:48 +02:00
Mauro Regli
0ae9884836
Fix: Tests with jenkins repo not finding public key.
2023-05-15 11:15:48 +02:00
Mauro Regli
95ca6fb376
Fix: Replace security.debian.org with archive
2023-05-15 11:15:48 +02:00
Mauro Regli
c9b1782d62
Fix CreateMirror9Test by removing Acquire-By-Hash
2023-05-15 11:15:48 +02:00
Mauro Regli
d1102e2e9c
Fix: Pipeline dependency on deb.debian.org, replace with archive
...
This should fix some tests, as a lot of them are dependent on
deb.debian.org which no longer supports Debian 9 "Stretch".
Instead we use archive.debian.org which will continue to contain
"Stretch" packages for a long time.
2023-05-15 11:15:48 +02:00
Markus Muellner
9c6f896666
add endpoint for listing repos while serving in api mode and add more metrics
2023-03-22 17:22:54 +01:00
Markus Muellner
0fdba29d51
make serving published repos in api mode configurable
2023-03-22 17:22:54 +01:00
Markus Muellner
f74217ed9c
implement system tests for serving api and published repos simultaneously
2023-03-22 17:22:54 +01:00
Андрей Лухнов
e25ade8af3
Serve api and published repos simultaneously
...
refs #1017 #975
2023-03-22 17:22:54 +01:00
Markus Muellner
bece12ad4d
update golangci-lint to v1.51.2
2023-03-22 17:22:54 +01:00
Mauro Regli
77e02bf7a3
Feature: Add Merge Snapshot API
...
Is part of Issue #176
2023-03-14 08:38:55 +01:00
Mauro Regli
90932cdac5
Improvement: Remove Magic Numbers in Tests with Tasks
...
Replaced 2 with TASK_SUCCEEDED, 3 with TASK_FAILED.
fixes : #1158
2023-03-13 13:17:17 +01:00
Mauro Regli
5b5307cc15
Fix CodeCov Config has two targets and thresholds
...
fixes : #1160
2023-03-13 08:20:18 +01:00
Mauro Regli
aaa622288c
Fix: Make CodeCov Pipeline more lenient
...
The Pipeline will only fail if the code coverage has fallen more than 2
Percent.
fixes : #1154
2023-03-07 17:05:16 +01:00
Mauro Regli
dbf1ac7867
Fix: Drop Publish returned wrong status code if not found
...
Deleting a publish that does not exist now results in a status code 404
instead of 500.
Fixes : #1006
2023-03-07 13:46:57 +01:00
Mauro Regli
c187b0d52c
Fix: Switch gin mode depending on aptly.EnableDebug
...
If aptly.EnableDebug is active, we use Debug, otherwise we use
gin.ReleaseMode to remove the annoying nuding messages when running the
api.
fixes : #1103
2023-03-07 13:04:12 +01:00
Markus Muellner
8e62195eb5
implement structured logging
2023-02-20 13:42:50 +01:00
dependabot[bot]
0c749922c9
Bump github.com/aws/aws-sdk-go from 1.33.0 to 1.34.0
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.34.0/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.33.0...v1.34.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-20 13:07:27 +01:00
Markus Muellner
ecc41f0c0f
replace AbortWithError calls by custom function that sets the content type correctly
2023-01-23 10:42:57 +01:00
dependabot[bot]
81582bffd2
Bump github.com/aws/aws-sdk-go from 1.25.0 to 1.33.0
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.25.0 to 1.33.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.25.0...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-10 16:36:03 +01:00
Samuel Bachmann
ced5ac7876
return the snapshot in apiSnapshotsCreate
...
In v1.4.0 it [returned the snapshot](https://github.com/aptly-dev/aptly/blob/v1.4.0/api/snapshot.go#L168 ), but this was removed (by accident) in v1.5.0. This adds it back.
2022-12-22 15:17:12 +01:00
Markus Muellner
2020ca9971
add ready and healthy probe endpoints
2022-12-12 13:39:07 +01:00
Markus Muellner
352f4e8772
update golangci-lint and replace deprecated calls to io/ioutil
2022-12-12 10:21:39 +01:00
Benj Fassbind
71fd730598
Return an empty array if no tasks are available
...
All other api endpoints also send empty arrays instead of nil.
Closes #1123
2022-11-17 10:44:35 +01:00
boxjan
e90ac6767f
Update AUTHORS
2022-09-09 09:02:52 +02:00
boxjan
268c39ea8c
add forceVirtualHostedStyle for stores which only support virtual hosted style
2022-09-09 09:02:52 +02:00
Josh Bayfield
b3d9055059
Fix system tests for custom codenames
2022-08-29 15:54:29 +02:00
Steven Stone
904265120b
Fix PublishSnapshot39Test_release_i386 system test
2022-08-29 15:54:29 +02:00
Steven Stone
47930a4214
Fix system test
2022-08-29 15:54:29 +02:00
Steven Stone
a59cad6f20
Enable the ability to pass in a custom codename
...
While testing out Aptly, the `apt-get` client complains with the following error, since the `codename` was switched from the InRelease files that are baked out by Aptly:
```
E: Repository 'http://debianrepo.example.com/bionic testing InRelease' changed its 'Codename' value from '' to 'testing'
```
2022-08-29 15:54:29 +02:00
Sjoerd Simons
393d1a6888
api: Allow querying the packages endpoint
...
The ".../packages" endpoints for mirror, local repos and snapshots all
share the same syntax for querying. However the "/api/packages" endpoint
doesn't match this. Adjust that to allow for a bit more consistency and
allow querying the full package database.
The current endpoint functionality "/packages/:name" is kept intact and
can be used the same as now
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-08-29 10:28:44 +02:00
Benj Fassbind
42cfee2c09
Fix mirror test
2022-08-16 09:04:16 +02:00
Benj Fassbind
afdc10b919
Fix golangci-lint
2022-08-16 09:04:16 +02:00
Benj Fassbind
af899149c7
Fix wrong nil check for SkipBz2
2022-08-16 09:04:16 +02:00
Adam Bambuch
abf8abb59b
upgrade go-xz go module
2022-08-04 10:48:20 +02:00
Benj Fassbind
f0a85b2b6e
Fix release build
2022-07-13 08:33:48 +02:00
Benj Fassbind
515e5532c8
Fix temp dir on ci
2022-07-13 08:33:48 +02:00
Benj Fassbind
ff3bf4b180
Improve error messages
2022-07-13 08:33:48 +02:00
Benj Fassbind
1d4e6183be
Capture coverage of integration tests
...
To capture the coverage also for the integration tests,
a test only executing the cmd.Run function is used.
The test always exits with code 0 and prints the
real exit code to stdout. Otherwise no coverage
report is generated.
Those changes enable a more accurate coverage report
for future contributions.
2022-07-13 08:33:48 +02:00
Benj Fassbind
69d473ea6f
Fix failing mirror test
...
Add the https redirect to the gold ouptut of the test
as this was changed for the jenkins debian repos
and the tests were failing after this change.
2022-07-13 08:33:48 +02:00
Benj Fassbind
bfc86d3b30
Test copyfile
2022-07-13 08:33:48 +02:00
Benj Fassbind
3ce27743ae
Test utils
2022-07-13 08:33:48 +02:00
Wade Simmons
c9f5763a70
S3: support disabling ACL with none value
...
This change lets you disable ACL when using S3 by using a configuration
value of `none`. This way we maintain backward compatibility with the
default setting being `private`.
Fixes : #1067
2022-06-22 11:26:13 +02:00
Sjoerd Simons
f61514edaf
Allow disabling bzip2 compression for index files
...
Using bzip2 generates smaller index files (roughly 20% smaller Packages
files) but it comes with a big performance penalty. When publishing a
debian mirror snapshot (amd64, arm64, armhf, source) without contents
skipping bzip speeds things up around 1.8 times.
```
$ hyperfine -w 1 -L skip-bz2 true,false -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf publish snapshot --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
Benchmark 1: aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 35.567 s ± 0.307 s [User: 39.366 s, System: 10.075 s]
Range (min … max): 35.311 s … 35.907 s 3 runs
Benchmark 2: aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye
Time (mean ± σ): 64.740 s ± 0.135 s [User: 68.565 s, System: 10.129 s]
Range (min … max): 64.596 s … 64.862 s 3 runs
Summary
'aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
1.82 ± 0.02 times faster than 'aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye'
```
Allow skipping bz2 creation for setups where faster publishing is more
important then Package file size.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-22 11:25:45 +02:00
Sjoerd Simons
2aca913e92
Use parallel gzip instead of gzip for compression
...
golangs compress/gzip isn't a parallel implementation, so it's quite a
bit slower on most modern servers then pgzip. The below benchmark
run shows that publishing a debian bullseye mirror snapshot (amd64, arm64,
armhf, source) shows a gain of about 35% in publishing time (when skipping
bz2 using MR #1081 )
```
hyperfine -w 1 -m 3 -L aptly aptly-nobz2,aptly-nobz2-pgzip -p "{aptly} -config aptly.conf publish drop bullseye || true" "{aptly} -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye"
Benchmark 1: aptly-nobz2 -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 35.548 s ± 0.378 s [User: 39.465 s, System: 10.046 s]
Range (min … max): 35.149 s … 35.902 s 3 runs
Benchmark 2: aptly-nobz2-pgzip -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 26.592 s ± 0.069 s [User: 42.207 s, System: 9.676 s]
Range (min … max): 26.521 s … 26.660 s 3 runs
Summary
'aptly-nobz2-pgzip -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
1.34 ± 0.01 times faster than 'aptly-nobz2 -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye'
```
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-21 15:43:58 +02:00
Sjoerd Simons
26254a0ad8
Run go mod tidy
...
Seems go.mod had some modules that are no longer used since the last
version bumps? Running `make modules` or really `go mod tidy`
automagically cleans those up.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-21 15:43:58 +02:00
Benj Fassbind
6f130e1583
Add codecov configuration
2022-06-20 13:23:28 +02:00
Benj Fassbind
35ad6cacc8
Upload code coverage
2022-06-20 13:23:28 +02:00
Benj Fassbind
f519ecded7
Update azure dependency
2022-06-20 12:50:24 +02:00
Michael Stürmer
4b2efeec7a
Cope with zero-length http downloads
2022-06-20 09:47:41 +02:00
Sjoerd Simons
a687df2f4f
Use python3 for system tests
...
Most modern distribution use python3 for python (3). Default to that to
make it a bit simpler to run systems tests on Debian
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-20 09:39:23 +02:00
Sjoerd Simons
29deae6fe0
api: allow parameters with urlencoded names
...
Aptly allows create e.g. repos with a / to use those with the REST api
the router needs to allow urlencoded parameters in various places to
represent this. A specific example of this is the /api/repos/:name/packages path
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-15 17:21:15 +02:00
Chuan Liu
f9f1c8ee75
Update azurite dir
2022-06-09 10:45:13 +02:00
myml
a0544dc2b5
fix: typo in the comments
2022-06-06 13:13:27 +02:00
Chuan Liu
0a1798869a
Enable Azure publish unit tests in Github actions
2022-04-29 21:23:41 +02:00
Russell Greene
751fd2f9ba
add myself to authors
2022-04-27 13:50:14 +02:00
Russell Greene
954b222fb6
Use proper version comparisions for querys
2022-04-27 13:50:14 +02:00
Samuel Mutel
4c04e77489
enh: Give info when unable to load list of repos
2022-04-25 12:58:06 +02:00
Chuan Liu
152538ccc1
Support custom Azure publish endpoint
2022-04-25 11:41:04 +02:00
Benj Fassbind
d955b06f03
Fix artifacts publishing
2022-04-13 09:27:50 +02:00
Markus Muellner
db19a56458
Add functional test for metrics endpoint
2022-04-12 14:39:16 +02:00
Markus Muellner
6539e1b856
Add metrics endpoint with http metrics using Prometheus client lib
2022-04-12 14:39:16 +02:00
Benj Fassbind
8046fb1eb9
Fix failing checks
2022-04-05 11:41:14 +02:00
Benj Fassbind
0302e39d57
Update gin and jwt-go dependencies
2022-04-05 11:41:14 +02:00
Benj Fassbind
c29ccaadbc
Fix typo in ci config
2022-04-05 11:41:14 +02:00
Benj Fassbind
d2d168f363
Fix system test env setup
2022-04-05 09:58:02 +02:00
Benj Fassbind
cf98718a79
Fix default branch name in ci
2022-04-05 09:58:02 +02:00
Benj Fassbind
47bda055e0
Publish releases and nightly builds from ci
2022-04-04 20:07:08 +02:00
Reinhold Gschweicher
c1e577c1ac
Add unittest for zstd compression support
2022-04-04 17:51:21 +02:00
Ubuntu
5b98039291
Remove 1.14 from CI
2022-04-04 17:51:21 +02:00
Matt Bearup
5a23f71a7f
Add support for zst compression
2022-04-04 17:51:21 +02:00
Maciej Gol
c46f12f0d6
Update the gpg key of the repo.aptly.info repository in the documentation
2022-03-30 14:25:04 +02:00
Lorenzo Bolla
f89350e6cd
Timeout CI build job after 30 minutes
...
Fix #1032
2022-02-13 21:07:50 +01:00
Lorenzo Bolla
fd404064c9
Use University of Utah mirror in tests
...
Fix #1034
2022-02-13 20:44:28 +01:00
Benj Fassbind
21029c326b
Add release to CI
2022-02-11 08:36:21 +01:00
Lorenzo Bolla
e8ec6385f3
Fix linting errors
2022-02-08 11:18:50 +01:00
Lorenzo Bolla
1361bf20dd
Revive skipped tests
2022-02-08 11:18:50 +01:00
Lorenzo Bolla
5d98546e1d
Use a more recent GPG key server
2022-02-08 11:18:50 +01:00
Luciano Lionello
ff5eb53f48
Fix: typo in aptly web page link
2022-02-05 09:28:44 +01:00
Ratchanan Srirattanamet
814d4dbb51
deb: fix importing dbgsym packages with versioned Source field
...
dpkg-gencontrol can be called with -v flag which set binary package's
version separated from source version. When this happen, the Source
field will contain version number in addition to source package name.
This tripped Aptly's dbgsym restriction, which check for exact source
package name, which in turn prevents the dbgsym & the whole .changes
file from being imported.
From the git history, it seems like this condition is a leftover from
when Aptly filter dbgsym packages using "*-dbgsym". So, I decided to
remove it. A test case has been added to prevent regression.
2022-01-31 11:14:18 +01:00
Lorenzo Bolla
2c68175b5c
Update man pages
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
551a370c13
Basic tests for Grab downloader
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
1afcd68e01
Make downloader type configurable
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
cc30ef3ee2
Remove vendor directory
...
We use go modules now.
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
235e35a2f3
Rate limit 0 effectively disables rate limiting
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
4c54f967b7
Fix error checking
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
8925949be3
Support rate limiting in grab downloader
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
e96372c999
Implement ignore checksum mismatch
...
Also, update "pkg/errors" library.
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
e5d9d27069
Wrap errors with more context
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
853c990b6e
Handle checksums
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
86c1ffab2a
Add logs for checksum
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
952287a787
Reenable checksums
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
b5d90b7b13
Add more logging
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
3e06af8515
Disable checksum for now
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
eff2e56d0d
Specify output filename instead of directory
...
"temp" downloader uses its own naming for downloaded files.
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
eaac04ccf6
Improve logging in grab downloader
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
894192851e
Grab downloader
2022-01-31 10:32:54 +01:00
Benj Fassbind
f93bc6ef0f
Fix badges
2022-01-27 15:18:32 +01:00
Lorenzo Bolla
035d5314b0
Convert tests to Python 3
...
Fix #938
2022-01-27 15:06:33 +01:00
Benj Fassbind
a40cfc679c
Only run system test with latest go version
2022-01-27 09:30:14 +01:00
Benj Fassbind
bda6eb4200
Update minimum required go version
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
70f7d7409a
Allow to check for empty output in tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
48635c8057
Strip irrelevant lines from test output
...
It may happen that aptly retries to download data during tests (maybe because
of a network issue), but our fixtures doesn't account for it. So, we strip
those irrelevant lines before comparison.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
122ff609e8
Typo correction in GHA workflow comment
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
30e94064e5
Ignore dates in test
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
d60e575af5
Re-enable testing on go 1.17
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
91c3ed8ec4
Fix failing tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
0dc49d2a70
Silence unhelpful linter error
...
See #1012
2022-01-27 09:30:14 +01:00
Benj Fassbind
a83dea705f
Build for newer go versions
2022-01-27 09:30:14 +01:00
Benj Fassbind
ed7a960e31
Trigger CI on every push
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
9bf1a44f75
Fix test after merge
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
8ecd01be1f
Temporarily skip test failing on CI
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
4933e3caf4
Try to fix test failing on CI
...
PublishRepo26Test fails to run because something in the CI environment forces
gpg to ask for the user's password. Try to require gpg1 for the test, which
seems to run fine in other environments.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
4a9a5bc713
Fix some failing system tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
7412b84e04
Fix flake8 lint errors
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
3775d69a60
Fix linting errors
2022-01-27 09:30:14 +01:00
Ximon Eighteen
4cf57ae84d
govet: compose literal uses unkeyed fields
2022-01-27 09:30:14 +01:00
Ximon Eighteen
ef2541776b
govet: compose literal uses unkeyed fields
2022-01-27 09:30:14 +01:00
Ximon Eighteen
78082bc10f
Add a comment referring to the original Travis CI config from the new workflow.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
5342e549cd
govet: compose literal uses unkeyed fields
2022-01-27 09:30:14 +01:00
Ximon Eighteen
e2d1e9a7df
govet: compose literal uses unkeyed fields
2022-01-27 09:30:14 +01:00
Ximon Eighteen
9aa9917952
golint: "Json" in func name should be "JSON".
2022-01-27 09:30:14 +01:00
Ximon Eighteen
c1cdb69f56
golint: "Json" in func name should be "JSON".
2022-01-27 09:30:14 +01:00
Ximon Eighteen
5b8c909ac3
Disable testing against Go master for now.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
20b038bfb7
continue-on-error value must be a boolean
2022-01-27 09:30:14 +01:00
Ximon Eighteen
9f9a1a138b
Matrix elements must be arrays.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
4cb9ac5357
Fix syntax error.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
cd76e481fd
Initial attempt at a GitHub Actions workflow to emulate the previously used Travis CI setup.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
8e309b57b3
Workaround differences in the GHA Ubuntu 18.04 environment compared to the Travis CI Ubuntu 16.04 environment.
2022-01-27 09:30:14 +01:00
Ximon Eighteen
beb9d43f4d
Use newer golangci-lint source as the former is abandoned.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
b281819cba
Make truthy function less surprising
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
6826efc723
Fix pure-go unittests
...
So they can run on e.g. LXC containers as root, or other conceivable setups.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
370e3cdfea
Fix unittests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
fb8b05e7fd
Fix rebase
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
8c94973cf9
Fix indentation
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
787cc8e3ee
Fix system tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
ff51c46915
More informative return value for task.Process
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
0914cd16af
Use global async flag as fallback on per-request flag
...
This way, if no pre-request flag is specified, the globally configured default
is used.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
9b28d8984f
Configurable background task execution
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
bd4c3a246d
Add new AUTHORS
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
914ddf4859
Fix syntax error
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
2fa3adee1d
Don't use transactions when direct db access is enough
...
For read-only action transactions are not necessary and they risk to deadlock
if multiple go-routines try to read the database.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
fd83c1a5bf
Cap delay to sleep to avoid overflow
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
de2be9b8ae
Sleep between retries to download from http
...
Fix #1
2022-01-27 09:30:14 +01:00
André Roth
209b030502
gpg: fix downloading multiple keys
...
each key needs to be provided as separate argument to gpg1 --recv-keys
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
5a65ce6adb
mirror: add more logging
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
79a7cf864e
mirror: interrupt goroutine when done
...
This should avoid deadlocking when context is destroyed.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
19f7b0fe8d
mirror: increase logging for easier debugging
2022-01-27 09:30:14 +01:00
André Roth
2b7bb24c92
api gpg: show gpg command
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
faf2d588b1
Use verifier from context
2022-01-27 09:30:14 +01:00
André Roth
8e02a03170
fix gpg keys
2022-01-27 09:30:14 +01:00
André Roth
d13de0464e
api: allow renaming repos
2022-01-27 09:30:14 +01:00
André Roth
c0528888f4
log download retries
2022-01-27 09:30:14 +01:00
Oliver Sauder
b4efe6a810
Add db cleanup api
2022-01-27 09:30:14 +01:00
Oliver Sauder
f09a273ad7
Add publish output progress counting remaining number of packages
2022-01-27 09:30:14 +01:00
Oliver Sauder
3cd168c44d
Combine publish list progress into one
2022-01-27 09:30:14 +01:00
Oliver Sauder
b0ab8f417d
Added gpg api so mirror updates are fully functional from api
2022-01-27 09:30:14 +01:00
Oliver Sauder
d7ccf95499
Added mirror api based on task list
2022-01-27 09:30:14 +01:00
Oliver Sauder
6ab5e60833
Add task api and resource locking ability
2022-01-27 09:30:14 +01:00
Oliver Sauder
e63d74dff2
Fixed not running tests
2022-01-27 09:30:14 +01:00
Oliver Sauder
25d7d7c037
Solving progress not safe issue for api
...
Progress is not safe so for api its always nil and
code needs to take care of this
2022-01-27 09:30:14 +01:00
Oliver Sauder
1c7c07ace7
db batch may not be a global resource
...
This way db usage is safe.
2022-01-27 09:30:14 +01:00
Oliver Sauder
f7f42a9cd8
Database changes of resources need to be atomic
2022-01-27 09:30:14 +01:00
Oliver Sauder
1e7731c317
Removed obsolete RWMutexes
2022-01-27 09:30:14 +01:00
Oliver Sauder
208a2151c1
every go routine needs to have its own collection factory
...
this is needed so concurrent reads and writes are possible.
2022-01-27 09:30:14 +01:00
Andrej Shadura
4a6d53e16d
Include AzurePublishEndpoints in the manpage template
...
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk >
2022-01-21 11:46:36 +01:00
Chuan Liu
a778ff8903
Fix the storage string format.
...
Co-authored-by: Andrej Shadura <andrew@shadura.me >
2022-01-21 11:46:36 +01:00
chuan
bb42a2158d
Add support for Azure storage as a publishing backend
...
This adds a new configuration setting: AzurePublishEndpoints, similar
to the existing S3PublishEndpoints and SwiftPublishEndpoints.
For each endpoint, the following has to be defined:
- accountName
- accountKey
- container
- prefix
Azure tests require the following environment variables to be set:
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_ACCESS_KEY
With either of these not set, Azure-specific tests are skipped.
2022-01-21 11:46:36 +01:00
Sylvain Baubeau
ab2f5420c6
Export RemoteRepo package list
2021-11-02 15:08:19 +01:00
Vítězslav Dvořák
174943cd0f
Proposed keyserver changed to functional one #990
2021-11-02 15:01:17 +01:00
Joshua Colson
0bc66032d2
Resolve PR #976 review comments
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
899ed92ebc
Add -json flag to publish list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
129eb8644d
Add -json flag to mirror list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
d582f9bab2
Add Debian 11 keys to test fixture keyring
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
0f1575d5af
Add -json flag to snapshot show|list
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
f9c0d99790
Refactor repo list into json and txt output
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
1f56fb86e3
Add -json output flag to repo list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Ratchanan Srirattanamet
f9d08e1377
.goxc.json: list os/arch explicitly to avoid darwin/386
...
Go 1.15 drops support for darwin/386 GOOS/GOARCH pair [1]. So, we have
to skip this pair, and thus cannot use simple os multiply arch anymore.
Switch to goxc's BuildConstraints config, which uses the same syntax as
Go's build constraint header [2].
[1] https://github.com/golang/go/issues/37610
[2] https://golang.org/cmd/go/#hdr-Build_constraints
2021-04-29 14:41:24 +02:00
Max Bruckner
cbf0416d7e
Filter command: Fix typo Priorioty -> Priority
2021-03-21 09:59:39 +01:00
Andrej Shadura
2422d3ab40
When ETag doesn’t look like MD5, use the value from metadata instead
...
The S3 backend relies on ETag S3 returns being equal to the MD5 of the
object, but it’s not necessarily true. When the value returned clearly
doesn’t look like a valid MD5 hash (length isn’t exactly 32 characters),
attempt to retrieve the MD5 hash possibly stored in the metadata.
We cannot always do this since user-defined metadata isn’t returned by
the ListObjects call, so verifying it for each object is expensive as it
requires one HEAD request per each object.
This commit fixes #923 .
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk >
2021-03-02 13:37:17 +00:00
Andrej Shadura
960cf76c42
Store MD5 in a separate metadata field as well
...
The S3 backend relies on ETag S3 returns being equal to the MD5 of the
object, but it’s not necessarily true. For that purpose we store the MD5
object in a separate metadata field as well to make sure it isn’t lost.
From https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html :
> The entity tag is a hash of the object. The ETag reflects changes only
> to the contents of an object, not its metadata. The ETag may or may not
> be an MD5 digest of the object data. Whether or not it depends on how
> the object was created and how it is encrypted as described below:
>
> Objects created by the PUT Object, POST Object, or Copy operation,
> or through the AWS Management Console, and are encrypted by SSE-S3 or
> plaintext, have ETags that are an MD5 digest of their object data.
>
> Objects created by the PUT Object, POST Object, or Copy operation,
> or through the AWS Management Console, and are encrypted by SSE-C or
> SSE-KMS, have ETags that are not an MD5 digest of their object data.
>
> If an object is created by either the Multipart Upload or Part Copy
> operation, the ETag is not an MD5 digest, regardless of the method
> of encryption.
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk >
2021-03-02 13:37:17 +00:00
Lorenzo Bolla
af2564c580
Use newer Go for mod file
2021-02-12 09:23:24 +01:00
Lorenzo Bolla
b385b1e975
Fix test breaking on newer versions of Go
...
Apparently, Go error message slightly changed in newer versions.
2021-02-12 09:23:24 +01:00
Lorenzo Bolla
ce1d4b852a
Test against more recent versions of Go
...
Run basic tests for all minor versions since 1.11 and full tests for the last
two most recent versions.
Fix #939
2021-02-12 09:23:24 +01:00
Lorenzo Bolla
c43d31f693
Don't fail hard if we can't clean Swift up
2021-02-08 10:52:27 +01:00
Lorenzo Bolla
e4259c5045
Always try to get a version
...
Even if a simple git hash.
2021-02-08 10:52:27 +01:00
Lorenzo Bolla
993dd2ad1c
Print test exception right away, in case the full test run crashes
2021-02-08 10:52:27 +01:00
Lorenzo Bolla
3201244d9b
Fix tests and fixtures relying on expired pgp keys
...
PGP tests relied on expired gpg keys: upgrade with newer Debian keys from
https://ftp-master.debian.org/keys.html .
Download new fixtures files from http://ftp.debian.org/debian/dists/buster/
2021-02-08 10:52:27 +01:00
Lorenzo Bolla
f4dc87fa44
Use a hostname more likely to be non-existent than localhost
...
Otherwise, it's possible that certain network configuration defining
*.localhost cause the tests to fail.
2021-02-08 10:52:27 +01:00
Don Kuntz
24a027194e
Remove unused variable
2019-10-18 18:29:38 +03:00
Don Kuntz
62c4dc1472
Update authors
2019-10-18 18:29:38 +03:00
Don Kuntz
b7f74b4e55
Allow GPGFinder to work with nonstandard GPG version strings
...
Specifically, I have MacGPG installed instead of upstream GPG, which
results in the version string reading
gpg (GnuPG/MacGPG2) 2.2.17
instead of the expected
gpg (GnuPG) 2.2.17
2019-10-18 18:29:38 +03:00
Andrey Smirnov
2da853dcbe
Bump golangci-lint to 19.1
2019-09-27 15:44:33 +03:00
Andrey Smirnov
0438a7c76b
Upgrade AWS SDK to the latest version
2019-09-27 15:39:48 +03:00
Andrey Smirnov
c86c3a803f
Really upgrade goleveldb to the latest master version
...
PR #876 actually upgraded goleveldb to 1.0.0, not to the latest master.
Recent changes to goleveldb should improve performance
https://github.com/syndtr/goleveldb/issues/226#issuecomment-477568827
2019-09-27 14:19:39 +03:00
Andrey Smirnov
19db62d74f
Add new Go modules stuff
2019-09-27 13:59:19 +03:00
Andrey Smirnov
0146411483
Remove vendor/ tree, and dep files
2019-09-27 13:59:19 +03:00
Andrey Smirnov
b731e17850
Update nvidia repo key
2019-09-27 13:01:03 +03:00
Andrey Smirnov
bb66b2296d
Vendor update goleveldb
...
There are number of changes which went in recently which should improve
performance: https://github.com/syndtr/goleveldb/issues/226#issuecomment-477568827
2019-09-18 16:49:50 +04:00
Andrey Smirnov
c75ef8546e
Fix system tests for Debian Stretch 9.11
2019-09-18 01:23:58 +03:00
Andrey Smirnov
d80c2b6104
Fix system tests
2019-09-06 23:42:56 +03:00
Andrey Smirnov
ec4bf35647
Regen aptly.1
2019-09-06 23:42:56 +03:00
Raúl Benencia
669d99bebc
Update documentation
2019-09-06 23:42:56 +03:00
Raúl Benencia
715af5950f
Add suite completion
2019-09-06 23:42:56 +03:00
Raúl Benencia
7a5ac3dbc2
Tests for custom and default suite
2019-09-06 23:42:56 +03:00
Raúl Benencia
ae61cbb4c0
Allow definition of custom Suite
2019-09-06 23:42:56 +03:00
Raphael Medaer
bde6e6bda4
Test dependency architecture without version.
...
As asked by Andrey in #868 .
2019-09-06 15:41:59 +03:00
Raphael Medaer
a656241d5e
Parse dependency architecture even without version
...
This commit closes : #145
The dependency format "pkg:arch" (e.g. "python3:any") was not well
parsed if not any version is given. This commit splits the dependency
name and architecture in all cases.
2019-09-06 15:41:59 +03:00
Andrey Smirnov
7ae5a12f4a
Bump Go supported version to 1.11-1.13
...
This might allow to switch to Go modules as the next step.
2019-09-05 16:41:50 +03:00
Andrey Smirnov
769e984ef4
Fix issues with progress == nil causing panics
...
Part of PR #459
This prepares for more methods to be exposed via the API.
2019-09-03 20:28:28 +04:00
Frank Steinborn
98e75f6d97
Make database open attempts configurable also via config file
2019-09-03 00:52:24 +03:00
Nabil BENDAFI
586f879e80
[DOC] Note about legacy file structure
2019-09-03 00:23:25 +03:00
Nabil BENDAFI
e2112670bf
[DOC] Uploaded package file structure
2019-09-03 00:23:25 +03:00
Andrey Smirnov
060c6669c1
Remove test which relied on now gone mongodb repository
...
Looks like Mongo doesn't provide any regular structure repository
anymore (only flat one?).
2019-09-02 23:54:07 +03:00
Stephan Eicher
aa02c5cbe9
Fix #827 - passhprase typos
2019-09-02 23:26:37 +03:00
Andrey Smirnov
77d7c3871a
Consistently use transactions to update database
...
For any action which is multi-step (requires updating more than 1 DB
key), use transaction to make update atomic.
Also pack big chunks of updates (importing packages for importing and
mirror updates) into single transaction to improve aptly performance and
get some isolation.
Note that still layers up (Collections) provide some level of isolation,
so this is going to shine with the future PRs to remove collection
locks.
Spin-off of #459
2019-08-11 00:11:53 +03:00
Andrey Smirnov
67e38955ae
Refactor database code to support standalone batches, transactions.
...
This is spin-off of changes from #459 .
Transactions are not being used yet, but batches are updated to work
with the new API.
`database/` package was refactored to split abstract interfaces and
implementation via goleveldb. This should make it easier to implement
new database types.
2019-08-09 00:46:40 +03:00
Andrey Smirnov
26098f6c8d
Print redirects being followed, drop mirror.yandex.ru.
...
Use CDN-backed Debian mirror to make tests run faster hopefully for
everyone. Redirects might be important to know what exactly is going on
when items are being downloaded.
2019-08-07 21:10:04 +03:00
Andrey Smirnov
021b6f694b
Fix flakey tests related to identity name ordering.
2019-08-07 20:47:52 +03:00
Andrey Smirnov
f0a370db24
Rework HTTP downloader retry logic
...
Apply retries as global, config-level option `downloadRetries` so that
it can be applied to any aptly command which downloads objects.
Unwrap `errors.Wrap` which is used in downloader.
Unwrap `*url.Error` which should be the actual error returned from the
HTTP client, catch more cases, be more specific around failures.
2019-08-07 20:23:05 +03:00
Andrey Smirnov
2e7f624b34
Add test for publishing with non-empty Origin & Label
...
See also #848
2019-07-19 22:58:56 +03:00
Shengjing Zhu
b63c0c7dfc
Update AUTHORS
2019-07-15 21:51:09 +03:00
Shengjing Zhu
906cbf1e6f
Fix time.Time msgpack decoding backwards compatibility
...
See https://github.com/ugorji/go-codec/issues/269
2019-07-15 21:51:09 +03:00
Shengjing Zhu
5aefc741f2
Add codec tag to fields which are ignored in new codec package
...
github.com/ugorji/go/codec 1.1.4 ignores field with json:"-" tag
2019-07-15 21:51:09 +03:00
Shengjing Zhu
5c28ea3064
Update github.com/ugorji/go to v1.1.4
2019-07-15 21:51:09 +03:00
Andrey Smirnov
70cd11e30f
Revert "Don't remove API file socket if it exists and it's usable"
...
See PR #807
Fixes : #849
This reverts commit 22848b010d .
2019-07-13 00:45:54 +03:00
Andrey Smirnov
94a72b23ff
Update Go AWS SDK to the latest version
2019-07-13 00:19:00 +03:00
Andrey Smirnov
d08be990ef
Skip uploading release versions of aptly to nightly repo
...
This breaks releases, as two versions of the package with same version
might end up in internal.aptly.info.
2019-07-11 01:52:00 +03:00
Andrey Smirnov
ca5b7758ce
Print when test is skipped
2019-07-11 00:49:36 +03:00
Andrey Smirnov
bb1def2910
Try Travis on xenial workers
2019-07-11 00:16:20 +03:00
Andrey Smirnov
673abae1be
Update system tests after Debian buster was released.
2019-07-10 22:27:11 +03:00
Andrey Smirnov
3b8c067e70
Merge pull request #850 from smira/no-bintray
...
Bintray no longer used for artifacts. [ci skip]
2019-07-10 19:54:09 +03:00
Andrey Smirnov
528459eeb2
Bintray no longer used for artifacts. [ci skip]
2019-07-10 19:53:07 +03:00
Andrey Smirnov
bc1ab4e55c
Merge pull request #847 from smira/fix-repo-name
...
Fix repo name in release script
2019-07-06 16:03:14 +03:00
Andrey Smirnov
5aefd0b393
Fix repo name in release script
2019-07-06 16:02:43 +03:00
Andrey Smirnov
7bc53a4253
Merge pull request #846 from smira/fix-releases-api-key
...
Fix releases API key
2019-07-06 00:05:25 +03:00
Andrey Smirnov
8b12dccd76
Fix releases API key
2019-07-06 00:04:46 +03:00
Andrey Smirnov
952afb6040
Merge pull request #845 from smira/upload-artifacts-fix
...
Fix upload artifacts script to fail, add release upload script
2019-07-05 22:02:59 +03:00
Andrey Smirnov
56ca5e9e62
Temporary disable test as linux.dell.com is NXDOMAIN
2019-07-05 21:32:41 +03:00
Andrey Smirnov
a834461752
Fix upload artifacts script to fail, add release upload script
...
This should improve reliability
2019-07-05 20:08:31 +03:00
Andrey Smirnov
37166af321
Merge pull request #842 from aptly-dev/bump-go-version
...
Bump Go versions for Travis, fix tests
2019-07-04 00:44:52 +03: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
Andrey Smirnov
e2d6a53de5
Merge pull request #803 from stb-tester/deterministic-stanza-WriteTo
...
Stanza.WriteTo: Sort extra fields alphabetically
2019-01-25 17:34:34 +03:00
Andrey Smirnov
89537b1521
Merge branch 'master' into deterministic-stanza-WriteTo
2019-01-25 01:27:31 +03:00
Oliver Sauder
152b3cae90
Merge pull request #808 from aptly-dev/797-no-such-bucket-s3
...
Ignore 'NoSuchBucket' error when deleting S3 objects
2019-01-24 08:09:29 +01:00
Andrey Smirnov
f104e53fd4
Ignore 'NoSuchBucket' error when deleting S3 objects
...
Also ignore any removal errors when `-force-drop` is used.
2019-01-23 18:17:08 +03:00
William Manley
fd99ae0e59
Merge branch 'master' into deterministic-stanza-WriteTo
2019-01-21 13:48:07 +00:00
Andrey Smirnov
4b6c159e3a
Vendor update github.com/pkg/errors
2019-01-20 22:54:13 +03:00
Andrey Smirnov
50f8cfbc15
Merge pull request #807 from aptly-dev/806-file-socket
...
Don't remove API file socket if it exists and usable
2019-01-20 22:52:30 +03:00
Andrey Smirnov
22848b010d
Don't remove API file socket if it exists and it's usable
2019-01-20 00:01:44 +03:00
Andrey Smirnov
3b5840e248
Fix linter list and fix errors discovered by new staticcheck
2019-01-20 00:01:17 +03:00
William Manley
f955707201
Add William Manley (@wmanley) to AUTHORS
...
My measly contribution hardly merits it but it's a requirement in
`CONTRIBUTING.md`.
2019-01-08 15:14:39 +00: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
Andrey Smirnov
a64807efda
Merge pull request #779 from aptly-dev/pgp-finder
...
Compatibility with GnuPG 1.x and 2.x, auto-detect GnuPG version
2018-10-10 17:27:52 +03:00
Andrey Smirnov
61e00b5fbd
Test updates for Travis CI
...
Travis is running Trusty with GPG 2.0.x, which is
much different from 2.1.x.
Add tests for default key signing.
Add test for gpg1/2 in functional.
2018-10-10 01:34:58 +03:00
Andrey Smirnov
1b2fccb615
Compatibility with GnuPG 1.x and 2.x, auto-detect GnuPG version
...
* aptly can sign and verify without issues with GnuPG 1.x and 2.x
* aptly auto-detects GnuPG version and adapts accordingly
* aptly automatically finds suitable GnuPG version
Majority of the work was to get unit-tests which can work with GnuPG 1.x & 2.x.
Locally I've verified that aptly supports GnuPG 1.4.x & 2.2.x. Travis CI
environment is based on trusty, so it runs gpg2 tests with GnuPG 2.0.x.
Configuration parameter gpgProvider now supports three values for GnuPG:
* gpg (same as before, default): use GnuPG 1.x if available (checks gpg, gpg1),
otherwise uses GnuPG 2.x; for aptly users who already have GnuPG 1.x
environment (as it was the only supported version) nothing should change; new
users might start with GnuPG 2.x if that's their installed version
* gpg1 looks for GnuPG 1.x only, fails otherwise
* gpg2 looks for GnuPG 2.x only, fails otherwise
2018-10-10 01:34:00 +03:00
Oliver Sauder
702c1ff217
Merge pull request #680 from sliverc/with_installer
...
Add support to mirror non package installer files
2018-09-27 09:50:37 +02:00
Oliver Sauder
d1b2814ec6
Merge branch 'master' into with_installer
2018-09-27 09:35:09 +02:00
Andrey Smirnov
ec57d1786c
Merge pull request #780 from aptly-dev/773-non-armored-sig
...
Support for non-armored detached signatures
2018-09-26 16:37:42 +03:00
Andrey Smirnov
9f7c1f90ec
Support for non-armored detached signatures
2018-09-26 01:36:52 +03:00
Oliver Sauder
e23e30eb44
Merge branch 'master' into with_installer
2018-09-21 13:26:15 +02:00
Andrey Smirnov
2b4a61b84c
Merge pull request #778 from aptly-dev/go-1-11
...
Bump Go versions with Go 1.11 release
2018-09-20 20:15:52 +03:00
Andrey Smirnov
fbafde6e27
Bump Go versions with Go 1.11 release
2018-09-19 01:23:17 +03:00
Andrey Smirnov
14e5a75d35
Merge pull request #776 from urpylka/master
...
Replace Docker container w aptly & nginx in README
2018-09-14 23:49:58 +03:00
Artem Smirnov
ea32d8627e
Update AUTHORS
2018-09-14 01:29:11 +03:00
Artem Smirnov
814a0498df
Little syntax fix
2018-09-14 01:24:21 +03:00
Artem Smirnov
e45f85cc1e
Replace to new docker container w aptly & nginx
...
Old project not supported long time
2018-09-14 01:22:32 +03:00
Oliver Sauder
1e9c032072
Merge pull request #774 from nuclearsandwich/update-contributing-docs
...
Use github.com/aptly-dev/aptly as the go package path.
2018-09-13 08:42:58 +02:00
Steven! Ragnarök
c741cca5f2
Use github.com/aptly-dev/aptly as the go package path.
...
Without this change the first time setup instructions fail at the `make install` stage.
2018-09-13 00:21:14 -04:00
Andrey Smirnov
72ff71f59c
Merge pull request #766 from aptly-dev/761-more-lazy
...
Reimplement DB collections for mirrors, repos and snapshots
2018-08-21 17:00:08 +03:00
Andrey Smirnov
699323e2e0
Reimplement DB collections for mirrors, repos and snapshots
...
See #765 , #761
Collections were relying on keeping in-memory list of all the objects
for any kind of operation which doesn't scale well the number of
objects in the database.
With this rewrite, objects are loaded only on demand which might
be pessimization in some edge cases but should improve performance
and memory footprint signifcantly.
2018-08-21 01:08:14 +03:00
Andrey Smirnov
fb5985bbbe
Merge pull request #767 from aptly-dev/fix-sys-test-take-N
...
Fix system tests on `master` branch
2018-08-20 17:55:54 +03:00
Andrey Smirnov
5a9f4bee12
Fix system tests on master branch
2018-08-17 18:11:49 +03:00
Andrey Smirnov
4717793d8e
Merge pull request #765 from aptly-dev/761-lazy-iteration
...
Implement lazy iteration (ForEach) over collections
2018-08-16 16:44:05 +03:00
Andrey Smirnov
de38011dd2
Add simple benchmark for SnapshotCollection.ForEach()
2018-08-14 00:56:15 +03:00
Andrey Smirnov
0f4bbc4752
Implement lazy iteration (ForEach) over collections
...
See #761
aptly had a concept of loading small amount of info per each object
into memory once collection is accessed for the first time.
This might have simplified some operations, but it doesn't scale well
with huge aptly databases.
This is just intermediate step towards better memory management -
list of objects is not loaded unless some method is called.
`ForEach` method (mainly used in cleanup) is reimplemented to
iterate over database without ever loading all the objects into memory.
Memory was even worse with previous approach, as for each item usually
`LoadComplete()` is called, which pulls even more data into memory
and item stays in memory till the end of the iteration as it is referenced
from `collection.list`.
For the subsequent PR: reimplement `ByUUID()` and probably other methods
to avoid loading all the items into memory, at least for all the collecitons
except for published repos. When published repository is being loaded, it
might pull source local repo which in turn would trigger loading for all the
local repos which is not acceptable.
2018-08-04 00:26:02 +03:00
Andrey Smirnov
86a1c41e5d
Merge pull request #762 from aptly-dev/761-flush-collections
...
Lower memory usage for `aptly db cleanup`
2018-08-01 00:29:18 +03:00
Andrey Smirnov
021b8c4cff
Lower memory usage for aptly db cleanup
...
This is not a complete fix, but the easiest first step.
During `db cleanup`, aptly is loading every repo/mirror/... into memory,
and even though each object is processed only once, collection holds
a reference to all the loaded objects, so they won't be GC'd until
process exits.
CollectionFactory.Flush() releases pointers to collection objects,
making objects egligble for GC.
This is not a complete fix, as during iteration we could have tried
to release a link to every object being GCed and that would have
helped much more.
2018-07-20 01:04:51 +03:00
Andrey Smirnov
bcacb7b7f0
Merge pull request #760 from aptly-dev/756-fix
...
Keep checksum of not compressed index file even if it's not uploaded
2018-07-16 23:50:48 +03:00
Andrey Smirnov
747b9752ce
Keep checksum of not compressed index file even if it's not uploaded
...
Fixes : #756
2018-07-14 00:17:36 +03:00
Andrey Smirnov
b0be6c8a7a
Merge pull request #755 from aptly-dev/gpg2-gpg1
...
Unit tests for PGP signing/verification
2018-07-11 19:19:37 +03:00
Andrey Smirnov
58c7358113
Unit tests for PGP signing/verification
...
These unit-tests cover operations via both PGP providers:
built-in `openpgp` and external `gpg`.
Next step is to run these tests for gpg1 & gpg2
as separate entities.
2018-07-11 01:07:13 +03:00
Oliver Sauder
b1a2523ef0
Add unit test for remote and http
2018-07-06 15:02:37 +02:00
Oliver Sauder
b7323db31b
Add detached signature to installer hashsum file
2018-07-06 15:02:37 +02:00
Oliver Sauder
2e52692ba6
Test LinkFromPool with nested filenames
2018-07-06 15:02:37 +02:00
Oliver Sauder
0075ead526
Simplify package function signature LinkFromPool
2018-07-06 15:02:37 +02:00
Oliver Sauder
6df4a746f1
Clarify doc strings
2018-07-06 15:02:37 +02:00
Oliver Sauder
074904ee92
Allow editing of with-installer mirror flag
2018-07-06 15:02:37 +02:00
Oliver Sauder
108b0ea226
Add support to mirror non package installer files
2018-07-06 15:02:37 +02:00
Andrey Smirnov
9a704de43b
Merge pull request #754 from aviau/lzma
...
switch to packaged lzma package
2018-06-23 00:58:50 +03:00
aviau
7dfc12d138
switch to packaged lzma package
2018-06-22 12:44:23 -04:00
Harald Sitter
9000446663
Merge pull request #753 from aviau/official-uuid
...
dep: use official uuid package
2018-06-22 11:14:35 +02:00
aviau
814ac6c28c
dep: use official uuid package
2018-06-21 16:12:45 -04:00
Oliver Sauder
d1a284298f
Merge pull request #751 from sliverc/repo_include_api
...
Expose repo include through API
2018-06-19 16:02:22 +02:00
Oliver Sauder
9509629bcf
Add changes test to increase coverage
2018-06-19 15:40:38 +02:00
Oliver Sauder
f1882cfe2c
Expose repo include through API
2018-06-19 15:39:09 +02:00
Andrey Smirnov
90e446ec16
Merge pull request #743 from aptly-dev/gpg2-skip
...
Skip GPG version check `APTLY_SKIP_GPG_VERSION_CHECK=1` is set in the env
2018-06-19 00:42:04 +03:00
Oliver Sauder
464ed8269b
Merge pull request #750 from sliverc/fix_nvidia_test
...
Fix failing SHA512 checksums only test
2018-06-18 08:59:52 +02:00
Oliver Sauder
57a51d94ed
Fix failing SHA512 checksums only test
...
This test has been failing very often because of changes in nvidia
repository. As this test is not related to filtering
remove number of filtered packages from output for a more robust test.
2018-06-15 15:43:37 +02:00
Andrey Smirnov
53c557271d
Merge pull request #744 from aptly-dev/nightly-builds
...
Move release build to Travis CI
2018-06-12 00:48:00 +03:00
Andrey Smirnov
b6fe16095b
Move nightly builds to Travis CI
...
This updates previous work in #739 to build
Debian packages and zip files for other OS.
All the build artifacts are uploaded to S3
public bucket `aptly-nightly` so that there's
archive for all the builds.
All `.deb` packages are automatically uploaded
to repo.aptly.info/nightly on build.
2018-06-12 00:26:44 +03:00
Oliver Sauder
6a1c439325
Merge pull request #747 from tomascassidy/patch-1
...
Fix typo
2018-06-05 21:54:34 +02:00
tomascassidy
06b0be7bad
Fix typo
2018-06-05 16:23:06 +10:00
Andrey Smirnov
e5acf22285
Skip GPG version check APTLY_SKIP_GPG_VERSION_CHECK=1 is set in the environment
...
This allows to force using GnuPG 2.x even if aptly is not 100% ready
to use it.
2018-05-25 00:23:50 +03:00
Harald Sitter
5f904a164c
Merge pull request #739 from aptly-dev/travis-binaries
...
add support for travis attaching build artifacts to releases
2018-05-15 08:29:14 +02:00
Harald Sitter
9a30a11786
add support for travis attaching build artifacts to releases
...
- new phony target build: same as install but creating aptly-$version and
putting it into a build/ subdir
- env TRAVIS_TAG in the makefile now overrides the TAG lookup, this ensures
that the tag travis is working with is actually the one being used to
construct the version number
- subdir is gitignored
- travis runs new target - lists artifacts - deploys artifacts to github
all of the above only happens on builds that are a tag and DEPLOY_BINARIES
is set to yes (which is only the case for latest stable go version)
2018-05-14 17:27:14 +02:00
Strajan Sebastian Ioan
d31144b9ae
Buffer increase ( #738 )
...
Increase Scanner buffer size for Stanza reader
2018-05-14 17:41:33 +03:00
Harald Sitter
c7a3a10846
Merge pull request #735 from aptly-dev/nvidia-repo-update
...
update nvidia reference again
2018-05-03 11:59:57 +02:00
Harald Sitter
2be0b7859d
update nvidia reference again
...
package count chainged again -.-
I am working on a fixture set for repositories so we can stop talking to
live repositories. that's quite the undertaking though, so let's fix the
output reference to unbreak the test in the meantime
2018-05-03 10:45:01 +02:00
Oliver Sauder
65528fc357
Merge pull request #734 from aptly-dev/gpg1
...
introduce a gpg and gpgv version compatibility check and fall back to v1
2018-04-26 10:34:03 +02:00
Harald Sitter
5a713534c6
fix gpg setting
...
Init is actually never called and I have no clue why it is there if it is
not called.
Take this opportunity to introduce a New function which only does the
helper lookup and panics iff that fails. Panic may be a bit too aggressive,
but seems the most certain way to get out of not finding a suitable gpg1
binary.
2018-04-26 09:18:06 +02:00
Harald Sitter
f89e322ece
move away from assert package
...
we don't actually use it anywhere else
2018-04-25 15:35:01 +02:00
Harald Sitter
cd6075ba94
introduce a gpg and gpgv version compatibility check and fall back to v1
...
Newer versions of debian and ubuntu come with gpg pointing to gpg2.
We can currently only handle gpg1 CLIs though. Luckily the old gpg is still
available in the package gnupg1 (providing bin/gpg1).
As a bit of a stop-gap, until #657 can be resolved properly, we'll detect
the version of bin/gpg. If it is unsuitable we'll fall back and try
bin/gpg1. If neither is found to be suitable the signer/verifier will
not work.
Same applies to gpgv/gpgv1.
2018-04-25 15:05:53 +02:00
Andrey Smirnov
77033df27b
Merge pull request #732 from aptly-dev/move-to-aptly-dev
...
Fix paths after repository transfer to aptly-dev
2018-04-18 22:43:53 +03:00
Andrey Smirnov
b8c5303fdb
Fix paths after repository transfer to aptly-dev
2018-04-18 21:19:43 +03:00
Andrey Smirnov
eaab66da58
Merge pull request #731 from smira/build-improvements
...
Change build settings to speed up builds
2018-04-18 12:11:01 +03:00
Andrey Smirnov
2a8aff9746
Change build settings to speed up builds
...
1. Don't run long steps for Go versions other than 1.9 & 1.10
according to Golang Release Policy (two latest versions).
2. Switch to codecov.io, collect coverage only on Go 1.10 which
has fixes for multi-module coverage & ./... ignoring vendor.
3. Simplify Makefile.
2018-04-18 01:19:26 +03:00
Andrey Smirnov
797b2dd996
Merge pull request #730 from smira/s3-creds
...
Replace S3 creds
2018-04-16 11:37:46 +03:00
Andrey Smirnov
e65fff058c
Fix build on Travis
2018-04-13 23:55:49 +03:00
Andrey Smirnov
548dcdb242
Add google_compute_engine boto dependency (why???)
2018-04-13 23:53:01 +03:00
Andrey Smirnov
9a65bbe12c
Add debug output on tests being skipped
2018-04-13 23:42:07 +03:00
Andrey Smirnov
72d741a9b7
Replace S3 creds
2018-04-13 23:18:53 +03:00
Andrey Smirnov
2f5bf96fc9
Merge pull request #461 from jacksgt/service-file
...
Add systemd service for aptly http server
2018-04-11 16:32:41 +03:00
Andrey Smirnov
4d3b42eb11
Merge pull request #729 from smira/667-legacy-content-indexes
...
Implement 'legacy' Contents indexes to match Ubuntu <=16.04
2018-04-11 10:50:38 +03:00
Andrey Smirnov
5b85522400
Implement 'legacy' Contents indexes to match Ubuntu <=16.04
...
Another index is created which unifies data for all the components.
This certainly requires more resources as we have to build yet another
index.
2018-04-11 00:57:15 +03:00
Andrey Smirnov
5f96abc271
Merge pull request #728 from smira/openpgp-leveldb-update
...
Update vendored deps, including AWS SDK, openpgp, ftp, ...
2018-04-11 00:28:34 +03:00
Andrey Smirnov
0e6ee35942
Update vendored deps, including AWS SDK, openpgp, ftp, ...
2018-04-10 23:49:16 +03:00
Jack Henschel
14798b2063
Add systemd service for aptly http server and aptly api
...
The systemd service files can be placed under `/etc/systemd/system/`
(for users/administrators) or `/lib/systemd/system/` (for distributions)
2018-04-05 17:13:26 +02:00
Andrey Smirnov
cef4fefc40
Merge pull request #726 from smira/dep-update
...
Update to recent version of `dep`, fix lock files
2018-04-05 17:27:03 +03:00
Andrey Smirnov
181806a9a2
Update to recent version of dep, fix lock files
2018-04-05 16:25:39 +03:00
Andrey Smirnov
99a205c716
Merge pull request #713 from apachelogger/fix-711
...
fix prefix length in error message
2018-04-04 23:17:11 +03:00
Andrey Smirnov
dd78c026c1
Merge branch 'master' into fix-711
2018-04-04 01:37:27 +03:00
Andrey Smirnov
20516dbbc2
Merge pull request #724 from smira/gui-link
...
Add link to aptly GUI
2018-04-02 12:06:10 -04:00
Andrey Smirnov
ba80f377a9
Add link to aptly GUI
...
See also #341
2018-03-31 17:07:07 -04:00
Andrey Smirnov
dc7bbf35eb
Merge pull request #719 from smira/new-key
...
New signing key for aptly repo, and small fixes
2018-03-16 16:07:50 +03:00
Andrey Smirnov
b3b0dbb217
Go 1.10 fix
2018-03-16 13:02:38 +03:00
Andrey Smirnov
d76259496d
Disable FTP tests in Travis
2018-03-16 11:32:22 +03:00
Andrey Smirnov
aa3a2ab595
New signing key for aptly repo, and small fixes
...
Build on Go 1.10, drop Go 1.7
Remove references to now defunct pgp.mit.edu, fix system test
2018-03-16 01:27:57 +03:00
Harald Sitter
0f1fd1bca6
fix prefix length in error message
...
Fixes #711
2018-03-07 12:44:01 +01:00
Andrey Smirnov
581876df9a
Merge pull request #707 from apachelogger/batch-contents
...
batch updates to the temporary db when publishing
2018-02-28 00:04:07 +03:00
Andrey Smirnov
d0101be955
Merge pull request #703 from steinymity/master
...
Add zsh completion function
2018-02-28 00:01:34 +03:00
Andrey Smirnov
caa5433787
Merge pull request #705 from apachelogger/prevent-root-remove
...
prevent removal of a PublishedStorage's root dir
2018-02-27 23:59:41 +03:00
Harald Sitter
9125745416
batch updates to the temporary db when publishing
...
updates with contents generation were super syscall-heavy. for each path
in a package (so at least 2-4, but ordinarily >4) we'd do a db.Put in
ContentsIndex which results in one syscall.Write. so, for every package in
a published repo we'd have to do *at least* 2 but ordinarily >4 syscalls.
this gets abysmally slow very quickly depending on the available system
specs.
instead, start a batch inside each package and finish it when we are done
with the package. this should keep the memory footprint negligible, but
reduce the write() calls from N to 1.
on one of KDE's servers I have seen update publishing of 7600 packages go
from ~28s to ~9s when using batch putting on an HDD.
on my local system the same set of packages go from ~14s to ~6s on an SSD.
(all inodes in cache in both cases)
2018-02-26 16:19:15 +01:00
Harald Sitter
b893c0a7ca
prevent removal of a PublishedStorage's root dir
...
presently there is no use case where we need this. on the other hand,
passing empty paths into any of the remove methods is indicative of a bug.
this is particularly dangerous as this can temporarily smash the publish
root but later restore it again when actually publishing. this makes
for super nasty and hard to track down problems.
to guard against this simply disallow root dir removal using empty
strings. should we find a use case for this in the future we can always
revisit this (FTR: I think very explicitly API should be used so everyone
knows what is going on and you can't accidentally run it)
2018-02-26 11:09:03 +01:00
Andrey Smirnov
02ac416561
Merge pull request #706 from apachelogger/fix-by-index-cleanup
...
Fix by by-hash index cleanup + root dir data "loss"
2018-02-23 02:34:24 +03:00
Harald Sitter
00bb0ca8f3
fix a serious file leak in the by-index publishing
...
the logic here was wrong.
if we managed to find the link target (the physical index file) pointed to
by our old symlink we want to remove it (this is basically "cleaning up old
index" logic).
previously we'd try to only delete it when the ReadLink came back with
error. which had two serious issues with it:
a) linkTarget was empty, so we basically called Remove("") which would
delete the storage -> root <- directory if the root is a symlink!
b) we'd leak old indexes as the cleanup logic only ran if there was en
error which would ordinarily never be
new code correctly cleans up unless there was an error.
this relates to a previous bugfix of readLink which incorrectly returned
absolute paths ultimately rendering the Remove call also broken.
2018-02-19 17:32:06 +01:00
Harald Sitter
2d0baef3b1
make code less repetitive and more readable
...
by using the power of variables!
2018-02-19 17:22:36 +01:00
Harald Sitter
3ea803e3bb
fix PublishedStorage's ReadLink to return a relative path
...
previously it'd return an absolute path which makes the path absolutely
useless as all other functions of PublishedStorage need relative input
and will prepend them with the rootPath, so getting an absolute ReadLink
and then trying to remove that'd would ultimately try to remove the
absolute path `$root/AbsoluteRoot/LinkTarget` instead of `$root/LinkTarget`
add a unit test to actually verify readlink
2018-02-19 17:13:41 +01:00
Maximilian Stein
2fa9d7402f
Add zsh completion function
...
* imported from https://github.com/steinymity/aptly-zsh
2018-02-17 17:29:32 +01:00
Andrey Smirnov
3c04c56639
Merge pull request #697 from pjediny/issues-692
...
Issues 692
2018-02-09 23:26:09 +03:00
Andrey Smirnov
7cd4b7a908
Merge pull request #696 from apachelogger/AcquireByHash
...
properly expose AcquireByHash through the api
2018-01-27 22:55:51 +03:00
Andrey Smirnov
9242ea4d72
Merge branch 'master' into issues-692
2018-01-27 17:18:55 +03:00
Andrey Smirnov
58790dadc6
Merge branch 'master' into AcquireByHash
2018-01-27 17:16:24 +03:00
Andrey Smirnov
182fbdef50
Merge pull request #698 from apachelogger/fix-filter
...
update nvidia mirror output ref
2018-01-27 00:19:16 +03:00
Harald Sitter
4fb57f65fb
update nvidia mirror output ref
...
this repo now contains 12 packages not 8
2018-01-19 13:09:29 +01:00
Petr Jediný
12e2982362
S3 SymLink fix
...
The copy source should be the name of the source bucket and key name
of the source object, separated by a slash (/).
2018-01-17 14:25:45 +01:00
Petr Jediný
60fb415150
S3 FileExists fix
...
According to https://tools.ietf.org/html/rfc7231#section-4.3.2 HEAD
must not have response body so the AWS error code NoSuchKey
cannot be received from S3 and we need to fallback to HTTP NotFound
error code.
2018-01-17 11:27:35 +01:00
Harald Sitter
75c4d6da3b
properly expose AcquireByHash through the api
...
- new publish calls can now enable AcquireByHash by right away (previously
one would have had to create a new publishing endpoint and then
explicitly switch it to AcquireByHash)
- all json marshals of PublishedRepo now contain AcquireByHash (allows
inspecting if a given endpoint has AcquireByHash enabled already; also
enables verification that a switch/update actually applied a
potential AcquireByHash change
- update all tests to reflect that default state of AcquireByHash
- update creation and switch testing to explicitly toggle AcquireByHash to
make sure state mutation works as expected
2018-01-15 17:04:05 +01:00
Andrey Smirnov
1aa88701fb
Merge pull request #688 from smira/686-race-fix
...
Fix race in API related to `LoadComplete()`
2017-12-13 15:49:37 +03:00
Andrey Smirnov
43ddcd27cb
Fix race in API related to LoadComplete()
...
LoadComplete() modifies object, so it would cause issues if it runs
concurrently with other methods. Uprage mutex locks to write
locks when LoadComplete() is being used.
2017-12-13 12:40:06 +03:00
Andrey Smirnov
9cb2a302f8
Merge pull request #683 from smira/545-download-contxt
...
Use Go context to abort gracefully mirror updates
2017-12-01 00:27:26 +03:00
Andrey Smirnov
d836334767
Merge pull request #682 from tirolerstefan/remove-buildinfo
...
#679 : added *.buildinfo file to processedFile list (will be removed)
2017-12-01 00:23:49 +03:00
Andrey Smirnov
565fcf4390
Merge pull request #664 from sliverc/acquire-by-hash
...
Support Acquire-By-Hash for index files
2017-12-01 00:19:07 +03:00
Andrey Smirnov
b7490fe909
Refactor to embed gocontext.Context into aptly context
2017-11-30 23:44:04 +03:00
Oliver Sauder
b2bf4f7884
Adjust FileExists to differentiate between error and actual file existence
2017-11-30 09:46:02 +01:00
Oliver Sauder
e504fdcd54
Build src path on basis of storage prefix when symlinking
2017-11-30 09:46:02 +01:00
Oliver Sauder
3efa1052fa
Implement FileExists in files storage as simple stat to improve performance
2017-11-30 09:46:02 +01:00
Oliver Sauder
2e488608ca
Simplify packaging indexing by hash and stop when there is an error
2017-11-30 09:46:02 +01:00
Oliver Sauder
674a0e84be
Order publish parameters in bash completion
...
This makes it easier maintainable.
2017-11-30 09:46:02 +01:00
Oliver Sauder
f5e1e194b3
Update man page and bash completion
2017-11-30 09:46:02 +01:00
Oliver Sauder
b4f3573d11
Add acquire by hash when updating publish
2017-11-30 09:46:02 +01:00
Oliver Sauder
4718625388
Avoid exception when failing tests doesn't have a doc string
2017-11-30 09:46:02 +01:00
Oliver Sauder
d6b4b795a5
Fix linting errors
2017-11-30 09:46:02 +01:00
Oliver Sauder
2bd0b786ea
Extend publish snapshot test with acquire by hash
2017-11-30 09:46:02 +01:00
Oliver Sauder
092a7ed8f3
Rename AccessByHash to AcquireByHash for consistency with other flags
2017-11-30 09:46:02 +01:00
Oliver Sauder
438e206b3d
Extend swift storage with link and file exists methods
2017-11-30 09:46:02 +01:00
Oliver Sauder
7498fd8fc8
Extend s3 storage with link and file exists methods
2017-11-30 09:46:02 +01:00
André Roth
e07912770e
Extend PublishedStorage interface for Acquire-By-Hash
...
Signed-off-by: André Roth <neolynx@gmail.com >
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
Stefan
c94e048198
Merge branch 'master' into remove-buildinfo
2017-11-30 06:34:50 +01:00
Stefan Felkel
3b4c06d28d
gofmt
2017-11-30 06:31:50 +01:00
Andrey Smirnov
15618c8ea8
Use Go context to abort gracefully mirror updates
...
There are two fixes here:
1. Abort package download immediately as ^C is pressed.
2. Import all the already downloaded files into package pool,
so that next time mirror is updated, aptly won't download them
once again.
2017-11-30 00:49:37 +03:00
Andrey Smirnov
a037615962
Merge pull request #677 from sliverc/edit_mirror_archive_url
...
Allow editing of mirror archive url
2017-11-29 23:23:08 +03:00
Oliver Sauder
5d301fb1b7
Prepare archive root when editing it
2017-11-27 11:08:31 +01:00
Stefan Felkel
8a4d866810
#679 : added *.buildinfo file to processedFile list (will be removed, afterwards)
2017-11-24 14:23:26 +01:00
Oliver Sauder
b98abcc049
Allow editing of mirror archive url
...
This is needed in case a mirror has moved or is down and need to move
to new mirror.
2017-11-21 16:31:49 +01:00
Andrey Smirnov
10e0966edc
Merge pull request #674 from smira/fix-formatting
...
Fix formatting
2017-11-19 21:53:09 +03:00
Andrey Smirnov
340d1fdd7c
Fix formatting
2017-11-19 19:53:24 +03:00
Andrey Smirnov
14d4a2706c
Merge pull request #673 from AgNO3/s3-removal
...
S3 backend: include path prefix in removal requests.
2017-11-19 19:24:04 +03:00
Moritz Bechler
308ea83cc0
S3 backend: include path prefix in removal requests.
...
DELETE requests, both for temporary files and no longer referenced
packages, lacked the configured path prefix and therefor were not
removed if a prefix is configured.
2017-11-13 14:48:25 +01:00
Andrey Smirnov
9c018ce636
Merge pull request #668 from smira/flx42-sha512-release-file
...
Handle SHA512 in Release files
2017-11-08 22:25:23 +03:00
Andrey Smirnov
359cda9d99
Add system test for repo with SHA512-only checksums
2017-11-08 19:45:22 +03:00
Felix Abecassis
e682639b20
Handle SHA512 in Release files
...
Fix : #656
2017-11-08 11:54:19 +03:00
Andrey Smirnov
afd2c5fcea
Merge pull request #665 from smira/upd-goleveldb
...
Update goleveldb vendored dependency (see #662 )
2017-11-08 11:49:54 +03:00
Andrey Smirnov
5a1d006850
Update goleveldb vendored dependency (see #662 )
2017-11-08 00:49:56 +03:00
Andrey Smirnov
67c26368ee
Merge pull request #658 from apachelogger/control-tar-xz-support
...
make deb reader handle new control.tar options introduced in dpkg 1.17.6
2017-11-02 00:43:54 +03:00
Harald Sitter
1885cbd6a2
make deb reader handle new control.tar options introduced in dpkg 1.17.6
...
newly supported is uncompressed control.tar and xz compressed
control.tar.xz. latter is used by ubuntu for dbgsym ddebs.
Fixes #655
2017-10-31 14:43:00 +01:00
Andrey Smirnov
79d68ec3a7
Merge pull request #659 from apachelogger/fix-align-lint
...
fix linting by using new maligned linter instead of aligncheck
2017-10-31 16:38:32 +03:00
Harald Sitter
f43801cb96
whitelist falke E722 in system/lib.py
...
'E722 do not use bare except' wants us not to use except without type
restriction as it catches everything and the kitchen sink. Since we use
them to catch exceptions in test cases this is intentional as we implement
general purpose error handling on test failure there.
2017-10-31 12:42:11 +01:00
Harald Sitter
46c2182ade
fix linting by using new maligned linter instead of aligncheck
...
upstream switched the alignment check backend and in doing so fails to run
if the old backend is defined in the config.
also skip alignment linting on a struct we use for byte decoding as we have
no choice in its member order.
2017-10-31 12:24:31 +01:00
Andrey Smirnov
5ef45bddda
Merge pull request #650 from smira/278-import-files-from-pool
...
Allow using files from the pool while importing source packages
2017-09-29 23:46:06 +03:00
Andrey Smirnov
0d94f29c27
Allow using files from the pool while importing source packages
...
Sometimes source packages reference files already present in the pool.
Allow for those file to be omitted when importing packages either via
`repo add` or `repo include`. If file is missing, aptly would make
an attempt to look up file in the package pool (by checksum) and
use it.
Fixes : #278
2017-09-29 22:39:51 +03:00
Andrey Smirnov
04b7543dea
Merge pull request #649 from smira/647-sse-put-copy
...
Enforce SSE/StorageClass in PUT Object Copy
2017-09-28 21:07:30 +03:00
Andrey Smirnov
9051f13ce6
Merge branch 'master' into 647-sse-put-copy
2017-09-28 19:30:48 +03:00
Andrey Smirnov
1b704db5c0
Merge pull request #648 from smira/upgrade-aws-sdk
...
Upgrade AWS SDK to the latest version
2017-09-28 19:30:30 +03:00
Andrey Smirnov
2d66a4ca0a
Enforce SSE/StorageClass in PUT Object Copy
...
"RenameFile" is implemented in S3 using `PUT Object Copy`, which
should enforce SSE/StorageClass same way as regular `PUT Object`.
Fixes : #647
2017-09-28 18:30:50 +03:00
Andrey Smirnov
182c21e38c
Upgrade AWS SDK to the latest version
2017-09-28 17:57:05 +03:00
Andrey Smirnov
9a767b7631
Merge pull request #646 from smira/update-gin
...
Upgrade gin-gonic to latest master, fix compatibility issues
2017-09-28 01:42:42 +03:00
Andrey Smirnov
3756db2491
Upgrade gin-gonic to latest master, fix compatibility issues
2017-09-28 00:33:59 +03:00
Andrey Smirnov
ff8e4a8659
Merge pull request #645 from smira/man-no-false
...
Remove `=false` in usage and man page
2017-09-27 16:35:05 +03:00
Andrey Smirnov
aec6c2f2e2
Remove =false in usage and man page
2017-09-27 01:01:01 +03:00
Andrey Smirnov
d611d0d829
Merge pull request #620 from cavedon/skipCleanup
...
Add -skip-cleanup option for publish commands.
2017-09-27 00:35:47 +03:00
Andrey Smirnov
b4deedda01
Merge branch 'master' into skipCleanup
2017-09-27 00:14:24 +03:00
Andrey Smirnov
0f14143141
Merge pull request #644 from smira/615-all-variants
...
Fix incomplete dependencies with follow-all-variants
2017-09-26 15:45:26 +03:00
Andrey Smirnov
e5198178a5
Fix incomplete dependencies with follow-all-variants
...
When `-dep-follow-all-variants` option is enabled, dependency resolving
process shouldn't stop even if dependency is already satisfied - there
mgiht be other ways to satisfy dependency.
Also fix issue with parsing multiarch specs like
`python:any`.
2017-09-26 00:09:15 +03:00
Andrey Smirnov
1c44b4f787
Merge pull request #643 from smira/618-prefer-exact-match
...
Prefer exact match on package name over provides match
2017-09-25 20:42:43 +03:00
Andrey Smirnov
6d2f265980
Prefer exact match on package name over provides match
...
When searching for packages which might satisfy given dependency,
aptly was first returning packages which `Provides` mentioned
name. By default aptly is picking up only first match (unless
follow all variants options is enabled), so `Provides:` takes
precedence over exact package name match.
Invert this logic by searching first for package name match.
2017-09-25 18:24:45 +03:00
Andrey Smirnov
325d391007
Merge pull request #630 from skyscrapers/expose-context
...
Expose the context outside of the cmd package.
2017-09-22 19:20:01 +03:00
Ringo De Smet
91a3dc9e94
Expose the context outside of the cmd package.
2017-09-22 16:45:10 +02:00
Andrey Smirnov
31f4af5722
Merge branch 'master' into skipCleanup
2017-09-20 17:53:24 +03:00
Andrey Smirnov
e0aaa8bb80
Merge pull request #640 from smira/636-upcase-package-name
...
Allow uppercase package name in package query expressions
2017-09-18 22:34:32 +03:00
Andrey Smirnov
50035d5bc4
Allow uppercase package name in package query expressions
...
Fixes : #636
Before this fix, aptly was always treating strings starting with
uppercase letter as field name, which was breaking package queries
like `VMware-Horizon-Client_4.5.0_all`.
Now aptly accepts only fields which don't contain underscore, and
everything else would be parsed as package reference.
2017-09-18 21:36:06 +03:00
Andrey Smirnov
985f1a17b5
Merge pull request #638 from smira/fix-sys-tests
...
Update PD GPG key id to fix the tests
2017-09-18 19:14:45 +03:00
Andrey Smirnov
72ac1bc33c
Update PD GPG key id to fix the tests
2017-09-18 18:09:36 +03:00
Andrey Smirnov
f0d6b1c29f
Merge pull request #637 from smira/fix-linter-go-1.9
...
Fix lint warning & add Go 1.9 to the mix
2017-09-16 21:36:51 +03:00
Andrey Smirnov
bd5fc8ae62
Varnish repos got moved
2017-09-15 23:43:51 +03:00
Andrey Smirnov
9ca81ff3bc
Fix lint warning & add Go 1.9 to the mix
2017-09-15 22:54:39 +03:00
Andrey Smirnov
d9607cf88c
Merge pull request #624 from smira/no-go-16
...
Drop support for Go 1.6, only Go 1.7+ is supported
2017-08-17 22:02:30 +03:00
Andrey Smirnov
4f56f34d82
Merge pull request #623 from smira/446-package-query-duplicates
...
Allow package queries to return duplicate entries on `PackageCollection`
2017-08-17 17:37:57 +03:00
Ludovico Cavedon
e2956a84ce
Merge branch 'master' into skipCleanup
2017-08-16 14:44:33 -07:00
Andrey Smirnov
00a9eb72d8
Drop support for Go 1.6, only Go 1.7+ is supported
2017-08-17 00:44:04 +03:00
Andrey Smirnov
cbc8051c5c
Merge pull request #622 from smira/619-s3-prefix
...
Fix S3 path caching double-prefix
2017-08-17 00:42:08 +03:00
Andrey Smirnov
a27b489ba2
Allow package queries to return duplicate entries on PackageCollection
...
Fixes #446
2017-08-17 00:40:34 +03:00
Andrey Smirnov
790d85881b
Fix S3 path caching double-prefix
...
Original PR: #621
Fixes : #619
I've added unit-test to Martyn's PR.
Without this fix, if `prefix` is set on S3 publish endpoint,
aptly would incorrectly build path cache and re-upload every object
on publish.
2017-08-16 23:57:41 +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
35e2253944
Merge pull request #614 from smira/600-fix-double-mirror-update
...
Fix bug with `PoolPath` field being overwritten on mirror update
2017-08-11 20:48:04 +03:00
Andrey Smirnov
a584b2e058
Fix bug with PoolPath field being overwritten on mirror update
...
While updating mirror, if package file is already in pool path,
field `PoolPath` was left as empty which results in package file
being unavailable later on while publishing.
2017-08-11 20:05:55 +03:00
Andrey Smirnov
587bfd742f
Merge pull request #613 from smira/607-trim-slashes
...
Trim slashes while parsing publish prefix
2017-08-09 13:36:35 +03:00
Andrey Smirnov
84ef963d7d
Trim slashes while parsing publish prefix
...
Fixes : #607
2017-08-09 01:26:47 +03:00
Andrey Smirnov
e70ef0a518
Merge pull request #612 from smira/610-stderr
...
Print error messagge 'unable to open database' to stderr
2017-08-09 01:00:18 +03:00
Andrey Smirnov
e05768737f
Print error messagge 'unable to open database' to stderr
...
Fixes #610
2017-08-09 00:01:51 +03:00
Andrey Smirnov
a626e4693b
Merge pull request #604 from AlekSi/patch-1
...
Try to reduce build duration
2017-08-08 22:04:49 +03:00
Alexey Palazhchenko
4d9b4298d8
Merge branch 'master' into patch-1
2017-07-31 22:13:27 +03:00
Andrey Smirnov
4cca7272ce
Merge pull request #603 from smira/improve-pgp-internal
...
Improve internal PGP provider
2017-07-31 20:57:43 +03:00
Andrey Smirnov
e9b2c18e2f
Attempt to fix the tests
2017-07-28 22:37:20 +03:00
Andrey Smirnov
cbb576cbcc
Fix up system tests
2017-07-28 22:37:20 +03:00
Alexey Palazhchenko
bcc83bff31
Try to reduce build duration
2017-07-28 10:10:34 +03:00
Andrey Smirnov
68da8a674a
Improve internal PGP provider
...
1. Print additional details about keys being used for signing
2. Skip expired keys
3. Add `\n` to logged messages
2017-07-28 00:53:50 +03:00
Andrey Smirnov
cafa82f018
Merge pull request #601 from AlekSi/patch-1
...
Use SVG badges
2017-07-28 00:47:08 +03:00
Andrey Smirnov
83a9c394f3
Merge pull request #602 from AlekSi/patch-2
...
Update Travis CI configuration
2017-07-28 00:46:55 +03:00
Alexey Palazhchenko
2c0a1b836c
Update Travis CI configuration
...
* Use Ubuntu 14.04 with Docker.
* Use latest patch versions of Go.
* Replace hacks for forks with an official solution.
2017-07-28 00:08:27 +03:00
Alexey Palazhchenko
28ae18792d
Use SVG badges
2017-07-27 23:57:13 +03:00
Andrey Smirnov
2811ad02d5
Merge pull request #581 from smira/pgp-golang
...
Implement new PGP provider via Go internal library
2017-07-26 22:14:46 +03:00
Andrey Smirnov
ab20c2d329
Add publishing & repo include tests
2017-07-26 00:31:27 +03:00
Andrey Smirnov
d137bcf8d4
Fix up/add mirror update tests
2017-07-26 00:00:06 +03:00
Andrey Smirnov
3674e1adee
System tests for mirror create/update with internal PGP implementation
2017-07-21 01:09:20 +03:00
Andrey Smirnov
05a5e69483
Fix misspelling
2017-07-21 01:01:58 +03:00
Andrey Smirnov
5e9515a912
Add --batch in batch mode ( fixes #519 )
2017-07-21 01:01:58 +03:00
Andrey Smirnov
84a6d573f8
Implement GPG signer
2017-07-21 01:01:58 +03:00
Andrey Smirnov
6228a399cf
Mute goconst warnings
2017-07-21 01:01:58 +03:00
Andrey Smirnov
0e9f966dd1
Fix up other code to support new GPG provider structure
2017-07-21 01:01:58 +03:00
Andrey Smirnov
07fde3177b
GoVerifier implementation
2017-07-21 01:01:58 +03:00
Andrey Smirnov
f9377b2aa6
Update bash completion for new flag
2017-07-21 01:01:58 +03:00
Andrey Smirnov
499ab35012
Implement flag/config falue for GPG provider
2017-07-21 01:01:58 +03:00
Andrey Smirnov
3c95f92b95
Now using openpgp package from golang.org/x/crypto
2017-07-21 01:01:58 +03:00
Andrey Smirnov
d7a7aa93a4
Merge pull request #596 from smira/s3-opts-man
...
Document additional S3 options [ci skip]
2017-07-21 01:00:45 +03:00
Andrey Smirnov
58ab4e8902
Document additional S3 options [ci skip]
2017-07-21 00:57:06 +03:00
Andrey Smirnov
fcd453118b
Merge pull request #590 from smira/1.1-fixups
...
Small fixups for upcoming 1.1.0 release
2017-07-07 01:17:37 +03:00
Andrey Smirnov
7d179dd405
Small fixups for upcoming 1.1.0 release
...
Fix system tests, add -db-open-attempts to bash completion, small nits
for man page.
2017-07-07 00:14:03 +03:00
Andrey Smirnov
20b874f81f
Merge pull request #577 from sliverc/backport_support
...
Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields
2017-07-06 00:18:18 +03:00
Oliver Sauder
e3f1880ad4
Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields
2017-07-05 15:08:02 +02:00
Andrey Smirnov
39293d7faf
Merge pull request #589 from smira/api-db-no-lock-fix
...
Rework the way database is open/re-open in aptly
2017-07-05 12:57:26 +03:00
Andrey Smirnov
c13eb99925
Style fixups
2017-07-05 00:36:48 +03:00
Andrey Smirnov
211ac0501f
Rework the way database is open/re-open in aptly
...
Allow database to be initialized without opening, unify all the
open paths to retry on failure.
In API router make sure open requests are matched with acks in explicit
way.
This also enables re-open attempts in all the aptly commands, so it
should make running aptly CLI much easier now hopefully.
Fix up system tests for oldoldstable ;)
2017-07-05 00:17:48 +03:00
Andrey Smirnov
af2f7baf63
Merge pull request #556 from smira/contributing-documentation
...
Docs on contributing to aptly [ci skip]
2017-06-27 01:15:25 +03:00
Andrey Smirnov
3c25db3ffb
Docs on contributing to aptly [ci skip]
2017-06-27 01:13:18 +03:00
Andrey Smirnov
12a6b0ceb8
Merge pull request #575 from smira/pgp-refactoring
...
Refactor GPG signer/verifier
2017-05-24 19:24:38 +03:00
Andrey Smirnov
0d041898ca
Merge pull request #574 from smira/376-checksum-search-fix
...
Fix checksum matching from Release file
2017-05-23 21:53:06 +03:00
Andrey Smirnov
982c093fbf
Fix system tests
2017-05-23 16:24:49 +03:00
Andrey Smirnov
f54e798eac
Add system test for fixed checksum matching
2017-05-23 03:00:16 +03:00
Andrey Smirnov
cafb89f30f
Re-work the way checksum matching works against Release file
...
Break up URL into base part and relative path. Match checksum against relative path
and never against full URL.
This might be fixing security issue if aptly was incorrectly matching against
wrong part of Release file.
2017-05-23 03:00:15 +03:00
Andrey Smirnov
f0360cf2d3
Use longest suffix match to pick up checksum
2017-05-23 03:00:15 +03: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
c026106352
Merge pull request #571 from sliverc/travis_for_forks
...
Making travis CI run again on forks
2017-05-19 22:41:15 +03:00
Oliver Sauder
c507d0620b
Making travis CI run again on forks
2017-05-19 16:37:04 +02:00
Andrey Smirnov
f84672239a
Merge pull request #569 from smira/linters-4
...
Enable goconst & interfacer linters
2017-05-17 15:33:02 +03:00
Andrey Smirnov
c9bd7b4b5d
Merge pull request #567 from smira/431-500-api
...
Fix possible cause for spurious 500s
2017-05-17 15:32:52 +03:00
Andrey Smirnov
470165a419
Enable goconst & interfacer linters
2017-05-17 00:53:10 +03:00
Andrey Smirnov
9de9fbe6bd
Merge branch 'master' into 431-500-api
2017-05-17 00:52:32 +03:00
Andrey Smirnov
e396a2e6c3
Merge pull request #568 from smira/fix-flat-tests
...
Fix tests for flat repos
2017-05-17 00:52:19 +03:00
Andrey Smirnov
829ea2e65c
Fix tests for flat repos
2017-05-17 00:09:18 +03:00
Andrey Smirnov
39d2d273dc
Fix possible cause for spurious 500s
...
When DB fails to be open, aptly was skipping "close" phase, so that next
request considered database to be still open (while it's closed) leading
to panic.
Fixes : #431
2017-05-16 00:42:59 +03:00
Andrey Smirnov
5a3e660c0d
Merge pull request #566 from smira/135-sort-search
...
Sort package lists when searching or showing objects
2017-05-10 00:19:53 +03:00
Andrey Smirnov
589dc93380
Sort package lists when searching or showing objects
...
Fixes #135
Fixes #214
2017-05-05 18:42:46 +03:00
Andrey Smirnov
33357c1fe4
Merge pull request #565 from smira/linters-3
...
Enable `vetshadow` linter
2017-05-05 17:43:09 +03:00
Andrey Smirnov
5ce6bf8718
Enable vetshadow linter
2017-05-04 23:00:13 +03:00
Andrey Smirnov
d7bcf372c4
Merge pull request #564 from jyundt/add_mirror_edit_bash_autocomplete
...
Add mirror edit option to bash auto-complete
2017-05-04 21:26:11 +03:00
Jacob Yundt
3aa044d722
Add mirror edit option to bash auto-complete
...
Fixes smira/aptly#563
2017-05-04 13:24:34 -04:00
Andrey Smirnov
a9a5a73dfd
Merge pull request #560 from smira/linters-2
...
More Go linters enabled, issues fixed
2017-05-04 02:13:06 +03:00
Andrey Smirnov
66b44e68a9
Attempt to workaround Travis "10 minutes without output".
2017-05-03 20:28:57 +03:00
Andrey Smirnov
51213899b7
More Go linters enabled, issues fixed
...
Ref: #528
Enables "staticcheck", "varcheck", "structcheck", "aligncheck"
2017-05-03 18:23:14 +03:00
Andrey Smirnov
7a7c9cd26c
Merge pull request #559 from smira/linters-extend-deadline
...
Extend linters deadline
2017-05-02 22:12:45 +03:00
Andrey Smirnov
1b9ab46c5f
Extend linters deadline
...
Ref: #528
2017-05-02 20:35:16 +03:00
Andrey Smirnov
2cbed28446
Merge pull request #558 from smira/linters-python
...
Add system's requirements.txt, enforce flake8 linter
2017-04-28 16:14:32 +03:00
Andrey Smirnov
39aa0fdbfe
Merge pull request #557 from smira/linters-1
...
Enable `gosimple` and `ineffasign` linters
2017-04-28 00:29:20 +03:00
Andrey Smirnov
c983810e2d
Manually create system/env, workaround Travis issues
2017-04-28 00:16:21 +03:00
Andrey Smirnov
c798db8056
Add system's requirements.txt, enforce flake8 linter
...
Fix style issues in functional tests.
2017-04-28 00:05:11 +03:00
Andrey Smirnov
1e4a80252e
Extend linter deadline to 1 minute
2017-04-27 22:32:35 +03:00
Andrey Smirnov
bae3f949b4
Enable gosimple and ineffasign linters
2017-04-27 18:34:30 +03:00
Andrey Smirnov
7a7b981d4f
Merge pull request #539 from smira/public-pool-paths
...
New package pool with configurable hashing base
2017-04-27 16:24:14 +03:00
Andrey Smirnov
2ffefeb1e0
Add man page for skipLegacyPool
2017-04-27 00:51:46 +03:00
Andrey Smirnov
1941418c10
Add system test for disabled legacy pool path support
2017-04-27 00:51:46 +03:00
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
2308632683
Add system tests for legacy pool files
2017-04-26 23:17:04 +03:00
Andrey Smirnov
ee21b69402
Add test for mirror without MD5 checksums
2017-04-26 23:17:04 +03:00
Andrey Smirnov
01512df853
Rework mirror update to support closing/reoping DB for the download duration
...
This requires splitting up import file phase as separate step in then end,
it should be pretty fast, as it only does file move (hardlink) and
DB update for new checksums.
2017-04-26 23:17:04 +03:00
Andrey Smirnov
7dcc0d597d
Fix S3/Swift tests
2017-04-26 23:17:04 +03:00
Andrey Smirnov
154ef7fe65
Fix system tests for aptly repo include
2017-04-26 23:17:04 +03:00
Andrey Smirnov
4601f07349
Fix system tests for aptly repo add
2017-04-26 23:17:04 +03:00
Andrey Smirnov
b7b9f12c88
Update system tests for SHA512 checksums being generated
2017-04-26 23:17:04 +03:00
Andrey Smirnov
b48e8425ec
Fix bug with file not being updated properly
2017-04-26 23:17:04 +03:00
Andrey Smirnov
3ce8227122
Add baseName to LinkFromPool as explicit argument
2017-04-26 23:17:04 +03:00
Andrey Smirnov
0bc3f71d27
Use SHA256 as main checksum in the pool
2017-04-26 23:17:04 +03:00
Andrey Smirnov
c1d4c0fb88
Temporarily disable db close/open cycle (to be addressed later)
2017-04-26 23:17:04 +03:00
Andrey Smirnov
8078f3b588
We should remove file only when checksums are calculated
2017-04-26 23:17:04 +03:00
Andrey Smirnov
5dd11a2ec2
Pull original packages when skipping existing packages
2017-04-26 23:17:04 +03:00
Andrey Smirnov
cc34a021ce
Fix misspellings
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
a85d8b6f90
Mock for ChecksumStorage
2017-04-26 23:17:04 +03:00
Andrey Smirnov
5566111a7b
New ChecksumStorage and new PackagePool interfaces
2017-04-26 23:17:04 +03:00
Andrey Smirnov
6994e35119
ChecksumCollection implementation
2017-04-26 23:17:04 +03:00
Andrey Smirnov
4eedb62418
Fix misspelling
2017-04-26 23:17:04 +03:00
Andrey Smirnov
1f3cb2db5d
When downloading/importing packages, enforce all checksums
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
4171a73995
Fix up system test
2017-04-26 23:17:03 +03:00
Andrey Smirnov
29e5f4ca10
Vendor import github.com/pkg/errors
2017-04-26 23:17:03 +03:00
Andrey Smirnov
05f6c75743
Add PR #506 original author [ci skip]
2017-04-26 23:17:03 +03:00
Andrey Smirnov
45d187bc14
Fix up system test
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
Andrey Smirnov
72d233b587
Final round of updates, everything except mirror download should be ready
2017-04-26 23:17:03 +03:00
Andrey Smirnov
2535367c3c
Update Swift published storage to work with new package pool
2017-04-26 23:17:03 +03:00
Andrey Smirnov
f4ff8d957f
Fix S3 published storage to use new PackagePool interface
...
Change PackagePool to return Seeker interface from Open call.
2017-04-26 23:17:03 +03:00
Andrey Smirnov
7bad358408
Local package pool and local publishing rewritten with new constraints
...
Local package pool now implements more generic package pool API.
The base idea is to never expose full paths to files, so that other
kinds of package pools (e.g. package pool in S3) could be used to implement
the same interface.
Files get into the pool only using `Import` method. `Import` method is
now more smart, it supports moving files into the pool, it can detect if
files reside on the same filesystem and use hardlinking instead of copying.
This will make direct mirror downloads still as fast as they were with previous
version which was performing download directly to package pool.
New package pool doesn't have two things implemented yet:
1. New file placement according to SHA256 or other configured hash
2. Calculate at least SHA256/MD5 for each imported files.
MD5 would be required for S3/Swift publishing
2017-04-26 23:17:03 +03:00
Andrey Smirnov
94b49818a1
Refactor HTTP downloader package
...
* Drop multi-threaded downloader. It doesn't really belong here -
some places require it, some do not, but it's definitely not the
right place to handle it, as it's being used only when updating
mirrors
* Pass expectedChecksums as pointer, so it's easy to drive `nil` value,
and also downloader can fill back checksums (not implemented right now).
* Break down downloader and tests into more files
* Use pkg/errors instead of fmt
2017-04-26 23:17:03 +03:00
Andrey Smirnov
a245b722a8
Merge pull request #555 from smira/288-empty-repo-snapshot
...
Allow snapshot to be created from empty local repo
2017-04-26 01:11:40 +03:00
Andrey Smirnov
8dc6a14766
Allow snapshot to be created from empty local repo
...
Fixes #288
2017-04-26 00:33:09 +03:00
Andrey Smirnov
d66185ca03
Merge pull request #554 from smira/flat-system-test
...
Fix system tests for flat repos
2017-04-24 23:45:58 +03:00
Andrey Smirnov
c3acabe303
Fix system tests for flat repos
...
Old mirror used for testing is gone, switch to CRAN.
2017-04-24 23:04:48 +03:00
Andrey Smirnov
4697d8eaf8
Merge pull request #550 from smira/549-fix-deps
...
Rewrite `dep` files into new format
2017-04-14 22:48:53 +03:00
Andrey Smirnov
8bf71a5561
Rewrite dep files into new format
...
Conversion to TOML plus some manual fixups.
2017-04-14 17:24:49 +03:00
Andrey Smirnov
898cbd2c83
Merge pull request #548 from smira/546-fix-depends
...
Update `Depends:` for homegrown packages
2017-04-14 16:22:03 +03:00
Andrey Smirnov
62762f1616
Merge branch 'master' into 546-fix-depends
2017-04-14 00:57:36 +03:00
Andrey Smirnov
4d38e0bc87
Merge pull request #521 from seeraven/feature_localfiles_publishstorage
...
Implemented local filesystem endpoint with support for hardlinks, symlinks and copy
2017-04-14 00:52:49 +03:00
Clemens Rabe
25f9c29f00
Implemented filesystem endpoint with support for hardlinks, symlinks and copy.
2017-04-13 20:25:40 +02:00
Andrey Smirnov
096b30b5e8
Update Depends: for homegrown packages
...
This should match upstream Debian package, at the same time
`goxc` seems to be broken and it ignores `Suggests`.
2017-04-13 01:33:30 +03:00
Andrey Smirnov
ac475c0a10
Merge pull request #544 from smira/543-tmp-dirs-leftover
...
Fix temporary contents DB being left behind after publishing
2017-04-11 00:28:13 +03:00
Andrey Smirnov
60800b5f25
Fix temporary contents DB being left behind after publishing
...
NB: Go `defer` order execution is reverse to the order `defer` statements
are executed.
So before the change, `Drop()` was called before `Close()`, which was no-op.
Change that to explicit order in single func, print errors if they happen.
2017-04-10 23:43:33 +03:00
Andrey Smirnov
36a4d78162
Merge pull request #535 from smira/public-pool-checksums
...
Refactoring: use checksums instead of MD5 for pool/published
2017-04-03 17:31:04 +03:00
Andrey Smirnov
50cf2b49bd
Refactoring: use checksums instead of MD5 for pool/published
...
This is related to #506
As a first step, don't pass MD5 explicitly, pass checksum info object,
so that as a next step we can choose which hash to use.
There should be no functional changes so far.
Next step: stop returning explicit paths from public package pool.
2017-04-01 00:12:31 +03:00
Andrey Smirnov
675d35c7a1
Merge pull request #508 from smira/dep-verbose-resolve
...
Add new option for detailed logging on dependency resolving
2017-03-31 19:58:23 +03:00
Andrey Smirnov
bc469eecfb
Merge branch 'master' into dep-verbose-resolve
2017-03-31 19:17:57 +03:00
Andrey Smirnov
bc01d9ed5b
Merge pull request #534 from smira/533-ignore-contents-failures
...
When contents generation fails, don't bail out
2017-03-31 16:38:25 +03:00
Andrey Smirnov
7a5be6736d
When contents generation fails, don't bail out
...
This replaces `panic` which aborts aptly execution with warning
message on console. So aptly continues publishing actions, but
`Contents` indexes might be incomplete.
Error will be printed every time contents generation is triggered.
2017-03-31 00:57:18 +03:00
Andrey Smirnov
eb48460b7b
Update bash completion
2017-03-28 22:58:53 +03:00
Andrey Smirnov
85b4a8b1ae
Add new option for detailed logging on dependency resolving
...
This adds command-line arg and config option, with option enabled
aptly is more verbose on internal depeendency resolving cycles:
```
Missing dependencies: file-rc (>= 0.8.16) [amd64], python:any (>= 2.7.1-0ubuntu2) [amd64], python3:any (>= 3.3.2-2~) [amd64], file-rc [amd64], perl (<< 5.17) [amd64], iptables-router (>= 1.2.3) [amd64], systemd [amd64], sgml-base (>= 1.26+nmu2) [amd64], sed (>= 4.1.2-8) [amd64]
Unsatisfied dependency: file-rc (>= 0.8.16) [amd64]
Unsatisfied dependency: python:any (>= 2.7.1-0ubuntu2) [amd64]
Unsatisfied dependency: python3:any (>= 3.3.2-2~) [amd64]
Unsatisfied dependency: file-rc [amd64]
Unsatisfied dependency: perl (<< 5.17) [amd64]
Unsatisfied dependency: iptables-router (>= 1.2.3) [amd64]
Unsatisfied dependency: systemd [amd64]
Injecting package: sgml-base_1.26+nmu4ubuntu1_all
Injecting package: sed_4.2.2-4ubuntu1_amd64
```
2017-03-28 22:58:07 +03:00
Andrey Smirnov
e6bad637fd
Merge pull request #532 from smira/530-bash-completion
...
Move bash completion to main aptly repo
2017-03-28 22:22:10 +03:00
Andrey Smirnov
47b5cc27c8
Move bash completion to main aptly repo
...
Fixes #530
Original repository: https://github.com/aptly-dev/aptly-bash-completion
2017-03-28 21:41:57 +03:00
Andrey Smirnov
ca16841223
Merge pull request #520 from seeraven/feature_skip_existing_packages_latest
...
Add option -skip-existing-packages to mirror update to speed up download queue setup
2017-03-28 21:39:36 +03:00
Andrey Smirnov
800c5c1e06
Merge branch 'master' into feature_skip_existing_packages_latest
2017-03-28 21:26:28 +03:00
Andrey Smirnov
7fd8bd0171
Merge pull request #531 from smira/release-1.0.0-preparation
...
Prepare for new release, update build instructions [ci skip]
2017-03-28 00:17:08 +03:00
Andrey Smirnov
4707efe4d6
Prepare for new release, update build instructions [ci skip]
2017-03-28 00:15:41 +03:00
Andrey Smirnov
8ae61f9448
Merge pull request #523 from smira/versioning
...
Automatic versioning for aptly
2017-03-27 16:02:25 +03:00
Andrey Smirnov
a138d0111d
Update README to use go install which will build with version
2017-03-26 19:24:32 +03:00
Andrey Smirnov
af1adb44ce
Remove -x flag for go install
2017-03-26 19:23:53 +03:00
Clemens Rabe
4ddf85bbc1
Rebuilt man page with patched ronn.
2017-03-25 08:52:08 +01:00
Clemens Rabe
9978595c59
Merge branch 'master' into feature_skip_existing_packages_latest
2017-03-25 08:50:24 +01:00
Andrey Smirnov
2943422d5d
Automatic versioning for aptly
...
New version format:
* for releases, `x.y.z` (follows tag without leading `v`)
* for nightly builds, `x.y.z+N+hash` (previous version, not the upcoming one)
This means that each nightly build `aptly` would report
correct version now.
Version is now complied into the aptly binary, system tests
automatically check for current version, no need to update them
anymore.
2017-03-25 00:18:45 +03:00
Andrey Smirnov
91219e3a0a
Merge pull request #522 from smira/man-gen-rework
...
Rework man generator with new `go install` format
2017-03-24 21:50:28 +03:00
Andrey Smirnov
7f8db9087a
Rework man generator with new go install format
...
With previous version, `go install` automatically picks up
package `man` and installs `gen.go` as `main` to the $GOPATH/bin which
is not what is expected. Move man page generator to separate
private folder.
2017-03-24 21:07:38 +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
92c844b8ac
Merge pull request #517 from smira/goreportcard
...
Fix goreportcard badge [ci skip]
2017-03-23 18:33:00 +03:00
Andrey Smirnov
2b56a3937b
Fix goreportcard badge [ci skip]
2017-03-23 18:32:00 +03:00
Andrey Smirnov
9cea9b6470
Merge pull request #512 from smira/500-xdg-open
...
Customize viewer per platform
2017-03-23 18:28:24 +03:00
Andrey Smirnov
e3e68b9f22
Customize viewer per platform
2017-03-23 17:12:34 +03:00
Andrey Smirnov
d56839664d
Merge pull request #513 from smira/gometalinter
...
Switch to gometalinter
2017-03-23 16:32:33 +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
53e59d3765
Merge pull request #509 from smira/golint-govet
...
Add govet/golint into Travis CI build
2017-03-22 22:14:30 +03:00
Andrey Smirnov
11d828b3b1
Add govet/golint into Travis CI build
...
Fix current issues
2017-03-22 21:49:16 +03:00
Andrey Smirnov
07472bec50
Merge pull request #511 from smira/dep-experiment
...
Convert to regular Go vendor + `dep` tool
2017-03-22 20:34:36 +03:00
Andrey Smirnov
f737787c01
Fix up system tests
2017-03-22 19:56:23 +03:00
Andrey Smirnov
c6c1012330
Conver to regular Go vendor + dep tool
2017-03-22 19:24:06 +03:00
Andrey Smirnov
070347295e
Merge pull request #505 from smira/rmedaer-master
...
Added '.xz' extension in HTTP download.
2017-03-17 00:47:33 +03:00
Andrey Smirnov
acd8d4a6ea
Go 1.6 compatibility
2017-03-17 00:17:07 +03:00
Andrey Smirnov
c9768416ed
Fix up tests
2017-03-16 23:06:41 +03:00
Raphael Medaer
bfb9ffad1d
Added expected error on 'Packages.xz' for TestDownload[WithSources]Flat.
2017-03-16 22:41:25 +03:00
Raphael Medaer
9cfe1307e3
Added download tests for xz compression.
2017-03-16 22:41:25 +03:00
Raphael Medaer
db8595711b
Added '.xz' reader in HTTP download. This fixed issue when you try to mirror a distribution with only Packages.xz (example 'debian/experimental').
2017-03-16 22:41:25 +03:00
Andrey Smirnov
ce0001f94c
Merge pull request #504 from smira/go-1.8
...
Add Travis CI build on Go 1.8
2017-03-16 22:16:01 +03:00
Andrey Smirnov
b102562478
Fix up system test for Go 1.8
2017-03-16 20:58:21 +03:00
Andrey Smirnov
69cbe10690
Add Travis CI build on Go 1.8
2017-03-16 18:46:03 +03:00
Andrey Smirnov
e3e4ea91bd
Merge pull request #502 from smira/aws-sdk-bump
...
Bump Go AWS SDK to the latest version
2017-03-16 18:45:26 +03:00
Andrey Smirnov
02c582e227
Merge pull request #503 from smira/pr-template-update
...
Add bash completion to PR template [ci skip]
2017-03-16 01:31:52 +03:00
Andrey Smirnov
6e96cd29dc
Add bash completion to PR template [ci skip]
2017-03-16 01:30:00 +03:00
Andrey Smirnov
17044f43dc
Bump Go AWS SDK to the latest version
...
This seems to fix `NotImplemented` S3 error
2017-03-16 01:28:44 +03:00
Andrey Smirnov
5d3b170ffc
Merge pull request #497 from smira/repo-create-from-snap
...
Implement new command `aptly repo create ... from snapshot ...`
2017-03-16 01:12:09 +03:00
Andrey Smirnov
a0f7b2242d
Merge pull request #499 from sobczyk/dbgsym
...
include dbgsym packages
2017-03-14 22:51:24 +03:00
Szymon Sobik
b8e7ad9022
update changes unit test to account for dbgsym matching
2017-03-08 10:32:11 +01:00
Szymon Sobik
1b80d55ea4
since -dbgsym is for each binary package use that for PackageQuery
2017-03-08 10:31:44 +01:00
Szymon Sobik
a0832adfa5
include dbgsym packages
...
fixes #331
2017-03-07 17:06:59 +01:00
Andrey Smirnov
f17d398e8f
Implement new command aptly repo create ... from snapshot ...
2017-03-04 00:12:18 +03:00
Andrey Smirnov
bc3b2ed5a8
Merge pull request #495 from apachelogger/systemd-activation
...
support systemd activation for `api serve`
2017-03-03 22:55:47 +03:00
Harald Sitter
07cf8925f9
support systemd activation for api serve
...
systemd has a feature called socket activation where initially systemd
manages and listens on ports/uds and only invokes a service when traffic
appears. to then hand over the involved sockets, systemd will pass the
relevant FDs into the invoked process and defines them in the environment.
use coreos/go-systemd to grab the active listeners passed by systemd and
use them to serve the api routes. only one listener may be specified right
now as we also only support one -listen argument for the binary.
this allows admins to craft a systemd socket and service file for aptly
where systemd manages the socket, its permission and its live time, and
lazy start aptly when needed.
2017-03-01 11:12:10 +01:00
Andrey Smirnov
564ebf3130
Merge pull request #493 from apachelogger/api-over-socket
...
support serving the API over unix domain socket
2017-02-28 23:41:09 +03:00
Harald Sitter
dbee214259
support serving the API over unix domain socket
...
`unix://$PATH` as listen argument will bind aptly to a unix domain socket
rather than TCP.
This allows binding the API to a UDS rather than a port.
Since aptly has no concept of authentication or any amount of high level
API hardening one needs to bottle it up in some other manner. Binding
to a localhost port is often a step in the right direction, ultimately is
still a scary insecure setup as any user on that host getting compromised
would mean that the entire archive is compromised as well.
UDS on the other hand are basically files and have their access managed
by regular file permission. As such, binding to a socket is in fact
the least insecure way to listen as you'd have to explicitly open up the
socket permissions to an access qualified group. In the most conservative
scenario that means no one but the aptly user can talk to the API, in a
more practical setup apache might get access as well and proxy the UDS
with authentication or limited to GET operations.
Using UDS allows reducing the attack surface of the API server while
preserving all the flexibility.
2017-02-28 09:58:39 +01:00
Andrey Smirnov
6267c5cb25
Merge pull request #490 from smira/contents-low-footprint
...
Use temporary LevelDB to store contents index
2017-02-27 17:26:11 +03:00
Andrey Smirnov
4c06e26d85
Throttle compaction on temporary DB
2017-02-23 01:01:17 +03:00
Andrey Smirnov
f2dc4eeec9
Generating contents indexes via temporary LevelDB
2017-02-21 19:09:51 +03:00
Andrey Smirnov
f86e6ebf1f
Merge pull request #491 from charz/master
...
Fix URL path for Swift.
2017-02-17 00:37:47 +03:00
Charles Hsu
0d208c93bc
Merge branch 'master' of https://github.com/smira/aptly
2017-02-16 23:14:02 +08:00
Charles Hsu
485f311498
Fix URL path for Swift.
2017-02-16 23:09:18 +08:00
Andrey Smirnov
46b0d637e2
Merge pull request #484 from jola5/master
...
Abort serve command if rootDir is inaccessible
2017-02-15 23:54:42 +03:00
jola5
5a71847b7f
Simplify test implementation
2017-02-15 20:18:47 +01:00
jola5
38a9917815
Handle dependencies in gomfile
2017-02-15 20:18:47 +01:00
jola5
4456f8da57
Refactor
2017-02-15 20:18:47 +01:00
jola5
970b1a424a
Fix bugged implementation
2017-02-15 20:18:47 +01:00
jola5
edffa24658
Test startup checks for serve command
2017-02-15 20:18:47 +01:00
jola5
3040e7360a
Fix golang.org/x/sys/unix dependency issue
2017-02-15 20:18:47 +01:00
jola5
b948180b4e
Abort serve command if rootDir is inaccesible
2017-02-15 20:18:47 +01:00
Andrey Smirnov
f58d2627c1
Add temporary DB and prefix methods to Storage
2017-02-14 02:26:32 +03:00
Andrey Smirnov
ab0d77f6f9
Merge pull request #488 from smira/empty-filters
...
Allow filter to be empty for `aptly * search` commands
2017-02-14 01:43:46 +03:00
Andrey Smirnov
33d6cd8c0a
Allow filter to be empty for aptly * search commands
...
Empty filter implies "select all packages".
2017-02-10 23:07:06 +03:00
Andrey Smirnov
4eef4f1803
Merge pull request #481 from smira/data-tar-gz-as-tar
...
Add workaround for reading data.tar.gz as data.tar
2017-01-24 20:19:50 +03:00
Andrey Smirnov
c75d4c749c
Add workaround for reading data.tar.gz as data.tar
...
It seems that in the wild there are .deb package which have
`data.tar.gz` which is actually `.tar` archive.
Add magic detection based on signature.
2017-01-24 19:30:53 +03:00
Andrey Smirnov
c8a1b9a1f0
Merge pull request #482 from smira/fix-travis
...
Fixing Travis build
2017-01-24 19:27:58 +03:00
Andrey Smirnov
d8d8973ad5
Fixing Travis build
2017-01-24 18:56:01 +03:00
Andrey Smirnov
d1ded5c224
Merge pull request #480 from smira/man-generator
...
Add `make` automation to re-generate man page [ci skip]
2017-01-20 23:55:22 +03:00
Andrey Smirnov
155a801bc1
Add make automation to re-generate man page [ci skip]
...
This also updates man page with latest changes
2017-01-20 23:53:00 +03:00
Andrey Smirnov
6212b39264
Merge pull request #475 from jola5/master
...
Support a vertical graph layout in addition to the existing horizontal
2017-01-20 23:41:56 +03:00
jolo
92116072c2
Fix and enable broken graph layout tests
2017-01-20 02:19:45 +01:00
jolo
b0ab39e07f
Manually undo unintended changes
2017-01-20 02:19:44 +01:00
jola5
4bf27d1dae
Merge branch 'master' into master
2017-01-19 23:07:49 +01:00
Andrey Smirnov
207ebffbb8
Merge pull request #472 from sliverc/print_sources
...
Print sources details of snapshots and published repositories
2017-01-19 01:05:53 +03:00
Andrey Smirnov
b0dd83335f
Merge branch 'master' into print_sources
2017-01-19 00:50:13 +03:00
Andrey Smirnov
8df6457931
Merge pull request #478 from smira/476-sorted-paths
...
Sort paths when generating checksums for `Release`/`InRelease`
2017-01-19 00:28:42 +03:00
Andrey Smirnov
7d2a396b27
Merge pull request #474 from apachelogger/support-graph.dot
...
Allow requesting the unrendered dot graph from the graph endpoint
2017-01-18 23:53:42 +03:00
Andrey Smirnov
d5df049630
Sort paths when generating checksums for Release/InRelease
2017-01-18 23:50:22 +03:00
jolo
7c62a706c4
Disable tests failing due to inappropriate test data
2017-01-17 01:04:07 +01:00
jolo
96948d6f18
Basic test of graph layout
2017-01-17 00:46:51 +01:00
jolo
43e6498713
Add me to authors
2017-01-16 22:39:47 +01:00
jolo
91561b40f6
Change 'vertical' argument to a more generic 'layout', fix api
2017-01-16 22:13:13 +01:00
jolo
0e8ea6363a
Support vertical graph layouts
2017-01-14 02:18:56 +01:00
Harald Sitter
345fa02fdc
Allow requesting the unrendered dot graph from the graph endpoint
...
When api/graph.{dot,gv} is requested the raw string for dot gets returned.
This allows client-side rendering rather than server-side. It also makes
the optional dependency on graphivz for dot unnecessary to use the graph
endpoint.
2017-01-13 12:57:42 +01:00
Oliver Sauder
064adbae57
generate aptly.1 man page with patched ronn
2017-01-12 13:23:21 +01:00
Oliver Sauder
ab458f4dfc
Updated aptly man page and authors
2017-01-10 11:14:09 +01:00
Oliver Sauder
0fdee9cbf6
Added publish show command
2017-01-10 10:59:07 +01:00
Oliver Sauder
50e3e93166
print snapshot sources in snapshot show command
2017-01-09 17:29:01 +01:00
Andrey Smirnov
570835227b
Merge pull request #470 from smira/templates
...
Add PR and issue templates
2016-12-30 17:07:54 +03:00
Andrey Smirnov
781c22e256
Add PR and issue templates
2016-12-30 00:11:45 +03:00
Andrey Smirnov
babccfa21f
Merge pull request #469 from smira/code-of-conduct
...
Add Contributor Covenant Code of Conduct [ci skip]
2016-12-29 00:03:35 +03:00
Andrey Smirnov
891113717e
Add Contributor Covenant Code of Conduct [ci skip]
2016-12-29 00:01:17 +03:00
Andrey Smirnov
bfb9045fa9
Merge pull request #465 from SHyx0rmZ/allow-empty-repo-edits-in-api
...
Allow comment and defaults to be empty when editing a repo through the API
2016-12-08 18:26:45 +03:00
Patrick Pokatilo
1c6b174b8a
Make comment and defaults nullable in repo edit
2016-12-08 15:45:19 +01:00
Patrick Pokatilo
fb27fb01ea
Allow comment and defaults to be empty when editing a repo through the API
2016-12-08 02:14:31 +01:00
Andrey Smirnov
b6327ecc43
Merge pull request #463 from sliverc/download_tries
...
Added --max-tries option to mirror update command
2016-11-29 17:12:36 +03:00
Oliver Sauder
af71b9541c
Fixing typo
2016-11-29 09:00:16 +01:00
Oliver Sauder
f31b5ec3f8
Adjusted test with new maxTries param for download
2016-11-28 17:02:24 +01:00
Oliver Sauder
6becd5a3aa
Added max-tries flag for mirror update
2016-11-28 17:02:24 +01:00
Andrey Smirnov
653255c728
Merge pull request #462 from smira/goxc-cleanup
...
Fix up build for recent versions of Go
2016-11-28 18:19:42 +03:00
Andrey Smirnov
5f0ce38161
Fix compression test for Go 1.7+
2016-11-28 17:14:36 +03:00
Andrey Smirnov
d100033b46
Fix up build for recent versions of Go
...
Forbid broken goxc tasks.
2016-11-28 16:37:47 +03:00
Andrey Smirnov
d008cabf07
Add link to aptly_api_cli by @TimSusa
2016-11-16 02:27:01 +03:00
Andrey Smirnov
f3214144a4
Merge pull request #458 from sliverc/travis-fix2
...
Make Travis CI be able to run on forks
2016-11-15 22:21:52 +03:00
Oliver Sauder
d41841b84a
Make Travis CI be able to run on forks
2016-11-15 16:19:55 +01:00
Andrey Smirnov
2a95e0eb1b
Merge pull request #441 from ZettaIO/v3-auth
...
Identity v3 support for Swift
2016-11-11 00:19:06 +03:00
Andrey Smirnov
81f8ab2691
Merge pull request #433 from Pryz/master
...
Add TubeMogul Puppet module to README.rst
2016-11-09 23:55:28 +03:00
Andrey Smirnov
4e61db8d0f
Fix man page (help) for aptly package show.
2016-11-09 23:07:41 +03:00
Andrey Smirnov
273d4cfa1b
Merge pull request #449 from adfinis-forks/bug_415_memoryhandling
...
only create bzip file if needed. #415
2016-11-09 22:55:08 +03:00
Andrey Smirnov
d290950d4f
Merge pull request #453 from sliverc/update_leveldb
...
Updating goleveldb dependency
2016-11-09 22:52:29 +03:00
Oliver Sauder
2ade5b8a7f
Updating leveldb fixing memory usage issue
...
See fix for issue https://github.com/syndtr/goleveldb/issues/138
2016-11-03 16:49:36 +01:00
Oliver Sauder
fcd4429370
only create bzip file if needed. #415
2016-10-13 13:48:28 +02:00
Einar Forselv
8e62620880
Fixing tests after adding v3 swift auth
2016-09-14 20:53:01 +02:00
Einar Forselv
511fb439ac
Identity v3 support for Swift
...
ncw/swift was bumped to latest version
2016-09-14 15:29:11 +02:00
Andrey Smirnov
34ea7e8d61
Merge pull request #418 from btkostner/test-fix
...
update unit tests
2016-08-22 22:25:37 +03:00
Julien Fabre
543c986885
Add TubeMogul Puppet module to README.rst
2016-08-08 09:20:28 -07:00
Blake Kostner
f939532461
added exit code 2 for go 1.5 support
2016-06-22 21:59:56 -07:00
Blake Kostner
aa4e225455
fix unit tests
2016-06-22 21:00:51 -07:00
Andrey Smirnov
65541a1df2
Fix system tests.
2016-05-16 13:02:00 +03:00
Andrey Smirnov
0a74b50a12
Merge branch 'dstelter-master'
2016-05-16 12:06:29 +03:00
Andrey Smirnov
902c6487da
Merge branch 'master' of https://github.com/dstelter/aptly into dstelter-master
2016-05-16 12:06:00 +03:00
Andrey Smirnov
1d5b7f59cf
Update system tests.
2016-05-16 11:38:20 +03:00
Daniel Stelter-Gliese
1c45c79cc1
Allow overriding architecture info from Release file
...
Adds a flag -force-architectures to ignore missing architectures from
mirrors. This flag can be used in cases where the mirrored repository
does not provide an "Architecture: " line.
Example Release file:
http://mitaka-jessie.pkgs.mirantis.com/debian/dists/jessie-mitaka-backports/Release
2016-05-16 03:25:00 +02:00
Andrey Smirnov
85c5aeddae
Merge pull request #391 from karras/master
...
fix missing comma in man page example
2016-04-29 17:01:46 +03:00
Michael Hofer
a95e409f52
fix missing comma in man page example
2016-04-29 09:57:06 +02:00
Andrey Smirnov
53b571d6fc
Attempt to fix the build.
2016-04-25 15:13:50 +03:00
Andrey Smirnov
7a8af044ee
0.9.8~dev version.
2016-04-21 12:24:36 +03:00
Andrey Smirnov
a667744502
Updte system tests.
2016-04-18 13:16:34 +03:00
Andrey Smirnov
aa53b8da15
Go 1.6.
2016-04-18 12:47:00 +03:00
Andrey Smirnov
52f7c83f95
Release 0.9.7.
2016-04-18 12:30:36 +03:00
Andrey Smirnov
d7665119e4
Few more fixes.
2016-03-28 13:44:19 +03:00
Andrey Smirnov
587086beb4
Misc style and simple mistakes fixes.
2016-03-28 13:34:05 +03:00
Andrey Smirnov
644d24d1cc
Attempt to lower memory usage when publishing with contents.
2016-03-28 13:28:26 +03:00
Andrey Smirnov
2fe8cfdc12
Allow credentials for S3 SigV2 to be specified in config once again. #356
2016-03-28 12:52:50 +03:00
Andrey Smirnov
2ecd933d50
Merge pull request #372 from amalakar/add_sbt_aptly
...
Add link to scala sbt plugin
2016-03-27 23:02:15 +03:00
Andrey Smirnov
90ea1111e2
Merge pull request #371 from smira/s3-list-fix
...
Replace object listing with SDK-standard iteration.
2016-03-27 23:01:53 +03:00
Andrey Smirnov
165a1c53b5
Merge pull request #368 from smira/225-duplicates-package-search
...
Fix package search missing duplicate packages. #225
2016-03-27 23:01:38 +03:00
Arup Malakar
876935050a
Add link to scala sbt plugin
2016-03-26 10:35:32 -07:00
Andrey Smirnov
d9a1299f6b
Replace object listing with SDK-standard iteration.
2016-03-24 13:04:16 +03:00
Andrey Smirnov
ff52d2655a
Fix package search missing duplicate packages. #225
...
Implement package list with duplicate entries, use it when
initiating search from PackageCollection.
2016-03-22 12:23:13 +03:00
Andrey Smirnov
bc438ff694
Add @bentoi and @geofft to AUTHORS. [ci skip]
2016-03-20 22:12:28 +03:00
Andrey Smirnov
0db3cac281
Merge pull request #366 from geofft/signing
...
gpg: Sign with SHA-256 for compatibility with APT 1.2.7
2016-03-20 22:10:48 +03:00
Andrey Smirnov
9ed6e8dbbd
Merge pull request #367 from bentoi/mkdir_mask_bug
...
Fixed mkdir mode from 755 to 777
2016-03-20 22:10:32 +03:00
Andrey Smirnov
7294241c08
Merge branch 's3-sigv2-debug'
2016-03-20 22:02:03 +03:00
Andrey Smirnov
60cca0245b
Fix system tests.
2016-03-20 22:01:41 +03:00
Andrey Smirnov
75b860e0b1
Support SigV2 and S3 debug for publishing.
2016-03-20 20:11:19 +03:00
Benoit Foucher
7f5a7323a6
Fixed mkdir mode from 755 to 777
2016-03-18 09:37:18 +00:00
Geoffrey Thomas
1069458aee
gpg: Sign with SHA-256 for compatibility with APT 1.2.7
2016-03-15 17:04:15 -04:00
Andrey Smirnov
76edf9649b
Update goleveldb with latest fix.
2016-03-15 12:47:47 +03:00
Andrey Smirnov
8b0d293c6a
Update public key ID for repo.aptly.info
2016-03-15 12:30:32 +03:00
Andrey Smirnov
281d0dd68d
Merge branch 'apachelogger-issue/361'
2016-03-10 18:42:49 +03:00
Andrey Smirnov
cfaa8f3881
Fix system tests.
2016-03-10 18:42:40 +03: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
b966b2eabf
Fix HOME expansion.
2016-03-02 13:56:11 +03:00
Andrey Smirnov
a4e573bb07
Fix system tests after squeeze->squeeze-lts move.
2016-03-02 13:25:12 +03:00
Andrey Smirnov
067d197dac
Update to latest version of goleveldb.
2016-03-01 12:53:25 +03:00
Andrey Smirnov
18d04c7977
Fix failure not being reported from API. #290
2016-03-01 12:52:54 +03:00
Andrey Smirnov
a29453805c
Publish under root using :. explicit prefix. #339
2016-03-01 12:34:59 +03:00
Andrey Smirnov
05b1296144
Merge pull request #354 from smira/313-sha512
...
Support for SHA-512 hashes on publishing/downloads.
2016-02-18 13:06:44 +03:00
Andrey Smirnov
29e33069aa
Merge pull request #355 from smira/remove-s3-retrying-client
...
Remove S3 retrying client which is leftover from goamz times.
2016-02-18 13:05:46 +03:00
Andrey Smirnov
ee05bb23c9
Fix Swift tests for SHA512.
2016-02-18 12:29:12 +03:00
Andrey Smirnov
505da096e6
Remove S3 retrying client which is leftover from goamz times.
...
Also workaround go vet warnings in s3/sever_test.go
2016-02-18 12:03:04 +03:00
Andrey Smirnov
77be7b9e3b
Support for SHA-512 hashes on publishing/downloads.
2016-02-18 12:01:51 +03:00
Andrey Smirnov
ffafed472c
Merge pull request #347 from smira/skip-contents
...
Make 'skipContents' configurable in API. #345
2016-02-14 15:06:49 +03:00
Andrey Smirnov
8c9cc41099
Fix nil pointer dereference on S3 publishing. #338
2016-02-14 14:52:49 +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
64b04c2764
Merge pull request #346 from smira/api-no-lock-fix
...
Flush collection contents on each DB unlock in API.
2016-02-14 14:13:52 +03:00
Andrey Smirnov
d6c7a9a89c
Flush collection contents on each DB unlock in API.
...
See #343
2016-02-13 13:36:35 +03:00
Andrey Smirnov
0339f0fe23
Allow additional options for goxc [ci skip]
2016-02-11 12:46:09 +03:00
Andrey Smirnov
fcedaa3fc5
Merge branch 'bitglue-aws_sdk' #344
2016-02-09 12:00:16 +03:00
Andrey Smirnov
7acfc84c9d
Add @bitglue to AUTHORS. [ci skip]
2016-02-09 11:47:29 +03:00
Andrey Smirnov
02b937ad17
Fix unit-tests.
2016-02-08 14:42:30 +03:00
Andrey Smirnov
7ad1c1ad17
Fix dependencies. #344
2016-02-04 11:05:37 +03:00
Phil Frost
640bd2b530
Use official AWS SDK; support STS credentials
...
Now that there's an official Go AWS SDK from Amazon, use that instead of
goamz. goamz isn't getting much love these days.
Implement support for STS credentials, as in assumed roles and EC2
instance profiles. The configuration is extended to support a session
token, though I'm not sure why anyone would put temporary credentials in
a configuration file. More likely, no credentials will be explicitly
configured at all, and they will be discovered through the standard SDK
mechanisms described at
<https://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs >.
Resolves #342 .
2016-02-03 15:13:01 -05:00
Andrey Smirnov
06149ef2bb
Merge pull request #340 from bryanhong/master
...
another example of aptly in Docker
2016-02-03 17:44:00 +03:00
Bryan Hong
b271e8fe31
another example of aptly in Docker
2016-02-03 00:33:03 -08:00
Andrey Smirnov
efc6ab27db
goxc-based build system
2016-02-02 13:03:18 +03:00
Andrey Smirnov
05c063839d
Update to smira/lzma with import path fixed.
2016-02-02 11:56:13 +03:00
Andrey Smirnov
fd30b37a0e
Bump version to 0.9.7~dev.
2016-01-24 23:15:23 +03:00
Andrey Smirnov
9738687116
Add -no-lock to aptly api serve to excercise locking.
2016-01-24 23:02:46 +03:00
Andrey Smirnov
219315c01d
Fix one more system test on version.
2016-01-24 22:45:53 +03:00
Andrey Smirnov
62f44e53fd
Version bump to 0.9.6.
2016-01-24 21:48:33 +03:00
Andrey Smirnov
b25f8e438c
Re-generate man [ci skip]
2016-01-24 21:46:45 +03:00
Andrey Smirnov
f14fce01e9
Merge pull request #300 from vincentbernat/fix/api-serve-lock
...
Add a flag to unlock database after each API request
2016-01-24 19:53:17 +03:00
Andrey Smirnov
a790770a19
Add @x539 to AUTHORS. [ci skip]
2015-12-24 14:11:26 +03:00
Andrey Smirnov
7bb052ac37
Fix unit-tests. #324
2015-12-24 14:08:37 +03:00
Andrey Smirnov
631fe44c6b
Security: don't download files we don't have checksums for. #324
2015-12-22 13:52:53 +03:00
Andrey Smirnov
ca319c804e
Print warning message to stderr. #311
2015-12-03 13:18:45 +03:00
Andrey Smirnov
3e368690fd
Stop building Go 1.3, only Go 1.4 supported.
2015-12-03 12:47:23 +03:00
Andrey Smirnov
339bf0a90b
Add new comitters to AUTHORS.
2015-12-03 12:23:29 +03:00
Andrey Smirnov
c5b48f0362
Merge pull request #307 from vincentbernat/fix/defer-lock
...
Fix lock handling in cache flusher for API
2015-12-03 12:12:35 +03:00
Andrey Smirnov
d5f50732c1
Merge pull request #320 from paul-krohn/master
...
add diagnostic output
2015-12-03 12:11:25 +03:00
Paul Krohn
9d973aeceb
shorten regex to match generated error only
2015-11-26 00:03:51 +00:00
Paul Krohn
7caeac7515
add diagnostic output
2015-11-25 23:48:47 +00:00
Vincent Bernat
7f6a52019f
Add a flag to unlock database after each API request
...
After the first API request, the database was locked as long as the API
server is running. This prevents a user to also use the command-line
client. This commit adds a new flag `-no-lock` that will close the
database after each API request.
Closes #234
2015-10-02 20:04:48 +02:00
Vincent Bernat
16101b56fe
Fix lock handling in cache flusher for API
...
Unlocking the different elements in cache flusher was deferred to the
end of the function. Unfortunately, being a for loop wrapped in a
goroutine, deferred were never executed.
2015-10-02 19:59:47 +02:00
Andrey Smirnov
a294a91685
Cache filepath list in s3.LinkFromPool instead of doing Get checks #297
...
This speeds up publishing with many files already present in the pool
2015-10-01 14:02:32 +03:00
Andrey Smirnov
cf644289a3
Lower limit for goleveldb open files cache to 256 #260
2015-10-01 12:37:43 +03:00
Andrey Smirnov
33c905ce02
Upgrade goleveldb to the latest version. #260
2015-10-01 12:27:19 +03:00
Andrey Smirnov
8fdc222196
Fix retry policy. #297
2015-09-24 13:21:13 +03:00
Andrey Smirnov
1e4d825d36
Disable keep alives, fix return on last retry. #297
2015-09-24 12:21:31 +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
08bc5ac934
Fix system tests for Go 1.5.
...
Some error strings in Go 1.5 have changed. Until we have something
better for that, use string replace.
2015-09-22 12:40:42 +03:00
Andrey Smirnov
c160cbccc7
Fix mirror system tests.
2015-09-22 11:42:05 +03:00
Andrey Smirnov
c473a5cba8
Really randomize port in Swift unit-tests.
2015-09-22 11:25:10 +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
b95b3473bf
Switch to Travis CI new build infra.
2015-09-21 13:58:17 +03:00
Andrey Smirnov
f1d5caab8b
Enable build for Go 1.5.
2015-09-20 13:14:33 +03:00
Andrey Smirnov
6a973554ad
Update goar to the latest version. #275
2015-09-20 13:13:18 +03:00
Andrey Smirnov
698e239f45
Include all aptly contributors in man section AUTHORS.
2015-07-04 13:16:15 +03:00
Andrey Smirnov
205297d0b8
Update license to mention that there are many contributors.
2015-07-04 13:06:58 +03:00
Andrey Smirnov
ba4669a9c4
Man page for package display format in search commands. #254
2015-07-04 13:02:33 +03:00
Andrey Smirnov
8bda799545
Support for Go-style templating in format for aptly * search. #254
2015-07-02 12:19:41 +03:00
Andrey Smirnov
6c28e3aca8
Update flat repository.
2015-06-26 13:24:31 +03:00
Andrey Smirnov
901babe500
Fix test.
2015-06-26 13:15:11 +03:00
Andrey Smirnov
0c6f38ab08
Fix system test.
2015-06-26 13:09:57 +03:00
Andrey Smirnov
a131d6093c
Fix unit-test.
2015-06-26 12:56:02 +03:00
Andrey Smirnov
974cec3e73
Fix publish tests.
2015-06-26 03:14:22 +03:00
Andrey Smirnov
442c5f090f
Fix package tests.
2015-06-26 03:08:22 +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
767c7ca0db
Merge branch '261-fix-multiline-fields'
2015-06-20 19:04:06 +03:00
Andrey Smirnov
dd27aad751
Add @sobczyk to the list of AUTHORS. #266
2015-06-20 19:03:41 +03:00
Andrey Smirnov
ddfdeaf2d0
Merge pull request #266 from sobczyk/master
...
Fix EOF error during mirror update.
2015-06-20 18:59:21 +03:00
Szymon Sobik
4c51350517
fix EOF during mirror update
...
see http://stackoverflow.com/a/19006050
2015-06-19 12:36:28 +02:00
Andrey Smirnov
40e48c963a
Revert "Update publish tests, as some multiline fields are actually multiline."
...
This reverts commit a030e24b96 .
2015-06-18 03:33:09 +03:00
Andrey Smirnov
c44d347540
Don't need to manually insert \n, multiline fields are handled correctly.
2015-06-18 03:32:35 +03:00
Andrey Smirnov
4a54bff225
Add missing return statements.
2015-06-18 03:32:23 +03:00
Andrey Smirnov
e39736153d
Update package tests.
2015-06-18 03:29:12 +03:00
Andrey Smirnov
f032196d70
Mirror has been updated.
2015-06-18 02:15:39 +03:00
Andrey Smirnov
a030e24b96
Update publish tests, as some multiline fields are actually multiline.
2015-06-18 02:13:15 +03:00
Andrey Smirnov
c2993c6691
Use other port that doesn't interfere with PostgreSQL.
2015-06-18 01:52:37 +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
38dfe3435a
For plusWorkaround, correctly handle cleanup, deletions. #239
2015-05-29 02:13:59 +03:00
Andrey Smirnov
313c71dff6
Rework s3 retry policy by copying sources from goamz :( #255
2015-05-29 01:47:02 +03:00
Andrey Smirnov
a88d92436f
Fix system test for mirrors list.
2015-05-29 00:15:54 +03:00
Andrey Smirnov
9d298dee51
Remove deadline timeout. #255
2015-05-28 12:52:29 +03:00
Andrey Smirnov
9abc772b16
Change our flat repo for testing, old one is dead.
2015-05-28 12:14:36 +03:00
Andrey Smirnov
2f1df39204
Use S3 retrying transport. #255
2015-05-28 11:45:37 +03:00
Andrey Smirnov
0f328ec1fe
Seed Python random generator on start.
2015-05-28 11:40:11 +03:00
Andrey Smirnov
78b6d6ca7b
Send error messages to stderr. #249
2015-05-28 11:30:35 +03:00
Andrey Smirnov
5cd3c33854
Update goamz library to latest version. #253
2015-05-28 11:21:57 +03:00
Andrey Smirnov
9af76843b5
Fix README formatting. [ci skip]
2015-05-28 11:17:01 +03:00
Andrey Smirnov
53506124a4
Add integrations to README, aptly API CLI. [ci skip]
2015-05-28 11:12:55 +03:00
Andrey Smirnov
9bbf9c7b13
Merge branch 'graph-output-filename'
2015-05-18 00:39:41 +03:00
Andrey Smirnov
82e6e8242e
Update man page. #242
2015-05-18 00:39:01 +03:00
Andrey Smirnov
2bf11a556c
Update custom output filename generation. #242
2015-05-18 00:38:15 +03:00
Andrey Smirnov
c62828bf14
Merge branch 'graph-specific-output-filename' of https://github.com/gdbdzgd/aptly into graph-output-filename
2015-05-18 00:30:41 +03:00
Andrey Smirnov
b53cf7e710
Merge pull request #246 from GLolol/typofix
...
Typo fix (depdency -> dependency)
2015-05-18 00:22:42 +03:00
Andrey Smirnov
780277d0a6
Build on go 1.4 as well.
2015-05-14 12:51:01 +03:00
Andrey Smirnov
a6f5631542
Fix system tests.
2015-05-14 12:27:01 +03:00
Andrey Smirnov
52b1501ec0
Update to new debian archive keyring.
2015-05-14 12:26:50 +03:00
James Lu
c9339f5cca
Typo fix (depdency -> dependency)
2015-05-11 18:01:21 -07:00
Andrey Smirnov
a9c23fb4aa
Fix silly bug with non-encodable value being encoded.
2015-04-26 09:02:40 +02:00
Andrey Smirnov
72e3eaebfe
Add optional notice.
2015-04-26 08:56:29 +02:00
Zhang, Guodong
f3bcaa6cfb
aptly graph specific output filename
...
https://github.com/smira/aptly/issues/241
modify: cmd/graph.go
Signed-off-by: Zhang, Guodong <gdzhang@linx-info.com >
2015-04-24 11:14:04 +08:00
Andrey Smirnov
1c8f1517f8
Update man. #218 [ci skip]
2015-04-17 01:26:37 +03:00
Andrey Smirnov
50ae34cc19
Create S3 with endpoint/multidel param from config. #218
2015-04-17 01:20:58 +03:00
Andrey Smirnov
8cc7d1345b
Support for new S3 configuration options: endpoint & multi del disabling. #218
2015-04-17 01:18:34 +03:00
Andrey Smirnov
0791c88a02
Support for custom endpoints and multi del disabling. #218
2015-04-17 01:16:50 +03:00
Andrey Smirnov
ba08ffe38b
Add dependency on xz-utils. #142
2015-04-14 23:16:41 +03:00
Andrey Smirnov
1bec1e4dc4
Use external binary 'xz' implementation. #142
2015-04-14 23:16:16 +03:00
Andrey Smirnov
bcf8074f31
Revert "Use Go native lzma implementation, so that there are no external dependencies. #142 "
...
This reverts commit 709e14ecc1 .
2015-04-10 22:24:45 +03:00
Andrey Smirnov
6a2d564eee
Revert "Add liblzma-dev to list of build dependencies in Travis. #142 "
...
This reverts commit 4651e41247 .
2015-04-10 22:09:56 +03:00
Andrey Smirnov
709e14ecc1
Use Go native lzma implementation, so that there are no external dependencies. #142
2015-04-10 22:09:18 +03:00
Andrey Smirnov
5b1f446a6b
Ignore empty 'Depends:' while parsing control file. #233
2015-04-10 21:10:53 +03:00
Andrey Smirnov
f41146c750
Revert "Build static binaries on !OS X. #142 "
...
This reverts commit d56ac81fd6 .
2015-04-06 00:18:25 +03:00
Andrey Smirnov
d56ac81fd6
Build static binaries on !OS X. #142
2015-04-05 22:52:08 +03:00
Andrey Smirnov
fb213ef6eb
Fix system tests. #142
2015-04-05 22:47:19 +03:00
Andrey Smirnov
933b019f71
Fix -skip-contents + system tests. #142
2015-04-05 21:55:41 +03:00
Andrey Smirnov
6293ca3206
Add -skip-contents flag. #142
2015-04-05 21:27:35 +03:00
Andrey Smirnov
d46d8de5f7
Make sure contents don't have duplicate package entries. #142
2015-04-05 21:12:25 +03:00
Andrey Smirnov
4e3284cd98
Check contents of contents index being generated. #142
2015-04-02 01:19:51 +03:00
Andrey Smirnov
10876b99f5
Check for contents file generation. #142
2015-04-02 01:00:28 +03:00
Andrey Smirnov
61d31ce7c0
Check that contents are generated on repo publish. #142
2015-04-02 00:49:08 +03:00
Andrey Smirnov
e0f284d68f
Check that contents files are generated. #142
2015-04-02 00:45:08 +03:00
Andrey Smirnov
df887d871b
Skipping contents generation. #142
2015-04-02 00:29:49 +03:00
Andrey Smirnov
99f6ffe1ca
Fix system test for content generation. #142
2015-04-02 00:29:49 +03:00
Andrey Smirnov
138f9f7994
Generate only .gz file for Contents index. #142
2015-04-02 00:29:49 +03:00
Andrey Smirnov
3886db9d4f
Merge pull request #231 from seaninspace/patch-1
...
Update import.go
2015-03-31 23:19:41 +03:00
Sean
b877e06a02
Update import.go
...
Add support for Automatic Debug Packages (.ddeb's)
2015-03-31 12:17:32 -07:00
Andrey Smirnov
38f4fc209b
Contents index support. #142
2015-03-31 00:08:23 +03:00
Andrey Smirnov
b223acdecb
Contents index generator. #142
2015-03-31 00:07:42 +03:00
Andrey Smirnov
cc8a87b448
Cached calculation of package contents. #142
2015-03-31 00:07:07 +03:00
Andrey Smirnov
ee3d414ed5
Don't use shared encodeBuffer, not safe for API mode.
2015-03-30 23:59:00 +03:00
Andrey Smirnov
d791aa0f15
Remove debugging output. #142
2015-03-30 23:54:36 +03:00
Andrey Smirnov
393ae8adbd
Regenerate man page. #163
2015-03-30 23:54:11 +03:00
Andrey Smirnov
7037c6be7e
Rename -output to -format. #163
2015-03-30 23:53:37 +03:00
Andrey Smirnov
c10645f4f2
Support custom output formats for aptly graph. #163
2015-03-30 20:26:05 +03:00
Andrey Smirnov
27da1015af
Test case for filters. #227
2015-03-30 19:56:53 +03:00
Andrey Smirnov
78b0fe0e90
Fix system tests.
2015-03-25 00:42:02 +03:00
Andrey Smirnov
4651e41247
Add liblzma-dev to list of build dependencies in Travis. #142
2015-03-24 23:35:24 +03:00
Andrey Smirnov
a6c40f3193
Getting contents from .deb files. #142
2015-03-24 22:09:36 +03:00
Andrey Smirnov
3e138fd6db
Add dependency on .xz and .lzma decompression. This introduces dependency on liblzma. #142
2015-03-24 22:09:03 +03:00
Andrey Smirnov
3c20b5472e
Tests for aptly repo include with per-repo uploaders.json. #71
2015-03-22 19:24:37 +03:00
Andrey Smirnov
8b782ce370
Support for per-repo uploader.json in aptly repo commands. #71
2015-03-22 19:02:20 +03:00
Andrey Smirnov
a160a39d53
-uploaders-file for aptly repo edit/create. #71
2015-03-22 18:48:17 +03:00
Andrey Smirnov
1c4b44e772
Uploaders to JSON transformation via String. #71
2015-03-22 12:39:37 +03:00
Andrey Smirnov
b4b03f2752
Update system tests. #71
2015-03-20 22:29:50 +03:00
Andrey Smirnov
1d21d3cfeb
Uploader.json from repo overrides global uploaders.json. #71
2015-03-20 22:29:11 +03:00
Andrey Smirnov
d2ce33e66a
Allow local repo to carry uploaders.json config. #71
2015-03-20 22:28:45 +03:00
Andrey Smirnov
f0fbb8259b
Document uploaders.json file in man. #71
2015-03-20 00:21:50 +03:00
Andrey Smirnov
962c4a842d
Additional tests for aptly repo include. #71
2015-03-20 00:18:32 +03:00
Andrey Smirnov
54e21afee7
Use uploaders.json in repo include. #71
2015-03-20 00:18:12 +03:00
Andrey Smirnov
cc3f5149c6
Return detailed error if uploaders deny upload. #71
2015-03-20 00:11:30 +03:00
Andrey Smirnov
c8713aa412
Fix bugs. #71
2015-03-19 23:58:48 +03:00
Andrey Smirnov
02a82f3545
Use relaxed config reader. #71
2015-03-19 23:54:35 +03:00
Andrey Smirnov
c573746896
Refactor to get Keys from Changes. #71
2015-03-19 01:36:39 +03:00
Andrey Smirnov
813b9593fa
Uploaders rules facility: controlling who can upload .changes. #71
2015-03-19 01:05:09 +03:00
Andrey Smirnov
bc68513708
Implementation of PackageLike interface for Changes. #71
2015-03-19 00:26:18 +03:00
Andrey Smirnov
c4692bec3d
Matching short/long GPG key IDs. #71
2015-03-19 00:25:54 +03:00
Andrey Smirnov
c53060d95a
Add system test on package restriction check. #71
2015-03-18 23:32:21 +03:00
Andrey Smirnov
22c656d18e
Style fix [ci skip]. #71
2015-03-18 23:27:21 +03:00
Andrey Smirnov
4d622e467c
Refactoring: make PackageQuery work on PackageLike objects (not necessarily Packages). #71
2015-03-18 23:25:20 +03:00
Andrey Smirnov
36326788b0
When importing package into local repo, verify that it matches package restriction based on .changes file. #71
2015-03-18 22:20:52 +03:00
Andrey Smirnov
782ac1a36a
ChangesFile can produce Query each package file should satisfy. #71
2015-03-18 22:19:12 +03:00
Andrey Smirnov
8ca07d9acd
Fix unit tests. #71
2015-03-18 22:10:49 +03:00
Andrey Smirnov
4a57fe3c39
Refactoring: make gpg verification return missing/good key IDs. #71
...
Eliminate "hint" on missing keys which doesn't apply to .changes.
Would be good to eventually stop using GPG and start calling golang.org/x/crypto/openpgp
2015-03-18 21:34:54 +03:00
Andrey Smirnov
7579f1998c
Fix system tests. #71
2015-03-17 01:09:09 +03:00
Andrey Smirnov
67a31d5eaa
Merge branch '71-changes-support'
2015-03-17 00:19:28 +03:00
Andrey Smirnov
5b9d287b62
Add aptly repo include to man. #71
2015-03-17 00:19:06 +03:00
Andrey Smirnov
775670181c
System tests for -ignore-signatures + -accept-unsigned. #71
2015-03-17 00:17:43 +03:00
Andrey Smirnov
2a3bd5546a
Unsigned files shouldn't be accepted. #71
2015-03-17 00:15:45 +03:00
Andrey Smirnov
197e230ef1
System tests: wrong signature. #71
2015-03-17 00:08:47 +03:00
Andrey Smirnov
c6eeac11a4
System test for wrong checkums. #71
2015-03-17 00:02:39 +03:00
Andrey Smirnov
90d3b623b4
Check file size as well as checksums. #71
2015-03-17 00:01:58 +03:00
Andrey Smirnov
a59c2ac859
Tests for file removal + missing files. #71
2015-03-16 23:55:47 +03:00
Andrey Smirnov
103fa5310f
First pack of system tests for aptly repo include. #71
2015-03-16 22:50:58 +03:00
Andrey Smirnov
71b7de7a63
Initialize empty verifier if -ignore-signatures is given to check for signature. #71
2015-03-16 22:49:41 +03:00
Andrey Smirnov
a937ebc744
First version aptly repo include command processing .changes files. #71
2015-03-15 21:30:54 +03:00
Andrey Smirnov
925882b253
Collect .changes file in directory hiearchy. #71
2015-03-15 21:26:58 +03:00
Andrey Smirnov
615a5ee3f9
Example of package upload with .changes file. #71
2015-03-15 21:21:23 +03:00
Andrey Smirnov
4a6d6a85f7
Remove unused error argument.
2015-03-15 20:06:59 +03:00
Andrey Smirnov
2937435960
Add missing commands api, config.
2015-03-15 18:44:43 +03:00
Andrey Smirnov
2f3b5f5a51
Refactor Changes structure, new method prepare to verify checksums and copy files. #71
2015-03-15 18:16:11 +03:00
Andrey Smirnov
5b4563f250
Simple CopyFile utility function. #71
2015-03-15 18:15:46 +03:00
Andrey Smirnov
5da4bde428
Fix reference to go-uuid.
2015-03-15 14:07:38 +03:00
Andrey Smirnov
42c4644be3
Move go-uuid to GitHub. No more code.google.com. RIP.
2015-03-15 14:06:40 +03:00
Andrey Smirnov
1845c493f4
Update mxk/flowcontrol package from Google Code to mxk/flowrate from GitHub.
2015-03-15 14:00:04 +03:00
Andrey Smirnov
8a0f754fe2
Snappy has moved, remove reference.
2015-03-15 13:51:37 +03:00
Andrey Smirnov
77bb4d423d
Update import path for gographviz.
2015-03-15 13:51:14 +03:00
Andrey Smirnov
1d483dc817
Update reference to gographviz (code.google.com is going to be shut down).
2015-03-15 13:50:08 +03:00
Andrey Smirnov
a7103623af
.changes files parsing. #71
2015-03-13 21:46:32 +03:00
Andrey Smirnov
903e999cdc
Refactor checksum parsing out of package parsing code. #71
2015-03-13 21:23:22 +03:00
Andrey Smirnov
69eff97b34
Relax .dsc checkshums parsing. #71
2015-03-13 20:53:53 +03:00
Andrey Smirnov
8e20daa927
Refactor out IsClearSigned to separate method. #71
2015-03-13 18:42:34 +03:00
Andrey Smirnov
9e39dbf81e
Version bump to 0.9.6~dev.
2015-03-13 16:07:25 +03:00
Andrey Smirnov
7a4feebe6f
Version bump to 0.9.5.
2015-03-13 13:26:39 +03:00
Andrey Smirnov
1d1561c6c3
Add missing files.
2015-03-12 00:50:27 +03:00
Andrey Smirnov
9a5b3aeedc
System test. #193
2015-03-11 23:38:16 +03:00
Andrey Smirnov
ed931e7ed4
Fix unit-tests. #153
2015-03-11 23:29:07 +03:00
Andrey Smirnov
5ff9cecc5a
Regenerate man page. #153
2015-03-11 22:20:43 +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
d5c6f0b623
Collect and report unused package reference sources. #217
2015-03-11 21:40:53 +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
2ceabb69e6
Remove extra \n, system tests. #217
2015-03-11 01:22:49 +03:00
Andrey Smirnov
aa9d3360ba
Canonical case-folding for Debian stanzas. #193
2015-03-11 00:46:39 +03:00
Andrey Smirnov
4580a64192
Make import skip file if Name/Version/Arch is empty. #193
2015-03-11 00:34:48 +03:00
Andrey Smirnov
4cb0526980
Commands * search should exit with failure on no results. #213
2015-03-11 00:31:53 +03:00
Andrey Smirnov
03e2a8d558
Regenerate man page. #217
2015-03-11 00:17:08 +03:00
Andrey Smirnov
ab09cbfe3c
Add -verbose and -dry-run to aptly db cleanup. #217
2015-03-11 00:16:23 +03:00
Andrey Smirnov
0467e0c929
More sophisticated color codes stripper. #217
2015-03-11 00:15:56 +03:00
Andrey Smirnov
6e1c9afdd9
Bump version to 0.9.5~dev.
2015-03-09 22:26:25 +03:00
Andrey Smirnov
4b3b961b69
Version bump to 0.9.1
2015-03-06 15:05:33 +03:00
Andrey Smirnov
e63adffdf5
Introduce back reflist merging without conflict removal. aptly db cleanup requires
...
full reference list collection. #217
Fixes bug with aptly db cleanup removing conflicting packages.
2015-03-06 14:54:29 +03:00
Andrey Smirnov
d00659b0cb
Recommend graphviz for Debian packages.
2015-03-03 22:04:10 +03:00
Andrey Smirnov
66e73782e5
Version bump to 0.9.
2015-03-03 21:00:10 +03:00
Andrey Smirnov
68f332628d
Tests on publish update/switch and delete. #116
2015-03-03 20:57:40 +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
eb0443ed51
Tests for publish list API + verify that publishing actually creates files. #116
2015-03-03 20:35:48 +03:00
Andrey Smirnov
4b974b038c
Test for snapshot publishing. #116
2015-03-01 22:36:22 +03:00
Andrey Smirnov
2d9ee81c95
Update status code. #116
2015-03-01 22:33:05 +03:00
Andrey Smirnov
5c9d4d2844
More tests for repo drop. #116
2015-03-01 22:32:41 +03:00
Andrey Smirnov
49a9ad79dd
Adjust return code for publish create call. #116
2015-03-01 22:31:56 +03:00
Andrey Smirnov
7e60466c7b
Fix system test.
2015-03-01 22:14:37 +03:00
Andrey Smirnov
233ad2528f
Update system tests for new publishing APIs. #116
2015-03-01 19:56:47 +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
6bf910ea56
Update dependency on ssh/terminal.
2015-02-28 23:00:45 +03:00
Andrey Smirnov
8fcfedf708
Lock down package pool to make sure that we have no concurrent access. #116
2015-02-28 22:10:21 +03:00
Andrey Smirnov
26b46ee2a0
Fix confusing comment. #116
2015-02-28 19:55:52 +03:00
Andrey Smirnov
e33a2a6f96
Reverting, as this change was making API LESS RESTful. My bad.
...
Revert "Make snapshot creation API more RESTful: accept snapshot name from URL. #116 "
This reverts commit 06dc1ef9a4 .
2015-02-28 19:55:09 +03:00
Andrey Smirnov
06dc1ef9a4
Make snapshot creation API more RESTful: accept snapshot name from URL. #116
2015-02-28 19:32:28 +03:00
Andrey Smirnov
4c57c358b7
One more attempt to fix system tests.
2015-02-26 09:28:12 +03:00
Andrey Smirnov
65532b3dbf
Fix system tests.
2015-02-25 23:07:32 +03:00
Andrey Smirnov
fb25dec58e
Consistently rename response fields to CamelCase. #116
2015-02-25 22:24:03 +03:00
Andrey Smirnov
e320499f84
Mention SwiftPublishEndpoints. smira/aptly#191
2015-02-25 21:24:48 +03:00
Andrey Smirnov
4715b12f16
Simpler apt-key command. #202
2015-02-22 17:41:15 +03:00
Andrey Smirnov
c6a30a30de
Update README.
2015-02-22 17:39:26 +03:00
Andrey Smirnov
618d06678c
Style fixes from go vet.
2015-02-22 14:36:14 +03:00
Andrey Smirnov
903d4cefba
gofmt -s
2015-02-22 14:29:09 +03:00
Andrey Smirnov
79292dc6c8
Update system tests. #191
2015-02-22 13:47:14 +03:00
Andrey Smirnov
43414be2ee
Fix bug with aptly locking up on swift published storage lookup. #191
2015-02-22 13:42:06 +03:00
Andrey Smirnov
3c34ae6071
Update CLI help for aptly publish switch. #208
2015-02-21 22:32:51 +03:00
Andrey Smirnov
642957e3a3
Update Brightbox Orbit credentials.
2015-02-21 22:26:20 +03:00
Andrey Smirnov
e5d646c007
Merge branch 'sbadia-swift'
...
Conflicts:
AUTHORS
2015-02-21 01:08:48 +03:00
Andrey Smirnov
e0f811dab1
Travis CI setup to run Swift tests. #191
2015-02-20 23:59:46 +03:00
Andrey Smirnov
48b8311150
Style fixes. #191
2015-02-20 23:58:00 +03:00
Andrey Smirnov
8111460e36
Update aptly man page. #191
2015-02-20 23:48:55 +03:00
Andrey Smirnov
0490d0c928
Remove .swift.sh, it is now private.
2015-02-20 23:47:55 +03:00
Andrey Smirnov
b323e315d1
Add comments where required.
2015-02-20 23:47:17 +03:00
Andrey Smirnov
77f928db69
Fix variable shadowing.
2015-02-20 23:45:25 +03:00
Andrey Smirnov
b67f3dd6f7
gofmt #191
2015-02-20 23:43:40 +03:00
Andrey Smirnov
88ff4493b0
Publish list API. #116
2015-02-20 11:12:16 +03:00
Andrey Smirnov
6e8fd6e907
Update to latest cheggaaa/pb with my pull request merged.
2015-02-20 00:46:13 +03:00
Andrey Smirnov
9c3095e42c
Fix data race in p.Bar being read and written from different goroutines.
2015-02-19 01:53:32 +03:00
Andrey Smirnov
c737b8c544
Flush CollectionFactory every 15 minutes. #116
2015-02-16 00:46:31 +03:00
Andrey Smirnov
87cecac4ea
Lock down Context. #116
2015-02-16 00:33:10 +03:00
Andrey Smirnov
76ee53e9f8
Eliminate data races by using API without Progress. #116
2015-02-16 00:32:45 +03:00
Andrey Smirnov
f153c7c3ea
We're building on go1.3+, so remove workaround for FreeBSD.
2015-02-16 00:15:54 +03:00
Andrey Smirnov
36792bba29
Update progressbar version.
2015-02-16 00:15:30 +03:00
Andrey Smirnov
0b05964faa
Add ability to Flush CollectionFactory. #116
2015-02-15 23:57:54 +03:00
Andrey Smirnov
ff00a5a026
Add @alexanderguy to AUTHORS. [ci skip]
2015-02-13 20:14:56 +03:00
Andrey Smirnov
fc0310f468
Merge pull request #201 from alexanderguy/add-suite
...
d-i requires the Suite field in order to validate a mirror.
2015-02-13 20:14:08 +03:00
Alexander Guy
63bf30b890
d-i requires the Suite field in order to validate a mirror.
...
Debian's installer validates a mirror by downloading a Release,
and then cross-checking it based on its Codename and Suite. Without
a Suite field, the installer becomes unhappy (e.g. segfaults) and
won't continue the install.
Making the Codename and Suite the same validates with no problem.
2015-02-12 13:38:56 -08:00
Andrey Smirnov
3004473bbb
Update to correct reference to ncw/swift.
2015-02-11 22:07:36 +03:00
Andrey Smirnov
4356fe5cbe
Merge branch 'sbadia-swift' of github.com:sbadia/aptly into sbadia-swift
2015-02-11 21:58:51 +03:00
Sylvain Baubeau
d6271b6542
Use upstream version of ncw/swift
2015-02-11 21:52:16 +03:00
Sebastien Badia
26a65b2336
swift: Fallback to TempAuth
2015-02-11 15:36:16 +01:00
Sebastien Badia
20adfd49a7
swift: Add support for Swift API v1 (without Keystone)
...
This commit also add a workaround for bug/feature[1]
the password is changed every time :-)
[1]https://github.com/ccollicutt/docker-swift-onlyone/commit/c9f5e41b745eee18e7ddc807481bc9729d8cdac0
2015-02-11 15:35:45 +01:00
Sylvain Baubeau
355a98b51f
Use upstream version of ncw/swift
2015-02-10 09:17:54 +01:00
Andrey Smirnov
1f73a34a54
Don't put empty Source: fields into package stanza. #195
2015-02-09 19:23:41 +03:00
Andrey Smirnov
7925af9fd6
Exit with failure if aptly package search yields no results. #188
2015-02-07 23:33:44 +03:00
Andrey Smirnov
fb03a3baf9
Add @shadeslayer and @rra to list of AUTHORS. [ci skip]
2015-02-07 23:24:10 +03:00
Andrey Smirnov
f097cd20c1
Add @sbadia to AUTHORS. #191
2015-02-07 20:05:16 +03:00
Andrey Smirnov
0489ba9d16
Swift startup script. #191
...
(Doesn't work yet)
2015-02-07 20:03:51 +03:00
Andrey Smirnov
46b3f8fbaf
PEP8 fixes. #191
2015-02-07 19:39:58 +03:00
Andrey Smirnov
cacd0cf103
Merge branch 'swift' of https://github.com/sbadia/aptly into sbadia-swift
2015-02-07 19:18:04 +03:00
Andrey Smirnov
c933668c16
Merge branch 'mkoval-feature/RepoUpdateAPI'
2015-02-07 19:01:24 +03:00
Andrey Smirnov
24418ab0a4
Small fixes to publish update API. #174
2015-02-07 19:01:06 +03:00
Andrey Smirnov
4963d0a1d7
Add @mkoval to list of AUTHORS.
2015-02-07 18:53:25 +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
a582493a6e
Packages show API with tests. #116
2015-02-07 18:50:52 +03:00
Andrey Smirnov
930f76887b
Final version of system tests for snapshot API. #168
2015-02-07 18:37:10 +03:00
Andrey Smirnov
a4201a40d2
Allow to override architectures when publishing. #116
2015-02-07 18:36:42 +03:00
Andrey Smirnov
4990bb98e5
Update gin to latest available version. #116
2015-02-07 18:36:14 +03:00
Andrey Smirnov
00d4674aa5
Update (fix) system test.
2015-02-07 13:23:30 +03:00
Andrey Smirnov
06b4016338
More fixes related to locking and overall operations. #168
2015-02-06 22:44:25 +03:00
Andrey Smirnov
c1b2e4fabb
Fix for snapshot creation APIs: locking, package existence checks, consistency checks. #168
...
More system tests.
2015-02-06 22:37:57 +03:00
Andrey Smirnov
f438637a98
Don't expose UUIDs in API. #168
...
Probably we should expose sources, but not as UUIDs. TODO.
2015-02-06 22:37:14 +03:00
Andrey Smirnov
ce208f347e
Merge branch 'lebauce-snapshot-api'
2015-02-06 20:18:52 +03:00
Andrey Smirnov
06502584cf
Check component names (that they do exist) before publish switching. #192
2015-02-06 20:16:00 +03:00
Sebastien Badia
0f22dc590a
Fix config tests and update man page
...
Fix ConfigSuite.TestSaveConfig, ConfigShowTest and CreateConfigTest
tests
2015-02-05 21:27:09 +01:00
Sylvain Baubeau
11716f06f0
Add test suite for the Swift backend
2015-02-05 18:03:35 +01:00
Sylvain Baubeau
1ba06e828d
Remove prefix in Filelist and RemoveDir
2015-02-05 17:56:16 +01:00
Sebastien Badia
bc357a19a1
Added swift python tests
2015-02-05 17:56:09 +01:00
Sylvain Baubeau
9004f8578c
Detect if bulk-delete is supported
2015-02-05 17:54:09 +01:00
Sebastien Badia
7f038be1cb
Add swift backend for repository publishing
2015-02-05 17:54:09 +01:00
Andrey Smirnov
13fc1122f0
Use Python requests URL params instead of manual GET params. #168
2015-02-05 01:56:55 +03:00
Andrey Smirnov
cb99cbec58
Fix final system test. #168
2015-02-05 01:53:07 +03:00
Andrey Smirnov
5d16cf06cf
Gobuild is gone. [ci skip]
2015-02-05 01:49:29 +03:00
Andrey Smirnov
b0489117c8
Update system tests for new Package serialization. #168
2015-02-05 01:48:14 +03:00
Andrey Smirnov
fa2eef564c
Enhance Package JSON representation with Key, ShortKey and FilesHash. #168
2015-02-05 01:47:10 +03:00
Andrey Smirnov
d20300b152
Whitespace fix. #168
2015-02-05 01:46:57 +03:00
Andrey Smirnov
398303235a
Custom JSON marshalling for PackageDiff, updated test for snapshot diff API. #168
2015-02-05 01:34:02 +03:00
Andrey Smirnov
25d048fe49
Add Package serialization to JSON via stanza. #168
2015-02-05 01:26:55 +03:00
Andrey Smirnov
8c15a0ca95
Add AlekSi/pointer to dependencies. #168
2015-02-05 01:24:44 +03:00
Andrey Smirnov
8e8ff8ba65
Revert "Make files hash a type for proper JSON serialization"
...
This reverts commit e138212593 .
2015-02-05 00:27:14 +03:00
Andrey Smirnov
1b0eb9d45a
Attempt to fix #189 and #130 : disable Amazon workaround when using proxy.
2015-02-03 21:49:55 +03:00
Andrey Smirnov
403c7272cd
When loading package index for the mirror, ignore duplicate packages (and print about them). #183
2015-01-31 21:27:26 +03:00
Andrey Smirnov
0412646151
Add @bcandrea to list of authors.
2015-01-30 19:26:57 +03:00
Andrey Smirnov
0725003107
Merge pull request #186 from bcandrea/master
...
Update dependency definition in conflicts (fixes #185 )
2015-01-30 19:24:56 +03:00
Andrea Bernardo Ciddio
7a1553dc55
Update dependency definition in conflicts ( fixes #185 )
...
The dependency specified when looking for conflicting packages
does not take into account the package version, as by default the
Relation field in the Dependency structure is set to VersionDontCare.
This should fix #185 .
2015-01-30 16:22:27 +00:00
Andrey Smirnov
8375a2c30f
Update system test.
2015-01-30 18:39:50 +03:00
Andrey Smirnov
5bbbdb3c19
Use long gpg key IDs. #178
2015-01-30 18:33:05 +03:00
Andrey Smirnov
1fd80c40d0
Add --no-default-keyring to example command. #182
2015-01-30 18:24:30 +03:00
Andrey Smirnov
ae5ab2d138
Use https:// in example when talking about Release.key download. #179
2015-01-30 18:19:28 +03:00
Andrey Smirnov
eb087fd291
When generating index files, make udeb forced false for "source" architecture. #180
...
Otherwise two index files are generated (source arch, "udeb" true/false) which end up
sharing same final filename, and empty one might overwrite "real" one.
2015-01-26 21:16:44 +03:00
Andrey Smirnov
3f6491b8a3
Non-working test on format=details.
2015-01-26 21:06:28 +03:00
Andrey Smirnov
9250479846
Extract common part of show and search packages from snapshots and repos. #168
2015-01-24 22:23:16 +03:00
Andrey Smirnov
9c60421bd6
Python style fixes. #168
2015-01-24 21:53:06 +03:00
Andrey Smirnov
ebea4f10a0
Make snapshot diff GET, not POST (as it doesn't change anything in the system). #168
2015-01-24 21:51:33 +03:00
Andrey Smirnov
d828732307
Refactoring: make snapshot sorting non-intrusive to collection contents. #168
2015-01-22 22:01:00 +03:00
Andrey Smirnov
7c3629337c
Merge branch 'snapshot-api' of https://github.com/lebauce/aptly into lebauce-snapshot-api
...
Conflicts:
api/router.go
system/t12_api/__init__.py
2015-01-22 21:29:58 +03:00
Michael Koval
a29034caa5
Implemented apiPublishUpdateSwitch.
2015-01-21 02:23:08 -05:00
Andrey Smirnov
c1fd633ed7
Add Sylvain Baubeau to authors. [ci skip]
2015-01-19 22:06:15 +03:00
Andrey Smirnov
bd2cc45524
Fix order of 'Component' and 'Architecture' fields. #172
2015-01-19 22:03:31 +03:00
Andrey Smirnov
0665f2231a
Sort packages when generating Packages index file. #172
2015-01-19 21:39:02 +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
fd502264a9
Install graphviz in Travis. #169
2015-01-13 22:16:30 +03:00
Andrey Smirnov
b155eaa91c
Merge branch 'lebauce-graph-api'
2015-01-13 22:15:37 +03:00
Andrey Smirnov
a0d7ae28bf
Simple tests for graph generation API. #169
2015-01-13 22:15:06 +03:00
Andrey Smirnov
2816647809
Allow to generate graph in formats supported by dot. #169
2015-01-13 19:22:24 +03:00
Andrey Smirnov
67ce828eeb
Lock collections before building graph. #169
2015-01-13 19:17:19 +03:00
Andrey Smirnov
427c42f4b8
Move graph into deb/ package, passing collection factory. #169
2015-01-13 19:10:39 +03:00
Andrey Smirnov
b50cb70a0e
Merge branch 'graph-api' of https://github.com/lebauce/aptly into lebauce-graph-api
2015-01-13 19:04:07 +03:00
Andrey Smirnov
c832a5cdc4
Add missed file. #167
2015-01-13 18:50:09 +03:00
Andrey Smirnov
1bd625f17f
Merge branch 'lebauce-api-version'
2015-01-13 18:49:57 +03:00
Andrey Smirnov
a0fa0becc2
Add system test on version API. #167
2015-01-13 18:49:32 +03:00
Andrey Smirnov
d489694ea9
Refactoring: simplify version generation. Rename API to /api/version. #167
2015-01-13 18:47:41 +03:00
Andrey Smirnov
982b5dc886
Merge branch 'api-version' of https://github.com/lebauce/aptly into lebauce-api-version
2015-01-13 18:44:10 +03:00
Andrey Smirnov
1ddaecfb94
New Debian version: update system tests.
2015-01-12 20:14:18 +03:00
Andrey Smirnov
129c34806c
Pass --no-use-agent when running with --passphare flag. #162
2015-01-12 20:00:18 +03:00
Sylvain Baubeau
6c7f3b3bbd
Add /api route to show API version #116
2015-01-12 10:56:54 +01:00
Sylvain Baubeau
38cb6bd133
Graph REST API #116
2015-01-12 10:56:28 +01:00
Andrey Smirnov
98ca0cdf33
Publish repo REST API. #116
2015-01-07 16:11:34 +03:00
Andrey Smirnov
6e32e3dcf4
Fix some variable shadowing.
2015-01-07 16:11:13 +03:00
Sylvain Baubeau
6a1a871dda
Lock snapshot collection before sorting
2015-01-06 18:06:59 +01:00
Sylvain Baubeau
6bc7048166
Fix wrong method comment
2015-01-06 18:06:53 +01:00
Andrey Smirnov
87fbd5201b
Add Chris Read to authors.
2015-01-05 14:24:47 +03:00
Andrey Smirnov
dcf5798229
Merge remote-tracking branch 'cread/gocheck'
2015-01-05 14:23:38 +03:00
Andrey Smirnov
382ad10cf7
Update man page.
2014-12-28 13:44:24 +03:00
Antonio Santos
ddb2dd7eb6
Fix typo
2014-12-26 17:51:51 +01:00
Andrey Smirnov
9b1b43c8b4
Add custom JSON representation of PublishedRepo. #116
2014-12-26 00:58:23 +03:00
Andrey Smirnov
ee7d84205b
Update system test.
2014-12-23 01:19:37 +03:00
Andrey Smirnov
93e8e18ca6
Document lock order acquisition. #116 [ci skip]
2014-12-23 00:59:29 +03:00
Andrey Smirnov
d586f31247
Move ParsePrefix into common code. #116
2014-12-23 00:50:28 +03:00
Sylvain Baubeau
dd9fc8e40e
Allow API creation of snapshots using package references
2014-12-18 18:17:43 +01:00
Sylvain Baubeau
d847cba870
Make repos and snapshots API return JSON objects for packages when asked
2014-12-18 18:16:35 +01:00
Sylvain Baubeau
d983e10d08
Add snapshots API test suite
2014-12-18 16:33:15 +01:00
Sylvain Baubeau
a6fc65ff4e
Sanitize snapshots API return codes
2014-12-18 12:05:16 +01:00
Sylvain Baubeau
85f38cd739
Allow setting description on snapshots using API
2014-12-18 11:55:54 +01:00
Sylvain Baubeau
acde6ff2b2
Fix wrong methods comments
2014-12-18 11:55:45 +01:00
Sylvain Baubeau
c733129de9
Add search API for packages in snapshots
2014-12-18 11:16:49 +01:00
Sylvain Baubeau
e138212593
Make files hash a type for proper JSON serialization
2014-12-18 11:14:56 +01:00
Sylvain Baubeau
64ef342121
Add /snapshots/ API. #116
...
Implements :
- CRUD
- Difference between snapshots
2014-12-15 10:47:35 +01:00
Sylvain Baubeau
66c9bb86f5
Move command line snapshot sorting to common snapshot code
2014-12-15 10:44:46 +01:00
Andrey Smirnov
923e2e1e50
Update system test.
2014-12-12 09:27:17 +03:00
Andrey Smirnov
0e552eda55
When merging reflists, never allow duplicate (name, version, arch) tuples. #154
...
Even for conficting packages.
2014-12-11 21:56:50 +03:00
Andrey Smirnov
ba32d16c8a
Fix system test.
2014-12-09 11:44:40 +03:00
Andrey Smirnov
4320144024
Merge pull request #155 from davewongillies/master
...
Typo in an error message fix
2014-12-09 11:26:18 +03:00
David Gillies
2564564601
Typo in an error message fix
2014-12-09 15:57:26 +11:00
Andrey Smirnov
f228ad811b
Accept MD5 in package from 'MD5Sum' as well. #151
2014-11-29 16:18:23 +03:00
Andrey Smirnov
5fe442f191
Fix issue with missing comma in JSON.
2014-11-28 22:57:01 +03:00
Andrey Smirnov
50c4aba9ab
Upgrade to latest goleveldb. #150
2014-11-28 22:56:28 +03:00
Andrey Smirnov
b3627738c2
Add Gitter.im badge. [ci skip]
2014-11-27 01:25:58 +03:00
Andrey Smirnov
eec6743fe4
Use ${HOME}, fix test. #146
2014-11-27 00:55:28 +03:00
Andrey Smirnov
42bf2f5e98
Fix one more system test. #147
2014-11-27 00:53:31 +03:00
Andrey Smirnov
35b9a8ea91
Don't sign repo in test. #146
2014-11-27 00:34:04 +03:00
Andrey Smirnov
26c0502307
Introduce new flag -force-components to aptly mirror create to ignore
...
components in Release file while doing checks. #147
2014-11-27 00:32:34 +03:00
Andrey Smirnov
5fa487e2dc
Add gitter.im notification.
2014-11-26 23:51:21 +03:00
Andrey Smirnov
d9c62780c2
When doing db cleanup, consider package references stored in PublishedRepos
...
of local repo publishes. #146
2014-11-26 23:41:18 +03:00
Andrey Smirnov
8c54e15a11
Add information about nightly builds, go 1.3. [ci skip]
2014-11-25 23:46:58 +03:00
Andrey Smirnov
cc2cc16004
Fix system test.
2014-11-18 12:16:47 +03:00
Andrey Smirnov
726f12c537
Repos APIs: searching for packages, adding and deleting packages from the repo. #116
2014-11-18 00:50:59 +03:00
Andrey Smirnov
f1c235f5c5
Fix error message.
2014-11-16 14:01:46 +03:00
Andrey Smirnov
9072ba5981
Revert part of test that shouldn't have been comitted yet. #140
2014-11-14 00:25:40 +03:00
Andrey Smirnov
7beb90d4fc
Strings() for PackageList: turning list into sequence of package Ids. #116
2014-11-14 00:19:58 +03:00
Andrey Smirnov
61e22743af
Fix for stripping part with slashes from component names. #140
...
Now aptly won't strip by default, but if distribution contains slash (like 'wheezy/updates')
and component starts with last part of distribution ('updates/main'), it would be stripped.
2014-11-14 00:13:58 +03:00
Andrey Smirnov
036baa2264
Exclude "source" architecture from list of Release architectures. #140
2014-11-14 00:01:41 +03:00
Andrey Smirnov
ccd8c2551f
Update location of go tool cover.
2014-11-11 01:25:52 +03:00
Andrey Smirnov
74f9787884
Implementation of upload file to local repo APIs. #116
2014-11-11 01:12:52 +03:00
Andrey Smirnov
83af66a8f6
Refactoring: move package files importing code to common deb from command. #116
2014-11-06 00:13:16 +03:00
Chris Read
daf887e54f
Upgrade gocheck
2014-11-05 13:27:15 -06:00
Andrey Smirnov
552b11e28d
Workaround for '+' escaping in Amazon S3. #130
2014-11-05 02:46:01 +03:00
Andrey Smirnov
80a88a2248
Merge branch 'shadeslayer-master'
2014-10-26 19:54:11 +03:00
Andrey Smirnov
4c1d6d1463
Fix operator precedence. #131
2014-10-26 19:53:49 +03:00
Rohan Garg
140a11c04a
Continue even when a server replies with 403
...
Amazon S3 replies with a 403 when accessing files that don't exist,
while this should be fixed at Amazon, we can workaround it in aptly
for the moment.
2014-10-25 21:41:57 +02: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
d2d21c3df7
Update system test.
2014-10-23 11:03:19 +04:00
Andrey Smirnov
f81a91bde9
First step of aptly repo add refactoring: extract collection of files. #116
2014-10-23 01:07:53 +04:00
Andrey Smirnov
7efd0de67c
Fix shadowing of variable. #116
2014-10-23 00:57:27 +04:00
Andrey Smirnov
6a9db17460
Stubs for API calls. #116
2014-10-23 00:41:24 +04:00
Andrey Smirnov
b1053826e3
Debian 7.7 has been released, update tests.
2014-10-20 12:22:19 +04:00
Andrey Smirnov
18953c1c90
Merge pull request #128 from rra/master
...
Allow variation of formatting of Debian control.tar.gz
2014-10-20 10:12:23 +04:00
Russ Allbery
aeb85a1b3c
Allow variation of formatting of Debian control.tar.gz
...
While all the normal Debian package building tools create a
control.tar.gz archive member that contains files with a leading
"./" path element, such as "./control", dpkg and other archive tools
like reprepro are happy with omitting the "./" path element and
having files like "control". Allow for either for compatibility
with weird packages that people may want to import into aptly.
2014-10-17 13:36:58 -07:00
Andrey Smirnov
0a6d57ea1a
Fixing system tests.
2014-10-17 02:03:48 +04:00
Andrey Smirnov
aa4dee3c60
Merge branch 'queeno-fix_truncation_bug'
2014-10-17 00:55:09 +04:00
Andrey Smirnov
9fbe33b356
System test for file override from pool. #127
2014-10-17 00:54:42 +04:00
Andrey Smirnov
2a9871e2e9
We should never ever overwrite files in package pool. #127
2014-10-17 00:54:15 +04:00
Simon Aquino
951b6e9004
Test to avoid published file truncation when added to repo
...
This test will make sure that when a published file is added to repo, it
doesn't get truncated.
2014-10-16 16:57:50 +01:00
Simon Aquino
2173d3ab65
Fix file truncation bug
...
This commix prevents files from being truncated when attempting to add
a hard-linked package which already exists inside the pool directory.
2014-10-16 15:01:36 +01:00
Andrey Smirnov
9c834f410c
API for file upload. #116
2014-10-16 00:04:50 +04:00
Andrey Smirnov
eef44f5cd5
Correctly set config override. #123
...
Without that, config override gets set in parent class propagating
to all tests.
2014-10-14 19:27:47 +04:00
Andrey Smirnov
aa77ea2835
Test for config show. #123
2014-10-14 18:28:53 +04:00
Andrey Smirnov
119bb0195b
Merge branch 'queeno-add_config_show_command-2'
2014-10-14 18:26:45 +04:00
Andrey Smirnov
017dca57ed
Re-generate man page. #123 #96
2014-10-14 18:26:27 +04:00
Andrey Smirnov
88351503b0
Fix misprint. #96
2014-10-14 18:26:12 +04:00
Andrey Smirnov
37b2d49aea
A bit more style fixes. #123
2014-10-14 18:22:57 +04:00
Andrey Smirnov
0afb1f4306
Style fixes.
2014-10-14 18:20:09 +04:00
Andrey Smirnov
6ac0658478
Merge branch 'add_config_show_command' of https://github.com/queeno/aptly into queeno-add_config_show_command-2
2014-10-14 18:17:21 +04:00
Andrey Smirnov
50c8e35a90
Re-enable task run command. #96
2014-10-14 00:47:17 +04:00
Andrey Smirnov
d6c3389d7c
First steps towards /files/ API (file upload). #116
2014-10-14 00:47:17 +04:00
Andrey Smirnov
6b83213cf4
Add UploadPath to Context. #116
2014-10-14 00:47:17 +04:00
Simon Aquino
24927f9a29
config_show should output pretty json
...
This commit changes the output of aptly config show to be pretty json
rather than YAML.
2014-10-13 18:29:45 +01:00
Simon Aquino
ecbb9ad20c
Fixed failing system test
...
Added config command to aptly main output.
2014-10-13 15:58:41 +01:00
Simon Aquino
81e9189853
Config show now outputs a clean data structure
2014-10-13 15:58:41 +01:00
Simon Aquino
8efb7903b2
Added map to to_string and tabs to config_show
2014-10-13 15:58:41 +01:00
Simon Aquino
c1995beff1
Config_show prints out strings,structs,ints,bools
...
More development for aptly config show
2014-10-13 15:58:41 +01:00
Simon Aquino
192152b215
Config command created - config show started
2014-10-13 15:58:41 +01:00
Andrey Smirnov
972e8c1373
Merge pull request #124 from queeno/queeno_username_change
...
Change simonaquino's github username to queeno
2014-10-11 20:57:00 +04:00
Simon Aquino
c501fc63f8
Change simonaquino's github username to queeno
...
simonaquino changed its github username to queeno.
2014-10-11 16:39:48 +00:00
Andrey Smirnov
bf08ad800f
Attempt to build in Travis with python & virtualenv. #116
2014-10-10 19:28:04 +04:00
Andrey Smirnov
ebc223a895
System tests for API. #116
2014-10-10 18:35:39 +04:00
Andrey Smirnov
01b1f23d6b
Merge branch '122-gpg-batch'
2014-10-10 17:54:50 +04:00
Andrey Smirnov
6b08b64d62
Add latest contributors.
2014-10-10 17:53:49 +04:00
Andrey Smirnov
89bb20388f
Fix unit tests. #122
2014-10-10 17:52:09 +04:00
Andrey Smirnov
9857789204
Regenerate man page. #122
2014-10-10 17:52:00 +04:00
Andrey Smirnov
6d1efe0200
Docstrings, gofmt. #122
2014-10-10 17:50:43 +04:00
Andrey Smirnov
a85aa11ecd
Update flag description/include it everywhere. #122
2014-10-10 17:50:08 +04:00
Andrey Smirnov
27ea769ad3
Merge branch 'master' of https://github.com/freehck/aptly into 122-gpg-batch
2014-10-10 17:44:55 +04:00
Andrey Smirnov
523d0d0945
Library for API system tests. #116
2014-10-10 17:43:04 +04:00
Andrey Smirnov
53f7fef4cf
Force flag for API repos delete. #116
2014-10-10 17:18:47 +04:00
Dmitrii Kashin
b590efa45f
Merge branch 'master' of https://github.com/freehck/aptly
2014-10-10 04:22:43 +04:00
Dmitrii Kashin
59055d7fbd
Add batch flag for publish commands
2014-10-10 04:04:44 +04:00
Ivan Kurnosov
22bcacf143
Typo in a error message fix
...
`s/Unknwon/Unknown/`
2014-10-09 16:19:15 +13:00
Andrey Smirnov
877109b3b7
Don't build under go1.2 (gin incompatible), use go 1.3.3. #116
2014-10-08 17:27:44 +04:00
Andrey Smirnov
10056b8571
Add first /repos/ API, command api serve. #116
2014-10-08 16:19:15 +04:00
Andrey Smirnov
ac983ff65d
Add RwMutexes to all collections. #116
2014-10-08 16:16:07 +04:00
Andrey Smirnov
2ed76f1e4c
Add method to convert reflist to list of strings. #116
2014-10-08 16:15:54 +04:00
Andrey Smirnov
cb6b18acfe
Add missing dependency to github.com/jlaffaye/ftp.
2014-10-08 16:15:12 +04:00
Andrey Smirnov
3cd8c5adab
Add gin and its dependencies. #116
2014-10-08 16:13:26 +04:00
Andrey Smirnov
dd7b7b5f20
Refactor RefList.FilterLatestRefs to be method instead of standalone func.
2014-10-07 19:29:01 +04:00
Andrey Smirnov
1f6880fcad
Disable api command, it's not committed yet. #117
2014-10-07 15:26:03 +04:00
Andrey Smirnov
c8d9bef686
Close database before writing first byte to stdout. #117
...
Should fix conflict with commands like 'aptly xxx list -raw | xargs -n 1 aptly xxxx'
2014-10-07 15:20:27 +04:00
Andrey Smirnov
8a787d2c35
Refactor by separating AptlyContext into separate package. #116
2014-10-06 21:54:15 +04:00
Andrey Smirnov
159608cef3
Make LocalRepo JSON-serializable. #116
2014-10-06 21:08:46 +04:00
Andrey Smirnov
52c5934eb6
Lock down CollectionFactory. #116
2014-10-06 19:55:46 +04:00
Andrey Smirnov
e4b9e974d2
bytes.Equal should be faster than bytes.Compare.
2014-10-06 15:17:25 +04:00
Andrey Smirnov
d541b4f137
Version bump to 0.9~dev.
2014-10-06 15:07:31 +04:00
Andrey Smirnov
eece643ea5
Include bash completion into source tarball.
2014-10-05 00:40:47 +04:00
Andrey Smirnov
14bd443d4d
Disable support for aptly task for now. #96
2014-10-03 12:52:46 +04:00
Andrey Smirnov
9109c60c43
Version bump to 0.8.
2014-10-03 12:20:21 +04:00
Andrey Smirnov
445ecbe8f3
Update man page. #45 #114
2014-10-03 11:06:14 +04:00
Andrey Smirnov
27de979733
More comments. #45 #114
2014-10-03 11:02:31 +04:00
Andrey Smirnov
ad11053412
Support for locking, unlocking, interruption, cleanup. #45 #114
2014-10-03 01:34:22 +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
1042894123
Abort downloader on shutdown, don't wait for downloads to finish. #45 #114
2014-10-03 01:31:38 +04:00
Andrey Smirnov
43eb993160
Don't panic on double re-open/close, ignore it. #45 #114
2014-10-03 01:20:26 +04:00
Andrey Smirnov
d190ffd39a
Update goleveldb to the latest version.
2014-10-03 01:19:36 +04:00
Andrey Smirnov
93c1c7aaab
Support for closing and re-opening database. #45 #114
2014-10-02 21:41:58 +04:00
Andrey Smirnov
3e5ba27cb7
Ability to re-open db after close. #45 #114
2014-10-02 21:13:56 +04:00
Andrey Smirnov
cd3b24799a
Use less files for the download test.
2014-10-02 21:00:00 +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
d45b456334
Update test. #26
2014-10-02 14:32:52 +04:00
Andrey Smirnov
91c753ad2f
Add URL to all download errrors, so that they're easier to understand. #26
2014-10-02 14:12:43 +04:00
Andrey Smirnov
40509f73b3
Update system test.
2014-10-02 10:55:57 +04:00
Andrey Smirnov
1daa076d65
Don't allow '/' in distribution name, auto-replace '/' with '-' while guessing. #110
2014-10-01 22:59:05 +04:00
Andrey Smirnov
aeae6009c4
Introduce plusWorkaround: generate copy of file with '+' -> ' ' to workaround S3/apt bug. #98
2014-10-01 21:32:56 +04:00
Andrey Smirnov
8049d69793
Update goamz to version with fix for multidel, re-enable S3 delete test.
2014-10-01 19:41:32 +04:00
Andrey Smirnov
8aa1954ba7
Support for custom storage class and encryption method. #105
2014-10-01 19:16:15 +04:00
Andrey Smirnov
a02a90a3d8
Remove validate argument, not supported by Travi CI boto version.
2014-10-01 18:39:35 +04:00
Andrey Smirnov
f303aabf26
Another way to install boto.
2014-10-01 18:17:55 +04:00
Andrey Smirnov
735cbac60d
Install boto library for system tests.
2014-10-01 18:09:51 +04:00
Andrey Smirnov
5d69871ca4
Tests for publishing to Amazon S3.
2014-10-01 17:48:51 +04:00
Andrey Smirnov
1afbae8f7c
Add AWS credentials.
2014-10-01 17:29:40 +04:00
Andrey Smirnov
1ed647e1b0
List storage & prefix in publish list. #113
2014-10-01 00:44:01 +04:00
Andrey Smirnov
01b8e9eda5
Fix system tests. #108
2014-10-01 00:31:10 +04:00
Andrey Smirnov
f43d514804
Merge branch '108-udebs'
2014-09-30 23:29:27 +04:00
Andrey Smirnov
7e8f692b2c
Use better words. #108
2014-09-30 23:24:51 +04:00
Andrey Smirnov
4b50f817d7
Fix system tests. #108
2014-09-30 23:09:57 +04:00
Andrey Smirnov
e123e4dfac
.udebs are supported now. #108
2014-09-30 21:53:19 +04:00
Andrey Smirnov
4fb09d9e85
Update man page. #108
2014-09-30 21:52:25 +04:00
Andrey Smirnov
d9b23167bc
Test on publishing repo with .udebs. #108
2014-09-30 21:51:38 +04:00
Andrey Smirnov
2c84faaf8d
System test for repo adding .udebs. #108
2014-09-30 21:26:28 +04:00
Andrey Smirnov
6514b87e3e
Add keyring for publish. #108
2014-09-30 21:25:52 +04:00
Andrey Smirnov
bd34ba4088
Pregenerate all udebs indexes if at least one udeb has been discovered. #108
2014-09-30 21:11:01 +04:00
Andrey Smirnov
fae6e977c3
System tests for publishing snapshot from mirror with .udebs. #108
2014-09-30 19:40:16 +04:00
Andrey Smirnov
2ae34cd873
Use Package.MatchesArchitecture instead of homegrown function. #108
2014-09-30 19:39:31 +04:00
Andrey Smirnov
b365e5e0b2
System test: regular publish doesn't generate debian-installer files. #108
2014-09-27 02:15:08 +04:00
Andrey Smirnov
e171f90fd5
Restore ${HOME} links. #108
2014-09-27 01:56:35 +04:00
Andrey Smirnov
db499f872d
Major refactoring of the publishing method, now uses helper indexFile(s). #108
2014-09-27 01:39:02 +04:00
Andrey Smirnov
8f9944117c
Update tests on show mirror format change. #108
2014-09-25 23:38:45 +04:00
Andrey Smirnov
ea399a335a
Update tests on show mirror format change. #108
2014-09-25 23:37:11 +04:00
Andrey Smirnov
976ddb5ff9
Fix tests on arguments help. #108
2014-09-25 23:34:53 +04:00
Andrey Smirnov
7d8600b840
Add support for mirroring, showing, and editing remote repos with .udebs. #108
2014-09-25 22:12:59 +04:00
Andrey Smirnov
7ad1bb387b
Support for .udeb downloads from remote mirrors. #108
2014-09-25 19:34:16 +04:00
Andrey Smirnov
2fbf465fbf
Support for .udeb in deb.Package. #108
2014-09-25 19:31:21 +04:00
Andrey Smirnov
fa786332de
Allow changing "download sources" option for the mirror. #109
2014-09-22 19:36:48 +04:00
Andrey Smirnov
5e1bd0ff0e
Correctly parse boolean flags in combination with config options. #104
...
Config option should act as default, while flag should override it only if set.
2014-09-22 13:41:26 +04:00
Andrey Smirnov
9c92b81706
Remove -dry-run flag for aptly snapshot filter, as it is useless. #82
2014-09-22 01:54:35 +04:00
Andrey Smirnov
144ccbf809
Make order of configuration file loading clear.
2014-09-21 00:55:23 +04:00
Andrey Smirnov
a11805efb4
Update to goleveldb with misspellings fixed.
2014-09-20 21:46:45 +04:00
Andrey Smirnov
5b6cea2d62
Fix system test after spelling fixes.
2014-09-20 21:39:08 +04:00
Andrey Smirnov
d4699a3b24
Fix system test.
2014-09-20 18:21:32 +04:00
Andrey Smirnov
09a695a128
Fix spelling mistakes.
2014-09-20 18:10:13 +04:00
Andrey Smirnov
ec4d2bcefe
Fix spelling mistakes found by lintian.
2014-09-20 18:09:47 +04:00
Andrey Smirnov
3040aceb7f
Update goleveldb to the version which reduces memory usage significantly.
2014-09-20 18:03:24 +04:00
Andrey Smirnov
61d8639a8a
System tests for aptly snapshot filter. #82
2014-09-01 22:25:17 +04:00
Andrey Smirnov
b47754a106
Update man page. #82
2014-09-01 22:11:07 +04:00
Andrey Smirnov
1b08b7311f
Implementation of command aptly snapshot filter. #82
2014-09-01 22:09:58 +04:00
Andrey Smirnov
0130fc0392
Add -force-replace flag to repo aptly add to replace conflicting packages. #83
2014-09-01 17:59:29 +04:00
Andrey Smirnov
de32595d29
Fix test. #94
2014-09-01 16:03:35 +04:00
Andrey Smirnov
95e5fdd34a
Update README. [ci skip]
2014-09-01 15:30:31 +04:00
Andrey Smirnov
a05f00d9f1
Regenerate man page. #94
2014-09-01 15:13:54 +04:00
Andrey Smirnov
97158ef37b
Support for --passphrase & --passphrase-file arguments on publishing. #94
2014-09-01 15:13:07 +04:00
Andrey Smirnov
f01ac06d97
Remove extra whitespace [ci skip]
2014-08-30 01:23:48 +04:00
Andrey Smirnov
a549778754
Fix system tests. #48
2014-08-30 01:16:42 +04:00
Andrey Smirnov
47d952f712
System test for ftp:// download. #48
2014-08-29 19:46:58 +04:00
Andrey Smirnov
166f31c34d
Regenerate man page. #48
2014-08-29 19:39:17 +04:00
Andrey Smirnov
4940fdc951
Note support of FTP. #48
2014-08-29 19:38:25 +04:00
Andrey Smirnov
7ae785f5a3
Implementation of ftp:// support for downloading. #48
2014-08-29 19:37:10 +04:00
Andrey Smirnov
09c8421648
Update man page.
2014-08-29 00:58:47 +04:00
Andrey Smirnov
6a2059150f
Add Vincent Batoufflet to list of authors.
2014-08-29 00:53:56 +04:00
Andrey Smirnov
9b3dfe920d
Merge branch 'vbatoufflet-mirror-edit-arch'
2014-08-29 00:53:15 +04:00
Andrey Smirnov
72f8e4ab61
Check architectures before applying arch change. #99
2014-08-29 00:52:47 +04:00
Andrey Smirnov
755944652f
System tests for mirror edit with architectures. #99
2014-08-29 00:52:03 +04:00
Andrey Smirnov
b29d42d023
Fix system test, use ${HOME}. #80
2014-08-29 00:46:59 +04:00
Andrey Smirnov
f19ece776d
Merge branch 'mirror-edit-arch' of https://github.com/vbatoufflet/aptly into vbatoufflet-mirror-edit-arch
2014-08-28 22:49:19 +04:00
Andrey Smirnov
839763c0b9
Command package show with tests. #80
2014-08-28 22:47:41 +04:00
Andrey Smirnov
c56ecab06f
Method PackageRefList.Has(). #80
2014-08-28 22:25:19 +04:00
Andrey Smirnov
02d86422a8
Fix tests by introducing stable sort. #80
2014-08-28 22:03:06 +04:00
Andrey Smirnov
65efe0cd2a
System tests for aptly package search. #80
2014-08-28 21:44:41 +04:00
Andrey Smirnov
468b1f11b9
New command: package search to search whole package DB for matching packages. #80
2014-08-28 19:42:47 +04:00
Andrey Smirnov
608870265c
New common interface for PackgeCollection & PackageList: PackageCatalog. #80
2014-08-28 19:41:30 +04:00
Andrey Smirnov
ed03a7c69e
New algorithm for dependency resolution, tests. #100 #81
2014-08-28 19:07:39 +04:00
Andrey Smirnov
5a42c60af4
Simplify and make more deterministic algorithm for dependency pulling. #100
2014-08-28 19:05:32 +04:00
Vincent Batoufflet
f66302ef31
Add ability to edit mirror architectures
2014-08-26 23:22:51 +02:00
Andrey Smirnov
346a7bcce9
System tests for mirror, snapshot, repo search. #81
2014-08-27 00:04:01 +04:00
Andrey Smirnov
9bee7cdd08
Simplify dependency verification code. #81
2014-08-27 00:03:46 +04:00
Andrey Smirnov
74eee3496c
Capture test results in prepared format. #81
2014-08-26 23:58:25 +04:00
Andrey Smirnov
3ef5429212
System tests for aptly mirror search. #81
2014-08-26 19:38:27 +04:00
Andrey Smirnov
3030e66d4c
Fix -with-deps searching. #81
2014-08-26 19:25:02 +04:00
Andrey Smirnov
9ae5a5ffb2
Update system tests. #96
2014-08-26 02:03:58 +04:00
Andrey Smirnov
833d37d22c
Update system tests. #81
2014-08-26 02:03:06 +04:00
Andrey Smirnov
03ec1f97a7
Fix after style fix. #96
2014-08-26 02:02:11 +04:00
Andrey Smirnov
a2df51b40e
Commands mirror/repo/snapshot search. #81
2014-08-26 02:01:11 +04:00
Andrey Smirnov
ae906f525e
Style fixes. #96
2014-08-26 01:09:49 +04:00
Andrey Smirnov
b4a5a55cac
Style fixes. #96
2014-08-26 01:06:33 +04:00
Andrey Smirnov
6003764ff5
Add more system tests. #96
2014-08-25 22:15:21 +04:00
Andrey Smirnov
099a82c816
Style fixes. #96
2014-08-25 22:06:25 +04:00
Andrey Smirnov
ef992e2b44
Merge branch 'queeno-script_run_command'
2014-08-25 22:05:34 +04:00
Andrey Smirnov
68e600974d
Refactoring: remove context switching, another way to catch panics, colored output. #96
2014-08-25 22:05:02 +04:00
Andrey Smirnov
39a1f0ec2d
Use go1.3.1.
2014-08-25 21:22:55 +04:00
Andrey Smirnov
318fc5b7f4
Merge branch 'script_run_command' of https://github.com/queeno/aptly into queeno-script_run_command
2014-08-23 22:04:50 +04:00
Simon Aquino
72e54aa3d1
Fixed a bug with the context switching
...
The context switching wasn't really happening. Now the issue is fixed.
2014-08-16 23:32:38 +00:00
Simon Aquino
91ff904ac4
Adding filename flag to specify task run filename.
...
Just realised commands can not have any subcommands and therefore
consist of single words (for example serve or version). Hence I can't
assume that if len(args)==1 then the user has entered the filename.
I have created the filename flag so the user is forced to specify it
when they wish to run aptly tasks from files.
2014-08-16 22:13:24 +00:00
Simon Aquino
b59471ad35
Added RunTask acceptance tests
...
Added a basic RunTask test to test the functionality of the new aptly
task run command. More to come...
2014-08-16 15:11:14 +00:00
Simon Aquino
6ff601f4a2
Making sure context is initialised before using it
...
Now checkong context is not nil before setting panicked = true
2014-08-16 14:33:36 +00:00
Simon Aquino
0c09bdedaa
Fixed t03_help:MainTest failing due to new cmd
2014-08-16 14:22:04 +00:00
Simon Aquino
dfc1f27d4c
Better wording for task run message.
2014-08-16 14:18:35 +00:00
Simon Aquino
005cee572e
Aptly script has now become aptly task
...
It makes more sense. Multiple lines of aptly commands can now be called
'aptly tasks' which could potentially be automated, in the future?
2014-08-16 14:14:56 +00:00
Simon Aquino
18e3ed5d64
aptly script run implementation
...
This new aptly command will allow to run multiple commands within a single
aptly command, running in a single thread. The commands can be included
in a text file or added to the aptly script run command in one line,
separated by comas ','.
If one command returns an error, then all the subsequent commands will
be skipped.
Each command output will appear on the console within coloured strings,
clearly stating which command is running and the start and the end of
the received output.
2014-08-16 13:55:13 +00:00
Simon Aquino
3c7696ef7e
Refactored main.go
...
The main function - whuch runs aptly commands - has been taken out from
main.go and included to the cmd package. This is useful for the aptly
script run command, which should use that behaviour.
2014-08-16 13:55:13 +00:00
Simon Aquino
b2779d7a88
Go-shellwords added to Gomfile
...
This packages allows us to parse shell commands. Useful for
script_run.go (later added)
2014-08-16 13:55:13 +00:00
Simon Aquino
cdd34b4759
Added panicked attribute to context.go
...
This attribute is set to false during initalisation, and it's set to
true when error arises.
2014-08-16 13:55:13 +00:00
Simon Aquino
1f2ddca32b
Add switchContext function to context.go
2014-08-16 13:55:13 +00:00
Simon Aquino
df06dc356b
Added script cmd in cmd.go
2014-08-16 13:54:46 +00:00
Simon Aquino
b6c82f073f
Added new script command
2014-08-16 10:17:44 +00:00
Andrey Smirnov
9a03b5f696
Update leveldb to the latest version.
2014-08-15 21:50:41 +04:00
Andrey Smirnov
047270540a
Version bump: 0.8~dev
2014-08-06 23:34:51 +04:00
Andrey Smirnov
eff3823edf
Upload src-package to bintray.
2014-08-06 13:40:13 +04:00
Andrey Smirnov
9d02f057c6
Version bump: 0.7.1.
2014-08-06 02:24:43 +04:00
Andrey Smirnov
8387586cc8
Man page update: -force-overwrite flag. #90
2014-08-06 02:04:25 +04:00
Andrey Smirnov
b433e7dad5
Workaround for broken time.Time encoding in msgpack with go < 1.2. #89
...
Decoding looses value of time.Time field, but that is not critical.
2014-08-06 01:56:13 +04:00
Andrey Smirnov
dec4bdee71
Merge branch 'patch-1' of https://github.com/guilhem/aptly
2014-08-05 17:01:55 +04:00
Andrey Smirnov
bb6593d21e
Add -force-overwrite flag to publish update, switch, snapshot and repo commands. #90
...
Includes new and updated system tests.
2014-08-05 17:01:18 +04:00
Andrey Smirnov
fe879acf9c
Remove Makefile part specific for go1.1
2014-08-05 15:59:32 +04:00
Andrey Smirnov
5b8390c644
Uncomment and fix publish updat tests.
2014-08-05 15:58:47 +04:00
Andrey Smirnov
d558791070
Add -force-overwrite command flag. #90
2014-08-05 15:47:38 +04:00
Andrey Smirnov
38ea595c9a
Add forceOverwrite on the path to LinkFromPool. #90
2014-08-05 15:47:23 +04:00
Andrey Smirnov
c03b7929d4
Fix line ends: system tests.
2014-08-05 15:44:12 +04:00
Andrey Smirnov
d122ab6013
Fix system tests.
2014-08-05 15:27:39 +04:00
Andrey Smirnov
a7b594d076
Drop support for go1.1
2014-08-05 15:26:41 +04:00
Andrey Smirnov
e07bcf8e51
Fix style and add comments. #90
2014-08-05 14:50:15 +04:00
Andrey Smirnov
da6d5b7cf8
Add 'force' to LinkFromPool method: overwrite file even if exists and different content. #90
2014-08-05 14:50:06 +04:00
Guilhem Lettron
15ef5c63c5
Add gobuild.io badge
2014-07-31 14:52:22 +02:00
Andrey Smirnov
625a38c578
aptly version 0.7
2014-07-29 00:33:53 +04:00
Andrey Smirnov
03a79ebe4c
Update goamz to fixed version with signing & encoding. #15
2014-07-28 23:41:59 +04:00
Andrey Smirnov
60fa0aa68e
Update command usage.
2014-07-28 19:17:21 +04:00
Andrey Smirnov
04bd9929e1
Update man page: S3, package queries.
2014-07-28 19:17:10 +04:00
Andrey Smirnov
8407e70347
Fix system tests. #15
2014-07-28 16:20:38 +04:00
Andrey Smirnov
bf91744078
<endpoint> in command usage. #15
2014-07-28 15:03:55 +04:00
Andrey Smirnov
2c470c1535
Rename config option to endpoint. #15
2014-07-28 15:01:51 +04:00
Andrey Smirnov
a18011bdc0
Update goamz: fixed bug with '+' in filenames. #15
2014-07-27 02:49:05 +04:00
Andrey Smirnov
af8af0f3d7
Fix tests on aptly mirror edit. #63
2014-07-26 18:22:47 +04:00
Andrey Smirnov
89d26b7dc6
Man for aptly mirror edit. #63
2014-07-26 18:02:01 +04:00
Andrey Smirnov
8649ee3b37
Command aptly mirror edit with tests. #63
2014-07-26 17:59:46 +04:00
Andrey Smirnov
b9c8a8d9da
System tests for mirror/repo/snapshot rename commands. #63
2014-07-26 17:28:16 +04:00
Andrey Smirnov
c5922737ed
Man page updates for 'rename' commands. #63
2014-07-26 17:12:00 +04:00
Andrey Smirnov
772111ad26
Commands mirror/repo/snapshot rename. #63
2014-07-26 17:11:26 +04:00
Andrey Smirnov
d7ef1a0c4b
Allow saving snapshot without package refs loaded. #63
2014-07-26 17:09:47 +04:00
Andrey Smirnov
bd221bf869
Sort dependencies.
2014-07-26 16:42:59 +04:00
Andrey Smirnov
0485a36de1
Add Recommends: dependency on bzip2. #84
2014-07-26 01:44:30 +04:00
Andrey Smirnov
77d6a10984
Implementation of Rename method for S3 PublishedStorage. #15
2014-07-26 01:11:23 +04:00
Andrey Smirnov
8015966663
Optimize package encoding/decoding a bit by reusing codec handle.
2014-07-25 16:46:52 +04:00
Andrey Smirnov
94114f2c3d
Use idiomatic chan struct{} when there's nothing to send.
2014-07-24 01:25:59 +04:00
Andrey Smirnov
2906369a3b
Reuse default HTTP transport options.
2014-07-24 01:17:58 +04:00
Andrey Smirnov
521c52f600
Remove unused field.
2014-07-24 01:15:01 +04:00
Andrey Smirnov
52bb33dc69
Fix bugs with prefix/storage parsing. #15
2014-07-22 00:27:49 +04:00
Andrey Smirnov
71d90947c9
Remove debugging output. #15
2014-07-22 00:27:38 +04:00
Andrey Smirnov
b3a4936e06
Fix system tests.
2014-07-21 18:14:09 +04:00
Andrey Smirnov
237d25fe5b
Fix issue with ETag/MD5 comparison, add extra info in error messages. #15
2014-07-21 17:43:42 +04:00
Andrey Smirnov
de0954732a
Style fix.
2014-07-21 17:43:35 +04:00
Andrey Smirnov
915b0d1697
Integrate PublishedRepos with storages & context. #15
2014-07-21 17:43:12 +04:00
Andrey Smirnov
6d026afc69
Support for multiple storages in PublishedRepository. #15
2014-07-21 17:19:13 +04:00
Andrey Smirnov
27a5578d30
Fix system tests. #15
2014-07-18 19:21:29 +04:00
Andrey Smirnov
96e878a2e0
Separate out LocalPublishedStorage interface. #15
2014-07-18 17:44:54 +04:00
Andrey Smirnov
7a7bb56557
Config options for S3 storage. #15
2014-07-18 17:37:08 +04:00
Andrey Smirnov
076ecd586f
Fix style issues. #15
2014-07-17 18:09:13 +04:00
Andrey Smirnov
c54406e29f
First version of PublishedStorage for S3. #15
2014-07-17 18:05:38 +04:00
Andrey Smirnov
b260b0010a
Refactoring: add MD5 to LinkFromPool. #15
2014-07-17 18:04:56 +04:00
Andrey Smirnov
fbf1bc14b7
Refactoring PublishedStorage interface: leave operations suitable for S3. #15
2014-07-17 00:54:44 +04:00
Andrey Smirnov
f12cf935ba
GPG signer shouldn't report full path name. #15
2014-07-17 00:53:36 +04:00
Andrey Smirnov
4e169c3d10
Update system tests on command help. #64
2014-07-16 14:10:40 +04:00
Andrey Smirnov
ea2bfea2a3
Man page with new flags for aptly mirror create. #64
2014-07-16 13:58:07 +04:00
Andrey Smirnov
cf4619784e
System tests for mirror show & update with filters. #64
2014-07-16 13:58:02 +04:00
Andrey Smirnov
69ad2ccd84
System tests for mirror create with filter. #64
2014-07-16 13:45:46 +04:00
Andrey Smirnov
fe1046a7a3
Support for filters in mirror create/update/show. #64
2014-07-16 13:28:11 +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
2a7a2de84a
Allow empty source in PackageList.Filter. #64
2014-07-16 02:23:55 +04:00
Andrey Smirnov
238bdfad96
Add String() method for queries.
2014-07-15 21:49:30 +04:00
Andrey Smirnov
56d777af0a
Introduce regexp query matching.
2014-07-15 19:00:06 +04:00
Andrey Smirnov
a632469890
Support for quoted string arguments.
2014-07-14 23:20:31 +04:00
Andrey Smirnov
3601cc15ed
Fix unit-tests for new $Architecture matching.
2014-07-14 19:45:27 +04:00
Andrey Smirnov
61cd4c6af1
Use special matcher for $Architecture, so that 'any' matches any arch.
2014-07-14 19:39:19 +04:00
Andrey Smirnov
401bb768d7
Fix bug with architectures query: it was always true.
2014-07-14 19:37:12 +04:00
Andrey Smirnov
5880d11899
Fix refactoring leftover bug.
2014-07-14 19:16:02 +04:00
Andrey Smirnov
ed6e261bd0
Rewrite snapshot pull to use PackageList.Filter instead of homebrew algorithm.
2014-07-14 19:02:15 +04:00
Andrey Smirnov
fb660efeb5
Make list sort really stable: if all properties match, use architecture
...
as sort key.
2014-07-14 18:51:07 +04:00
Andrey Smirnov
80de65f28d
Fix system test. #62
2014-07-13 16:19:03 +04:00
Andrey Smirnov
9893e4af3d
Add flag to control downlod limit in aptly mirror update. #62
2014-07-13 16:11:18 +04:00
Andrey Smirnov
7416cc403d
Update system test config file. #62
2014-07-13 16:11:07 +04:00
Andrey Smirnov
83ceee1e3f
Remove debug output. #62
2014-07-13 16:10:53 +04:00
Andrey Smirnov
a54a366c95
New config setting: downloadSpeedLimit to limit download speed. #62
2014-07-13 15:47:44 +04:00
Andrey Smirnov
fb1e28b91b
Setting for downloader to limit download speed to specified level. #62
2014-07-12 23:56:32 +04:00
Andrey Smirnov
86206df58d
Use flowcontrol library. #62
2014-07-12 23:55:54 +04:00
Andrey Smirnov
1d49a717b9
Unit-tests for queries.
2014-07-12 23:26:08 +04:00
Andrey Smirnov
3b0b0b76ec
One more fix for Debian 7.6
2014-07-12 23:18:20 +04:00
Andrey Smirnov
904b9e101b
Update tests: wheezy 7.6 released.
2014-07-12 21:54:13 +04:00
Andrey Smirnov
9fb8a0ea4b
Capturing results for other command output.
2014-07-12 21:53:47 +04:00
Andrey Smirnov
bc27c6e14d
System test on using complex query when importing.
2014-07-12 18:02:57 +04:00
Andrey Smirnov
ae3c98c210
Implementation for FieldQuery.
2014-07-12 18:02:33 +04:00
Andrey Smirnov
34f545b8cf
Package index may not be indexed when schanning.
2014-07-12 18:02:13 +04:00
Andrey Smirnov
d523d2b415
Package.GetField implementation for querying.
2014-07-12 18:00:13 +04:00
Andrey Smirnov
e320ac31d5
Switch aptly repo move/copy/import/remove to use new filters based on queries.
2014-07-12 13:58:38 +04:00
Andrey Smirnov
e08d44ff0a
Fix bug with matching in Search method.
2014-07-12 13:58:22 +04:00
Andrey Smirnov
898870038a
Rename s/Searchable/Fast/
2014-07-12 00:30:53 +04:00
Andrey Smirnov
c485cf41f7
PkgQueries, concept of 'Searchable', rewrite Filter using PackageQueries.
2014-07-12 00:15:33 +04:00
Andrey Smirnov
d54ef1e921
Fix bug with special chars handling in strings, detect package key queries,
...
arch condition for dependency-like queries.
2014-07-12 00:14:49 +04:00
Andrey Smirnov
b42fd71acf
MatchesDependency should check on Provides: as well.
2014-07-11 16:30:41 +04:00
Andrey Smirnov
ede5449440
Refactoring: move query tree to deb package.
2014-07-11 00:09:31 +04:00
Andrey Smirnov
eef49516ef
Fix bugs after style fixes.
2014-07-10 23:31:53 +04:00
Andrey Smirnov
e745747370
Style fixes as suggested by tools.
2014-07-10 21:34:52 +04:00
Andrey Smirnov
7e5b2ae8f5
Bugfix: unit-test was creating dirs in source directory.
2014-07-10 21:31:12 +04:00
Andrey Smirnov
ada3ae0094
Introduce query language (resembling reprepro syntax).
2014-07-10 21:28:02 +04:00
Andrey Smirnov
d262a131cc
Preparation for query matching: introduce Regexp + PatternMatch.
2014-07-10 21:16:30 +04:00
Andrey Smirnov
f0e69144ed
Merge branch 'simonaquino-pull_multiple_packages'
2014-07-10 00:56:16 +04:00
Andrey Smirnov
a7cb40ee7a
System tests for aptly snapshot pull -all-matches. #70
2014-07-10 00:55:53 +04:00
Andrey Smirnov
2a9b2f87f9
Update man page. #70
2014-07-10 00:48:24 +04:00
Andrey Smirnov
9af10bc422
Refactoring: simplification. #70
2014-07-10 00:43:42 +04:00
Andrey Smirnov
bdbb5acb11
Remove 'allMatches' on version equal. #70
2014-07-10 00:20:28 +04:00
Andrey Smirnov
81d506b226
Dependencies should be matched for each package one by one. #70
2014-07-10 00:13:19 +04:00
Andrey Smirnov
1c30b2b9de
Simplification: we are already able to search for all packages. #70
2014-07-10 00:10:53 +04:00
Andrey Smirnov
566604d4ba
Revert changes related to NextVersion. #70
...
It would be done in a bit different way: by introducing powerful search queries.
2014-07-10 00:04:48 +04:00
Andrey Smirnov
58a57f2b2c
Merge branch 'pull_multiple_packages' of https://github.com/simonaquino/aptly into simonaquino-pull_multiple_packages
2014-07-09 18:16:46 +04:00
Andrey Smirnov
20d744f398
Fix system tests (whitespace).
2014-07-08 13:12:10 +04:00
Andrey Smirnov
360981de4a
Merge branch 'simonaquino-sort_snapshots_time'
2014-07-07 23:37:40 +04:00
Andrey Smirnov
79016f7f98
Slight refactoring, make wrong param real error. #73
2014-07-07 23:36:59 +04:00
Andrey Smirnov
1a92d8bfe9
Add --capture to auto-create 'gold' results when fail.
2014-07-07 23:29:36 +04:00
Andrey Smirnov
d3707b4cfe
Add system test on wrong --sort parameter. #73
2014-07-07 23:29:21 +04:00
Andrey Smirnov
de1fa85127
Update man page. #73
2014-07-07 23:14:32 +04:00
Andrey Smirnov
d9b35cea01
Allow running system tests by mask.
...
E.g. system/run.py 'ListSnapshot*'.
2014-07-07 23:13:49 +04:00
Andrey Smirnov
b75b4d1488
Merge branch 'sort_snapshots_time' of https://github.com/simonaquino/aptly into simonaquino-sort_snapshots_time
2014-07-07 18:18:58 +04:00
Andrey Smirnov
da55f18b0e
Fix system tests.
2014-07-02 10:10:39 +04:00
Andrey Smirnov
165dd0053e
Merge branch 'specify_long_tests' of https://github.com/simonaquino/aptly
2014-07-02 10:03:19 +04:00
Andrey Smirnov
22a4e6b67b
Update goleveldb to fixed version (dropping data after compaction + recover). syndtr/goleveldb#53
2014-07-02 09:54:20 +04:00
Simon Aquino
20513e1c16
Specify individual long tests to run
...
The test script currently only allows to run all the long test. This
change will allow a user to specify individual long tests to run.
2014-07-01 00:51:58 +01:00
Simon Aquino
b4ea963744
List snapshots by time: added integration tests
...
Added a couple of integration tests for the new list snapshot by
creation time feature.
2014-06-30 20:23:20 +01:00
Simon Aquino
429788db0f
List snapshots by time
...
Users now have the choice of listing the snapshot by time as well as
name (default behaviour).
An additional flag has been added '--sort=' which controls the sort
method applied to the list produced by aptly snapshot list.
The possible values are:
--sort=name (default): sorts the snapshot list by name (lexicographic
order)
--sort=time: sorts the snapshot list in chronological order (oldest to
newest)
2014-06-30 19:25:13 +01:00
Andrey Smirnov
1e70e954da
System test on pulling latest version by default. #67
2014-06-29 10:12:18 +04:00
Andrey Smirnov
319f3e6bb2
Updated fixture: sensu mirror, new mirror contents.
2014-06-29 09:56:30 +04:00
Andrey Smirnov
56915c4357
Fix order of Component & Archive fields.
2014-06-29 09:55:51 +04:00
Simon Aquino
e1348ab88f
Merge smira/master into pull_multiple_packages
...
Resolved conflicts arisen following smira's new commits into master.
2014-06-28 01:34:28 +01:00
Andrey Smirnov
026dc540d2
Merge branch 'simonaquino-deterministic_package_search'
2014-06-28 00:37:33 +04:00
Andrey Smirnov
44ce4c8a77
Insert into right position when adding as well. #67
2014-06-28 00:26:56 +04:00
Andrey Smirnov
980102462b
Simplify Makefile.
2014-06-28 00:10:35 +04:00
Andrey Smirnov
86b0860463
Enable system tests fixture under go1.3 as well. #72
2014-06-27 23:53:37 +04:00
Andrey Smirnov
e311d41dd7
Add Simon Aquino to authors. #67
2014-06-27 23:49:05 +04:00
Andrey Smirnov
c3ce886990
Merge branch 'deterministic_package_search' of https://github.com/simonaquino/aptly into simonaquino-deterministic_package_search
2014-06-27 23:47:57 +04:00
Andrey Smirnov
959ecf696c
Build under go1.3 as well. #72
2014-06-27 23:39:32 +04:00
Andrey Smirnov
48d01f5700
Fix reference to home directory. #24
2014-06-27 23:30:04 +04:00
Andrey Smirnov
aeecc1ec91
System test on conflicting files when publishing. #65
2014-06-27 22:29:01 +04:00
Andrey Smirnov
685a4de4e7
Fix link to Ryan Uber's profile.
2014-06-27 22:18:03 +04:00
Andrey Smirnov
667efc2b90
Add AUTHORS files.
2014-06-27 21:44:43 +04:00
Simon Aquino
3cf281965b
Implementation of all-matches functionality + tests
...
When performing an *aptly snapshot pull*, users might list dependency
versions that can potentially match multiple packages in the source
snapshot. However, the current implementation of the 'snapshot pull'
command only allows one package to be pulled from a snapshot at a time
for a given dependency.
The newly implemented all-matches flag allows users to pull all the
matching packages from a source snapshot, provided that they satisfy the
version requirements indicated by the dependencies.
The all-matches flag defaults to false and only produces the described
behaviour when it is explicitly set to true.
2014-06-27 03:36:03 +01:00
Simon Aquino
e19a615641
In PackageList, sort the package version from latest to oldest
...
This enables us to return the latest version of a package when no version is specified rather than the oldest.
Therefore, we don't need to modify the search algorithm to return the latest version of a package.
2014-06-13 12:06:33 +01:00
Simon Aquino
ff77fbf5d9
Sort PackagesList by name and version
2014-06-13 11:42:20 +01:00
Andrey Smirnov
856dd7021c
System tests for publish update empty -> empty. #66
2014-06-11 20:42:13 +04:00
Andrey Smirnov
ebc47f7d5d
Add unit-test. #65
2014-06-11 20:32:45 +04:00
Andrey Smirnov
082fda62b5
Add unit-test. #66
2014-06-11 20:28:56 +04:00
Andrey Smirnov
3199fd85fb
Fix publish updating (switching) for empty -> empty scenario. #66
2014-06-11 20:27:49 +04:00
Andrey Smirnov
0c6951fcd2
When linking, check that inode file matches if linking to same file. #65
...
Otherwise files from conflicting packages might override each other in the published
pool. This is explicitly POSIX-only.
2014-06-11 20:03:34 +04:00
Andrey Smirnov
35e57026ac
Version bump: 0.7~dev
2014-06-11 20:02:50 +04:00
Andrey Smirnov
28e050c14e
Fix style warnings.
2014-06-07 18:00:36 +04:00
Andrey Smirnov
8fb399026d
Version bump for 0.6.
2014-06-07 17:58:33 +04:00
Andrey Smirnov
e15f23962a
Add missing files. #61
2014-06-07 17:27:24 +04:00
Andrey Smirnov
81af5882b9
Test on per-component/arch Release contents. #61
2014-06-07 17:19:02 +04:00
Andrey Smirnov
e554d8befa
Update tests with introduction of Release files under each arch/component. #61
2014-06-07 17:01:37 +04:00
Andrey Smirnov
17c564358a
Refactoring, support for atomic updates and checksumming. #61
2014-06-07 16:44:54 +04:00
Andrey Smirnov
2e4c1c491e
Merge branch 'debinst' of https://github.com/ryanuber/aptly into ryanuber-debinst
...
Conflicts:
deb/publish_test.go
2014-06-07 16:34:39 +04:00
Andrey Smirnov
e7230d9ee6
One more test fix. #36
2014-06-07 16:28:15 +04:00
Andrey Smirnov
0f1074a721
Fix tests. #36
2014-06-07 16:17:59 +04:00
Andrey Smirnov
17ed34fdaa
System tests for aptly publish switch with multiple repositories. #36
2014-06-07 15:18:58 +04:00
Andrey Smirnov
17b320eac4
Sort components when doing string representation. #36
2014-06-07 15:18:36 +04:00
Andrey Smirnov
e3a71c81e1
Both components should contain same architectures. #36
2014-06-06 03:05:22 +04:00
Andrey Smirnov
bf900deb4b
Remove whitespace.
2014-06-06 03:03:58 +04:00
Andrey Smirnov
142387311b
Tests for aptly publish update and multi-component repository. #36
2014-06-06 03:00:44 +04:00
Andrey Smirnov
68fbb0cbb9
Fix tests, don't break pool contents. #36
2014-06-06 03:00:29 +04:00
Andrey Smirnov
835da9cb3c
One more test fix: duplicate archs. #36
2014-06-06 02:37:09 +04:00
Andrey Smirnov
7cd0d394d4
Test fix: source shouldn't be part of Architectures: field. #36
2014-06-06 02:25:11 +04:00
Andrey Smirnov
2040be2f8a
Deduplicate architectures when guessed. #36
2014-06-06 02:14:15 +04:00
Andrey Smirnov
1957c811e8
Tests for multi-component and aptly publish list/snapshot/repo, aptly serve. #36
2014-06-06 02:09:13 +04:00
Andrey Smirnov
2dae9b01a1
Grammar fix. #36
2014-06-06 02:09:00 +04:00
Andrey Smirnov
9a34b4ff1f
Update commands to handle multiple components repositories. #36
2014-06-04 17:43:16 +04:00
Andrey Smirnov
d218159455
Multiple connections for published repo. #36
2014-06-04 17:06:34 +04:00
Andrey Smirnov
8be6911238
Fix multiple component in aptly graph. #36
2014-06-04 17:04:05 +04:00
Andrey Smirnov
20a7c5ae2d
A bit more unit-tests with multi-component repositories. #36
2014-06-04 01:07:32 +04:00
Andrey Smirnov
e161313efa
Fix aptly serve: correct components list. #36
2014-06-03 17:25:15 +04:00
Andrey Smirnov
7192049c16
Update to new PublishedRepo with multiple components. #36
...
Multiple component publishing doesn't work yet, but old features are working.
2014-06-03 17:09:00 +04:00
Andrey Smirnov
ee71b93669
Major change: published repo now supports multiple components <> snapshots (local repos). #36
2014-06-03 14:34:26 +04:00
Andrey Smirnov
43ee735aa4
Fix error capitalization.
2014-06-03 14:33:19 +04:00
Andrey Smirnov
da5b0c9a66
Test fixes. #55
2014-05-31 21:27:36 +04:00
Andrey Smirnov
e1dbab6988
Allow publishing of empty snapshots and local repos. #55
2014-05-31 21:13:30 +04:00
Andrey Smirnov
bcdfb7d99a
Fix system tests: update test data.
2014-05-31 19:37:31 +04:00
Andrey Smirnov
ac85a0897a
Update gographviz to fixed version with XML escaping. #58
2014-05-30 22:08:11 +04:00
Ryan Uber
9a4543500c
Handle source repos while creating dist release file
2014-05-29 22:24:19 -07:00
Ryan Uber
b0f9a4a419
Added tests for Release file in distribution directory
2014-05-29 22:07:59 -07:00
Ryan Uber
71ea2be6c1
deb: added Release file to each individual arch dir for d-i.
2014-05-29 14:04:06 -07:00
Andrey Smirnov
b717caeda4
Make 'Package:' line field first when serializing stanza. #49
2014-05-30 00:43:19 +04:00
Andrey Smirnov
fcc283bdb1
Regenerate man page (-no-remove for aptly snapshot merge). #57
2014-05-30 00:05:15 +04:00
Andrey Smirnov
d3d41dd1c9
Add missing files. #57
2014-05-29 20:49:35 +04:00
Andrey Smirnov
c72ef05a2a
Support for -no-remove while merging snapshots. #57
2014-05-29 18:05:52 +04:00
Andrey Smirnov
a1e360b07b
Conflict detection for packages in one list. #60
2014-05-29 18:01:07 +04:00
Andrey Smirnov
90bba977d7
Introduce Package.ShortKey(): packages should have no conflict on that key in one list. #60
2014-05-29 18:00:14 +04:00
Andrey Smirnov
dc248c5603
Fix diff algorithm for reflists with duplicate entries. #57
2014-05-29 17:58:59 +04:00
Andrey Smirnov
f007465d18
Change the way package key works: now it includes FilesHash. #60
...
Now duplicate packages (the same name/version/arch) but with different set of files
would be handled as separate entities.
2014-05-29 16:49:05 +04:00
Andrey Smirnov
869e83713d
Remove debugging output. #51
2014-05-29 00:49:26 +04:00
Andrey Smirnov
7b9e3429fd
Use gographviz escaping instead of homegrown escape function. #51 #58
...
It doesn't fix the bug #58 , waiting for maintainer of gographviz to
accept the patch: https://code.google.com/p/gographviz/issues/detail?id=2
2014-05-29 00:47:37 +04:00
Andrey Smirnov
5b75dbc481
Fix system tests. #54
2014-05-18 00:16:00 +04:00
Andrey Smirnov
d96839f99d
Fix unit tests. #54
2014-05-17 22:47:47 +04:00
Andrey Smirnov
8b2920d5dd
aptly repo add now exists with non-zero exit code if some files fail to add. #54
2014-05-17 22:23:20 +04:00
Andrey Smirnov
4240b134e6
Fix spelling.
2014-05-17 22:08:31 +04:00
Andrey Smirnov
1d31a5c25f
Don't use fixed cap, as it might be more than length. #53
2014-05-16 00:29:43 +04:00
Andrey Smirnov
05a42f4cba
aptly exits with 2 on command/flag parse error. #52
2014-05-16 00:22:51 +04:00
Andrey Smirnov
2cbb486f6b
Update tests with new Varnish repo.
2014-05-13 13:39:14 +04:00
Andrey Smirnov
d0ff11390b
Revert "Version bump for 0.5.1."
...
This reverts commit b5d025f141 .
2014-05-13 12:29:13 +04:00
Andrey Smirnov
b5d025f141
Version bump for 0.5.1.
2014-05-10 18:10:19 +04:00
Andrey Smirnov
3c7a2281b2
Fix "production" libraries in Gomfile with exact SHA.
2014-05-10 18:08:12 +04:00
Andrey Smirnov
be3ad21fbe
Add target to build "all-in-one" source tarball for Debian.
2014-05-10 18:06:23 +04:00
Andrey Smirnov
5301e8a341
Fix pool directory for packages with version in Source: field. #44
2014-05-10 17:25:44 +04:00
Andrey Smirnov
49eed59238
Fix test on command line help. #47
2014-05-10 17:13:49 +04:00
Andrey Smirnov
3e78240b39
Remove debugging output. #47
2014-05-10 17:07:17 +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
35eac72226
Missed file. #46
2014-05-10 13:35:06 +04:00
Andrey Smirnov
5371f94b7a
Debian 7.5 has been released, update tests.
2014-05-10 13:34:46 +04:00
Andrey Smirnov
53adf39d89
Bring back automatic HTTP_PROXY setting from environment. #46
2014-05-10 13:27:01 +04:00
Andrey Smirnov
bc7972ff68
Version bump for 0.6~dev.
2014-04-24 14:24:03 +04:00
Andrey Smirnov
21e8aa5519
Remove comments.
2014-04-24 01:31:31 +04:00
Andrey Smirnov
f0825d93be
aptly 0.5
2014-04-24 01:17:14 +04:00
Andrey Smirnov
9e538d9475
aptly version 0.5
2014-04-24 01:15:59 +04:00
Andrey Smirnov
042602f991
Update man page. #42
2014-04-24 01:03:15 +04:00
Andrey Smirnov
e8a894bc88
More tests for merging. #42
2014-04-24 01:01:14 +04:00
Andrey Smirnov
59647fe6d0
Fix subtle bug in .Merge: if there are duplicate name-arch on the left, override them all. #42
2014-04-24 00:57:17 +04:00
Andrey Smirnov
37a6fb336a
PackageList doesn't allow duplicates and PackageRefList does sorting on keys. #42
2014-04-23 23:47:32 +04:00
Andrey Smirnov
7c2faafa91
Simplify implementation (and improve performance) by using the fact that RefList is always sorted. #42
2014-04-23 23:46:33 +04:00
Andrey Smirnov
87295c6580
Move command description from man file to command help. #42
...
Man file is auto-generated from inline command help.
N.B. I should document this in Contributing.
2014-04-23 23:30:21 +04:00
Andrey Smirnov
4ce4923f58
Merge branch 'f-newestpkg' of https://github.com/ryanuber/aptly into ryanuber-lastest-merge
2014-04-23 23:21:39 +04:00
Andrey Smirnov
2a83596307
Merge pull request #43 from ryanuber/make_package
...
Fix path to manpage in Makefile
2014-04-23 22:56:37 +04:00
Ryan Uber
5f29cb202a
Fix path to manpage in Makefile
2014-04-23 00:50:06 -07:00
Ryan Uber
3800f2c957
Added CLI test for snapshot merge with latest flag
2014-04-23 00:25:44 -07:00
Ryan Uber
6c3b2f686e
snapshot: FilterLatestRefs returns nothing as it deals with a pointer.
2014-04-22 23:33:30 -07:00
Ryan Uber
708fd800df
snapshot: separate test for FilterLatestRefs
2014-04-22 23:04:45 -07:00
Ryan Uber
385ac1afd0
snapshot: explicity call FilterLatestRefs() where needed rather than calling from Merge()
2014-04-22 22:28:14 -07:00
Ryan Uber
d9f8673286
snapshot: break out FilterLatestPackages to its own function
2014-04-22 19:17:10 -07:00
Ryan Uber
d1cc562f3c
cmd/snapshot_merge: reword -latest flag to match man page
2014-04-22 17:48:53 -07:00
Ryan Uber
e6992d822d
Updated man page for snapshot merging with -latest flag
2014-04-22 17:46:29 -07:00
Ryan Uber
0d8debe7b6
snapshot: simplify merging latest packages
2014-04-22 17:44:03 -07:00
Ryan Uber
89eafd1b21
Initial pass at testing merged snapshotting with -latest flag
2014-04-22 17:44:03 -07:00
Ryan Uber
1a735e849b
snapshot: alter result generation in Merge() to accommodate snapshot diff
2014-04-22 17:44:03 -07:00
Ryan Uber
a93052aa8a
snapshot: merge adjustments for -latest flag
2014-04-22 17:44:03 -07:00
Ryan Uber
133d67bffa
snapshot: newest -> latest
2014-04-22 17:44:03 -07:00
Ryan Uber
60d48e890c
snapshot: Move 'newest' logic out of main compilation loop and evaluate the reflist afterward.
2014-04-22 17:44:03 -07:00
Ryan Uber
dbcfd6f58b
snapshot: keep a tab of seen packages and only include the latest copy during merge
2014-04-22 17:44:03 -07:00
Ryan Uber
cd369f5fa0
snapshot: add cli flag for taking newest during merge
2014-04-22 17:44:03 -07:00
Ryan Uber
992a5cee37
snapshot: first pass at newest-wins functionality.
2014-04-22 17:44:03 -07:00
Andrey Smirnov
fb8686a634
Update man page. #8
2014-04-22 20:20:52 +04:00
Andrey Smirnov
cc8baec317
Command aptly publish switch to switch published snapshot. #8
2014-04-22 20:17:21 +04:00
Andrey Smirnov
1200e9cc95
Command aptly publish update: update local repo published in-place. #8
2014-04-22 18:35:20 +04:00
Andrey Smirnov
3342ce490a
System tests for cleaning up prefix/component. #8
2014-04-22 17:51:29 +04:00
Andrey Smirnov
4541e0bdae
Fix misprint. #8
2014-04-22 17:51:22 +04:00
Andrey Smirnov
522684aabb
Use progress for printing. #8
2014-04-22 17:19:39 +04:00
Andrey Smirnov
8963cd8027
Use progress when printing. #8
2014-04-22 17:19:10 +04:00
Andrey Smirnov
9445f3a0fa
Basis for repo re-publishing, cleaning up prefix + component published package pool. #8
2014-04-22 17:07:25 +04:00
Andrey Smirnov
d69eaeff4e
New methods for public root: Filelist and Remove. #8
2014-04-22 17:05:32 +04:00
Andrey Smirnov
1bac201687
Refactoring: build pool path in Package. #8
2014-04-22 16:20:51 +04:00
Andrey Smirnov
45335da0ed
Fix system tests. #41
2014-04-22 11:41:46 +04:00
Andrey Smirnov
b10aeacfc0
Merge branch 'docfix' of https://github.com/Temikus/aptly
2014-04-22 11:28:34 +04:00
Artem Yakimenko
d9f4686e2c
Fixing minor spelling/grammar issues in documentation.
2014-04-22 11:08:57 +04:00
Andrey Smirnov
7eb2fdf425
Re-publishing for local repositories. #8
...
Cleanup part is missing.
2014-04-22 10:49:40 +04:00
Andrey Smirnov
c70c196420
Renaming files in public area. #8
2014-04-22 10:40:17 +04:00
Andrey Smirnov
e81f86f942
Slight refactoring, add oldRefs. #8
2014-04-21 21:26:44 +04:00
Andrey Smirnov
6352ce30ed
Disable compression when downloading, otherwise HTTP client may do "decompression" on its own. #33
2014-04-16 15:55:04 +04:00
Andrey Smirnov
cefc3cc2dc
Fix test. #31
2014-04-16 00:22:11 +04:00
Andrey Smirnov
376bb69803
Updated man page. #31
2014-04-15 23:54:33 +04:00
Andrey Smirnov
e33f5792e1
Add -raw for aptly publish list. #31
2014-04-15 23:53:53 +04:00
Andrey Smirnov
8d214e6d12
Add comments on precise file deletion. #8
2014-04-15 14:28:26 +04:00
Andrey Smirnov
73761c311e
Update man. #29 [ci skip]
2014-04-15 13:36:29 +04:00
Andrey Smirnov
b85f46547b
Allow to customize Origin/Label during publishing. #29
2014-04-15 11:47:21 +04:00
Andrey Smirnov
108dc235a7
Update man page. #27
2014-04-15 11:09:25 +04:00
Andrey Smirnov
90dd21b270
Raw (machine-readable) format for aptly mirror/repo/snapshot list. #27
2014-04-15 10:43:36 +04:00
Andrey Smirnov
ce615facf9
Fix gom invocation. #28
...
Thanks to @erickeller for finding that.
2014-04-13 23:10:53 +04:00
Andrey Smirnov
a8cf83774a
PublishedRepo remembers RefList is has been published with. #8
2014-04-08 11:58:32 +04:00
Andrey Smirnov
470571c7db
Fix variable shadowing.
2014-04-08 11:53:02 +04:00
Andrey Smirnov
55807412a1
Update goleveldb with fix for missing manifest.
...
See also #25 , syndtr/goleveldb#49
2014-04-08 11:47:16 +04:00
Andrey Smirnov
c106e66cff
Style fixes.
2014-04-08 01:39:41 +04:00
Andrey Smirnov
d6fd4e46a0
Style fix.
2014-04-08 01:04:01 +04:00
Andrey Smirnov
b34707faed
man page built with fixed ronn. #22
2014-04-08 00:28:17 +04:00
Andrey Smirnov
e4de1738ce
Update to goleveldb with fix for missing CURRENT file in db. #25
2014-04-08 00:26:01 +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
Andrey Smirnov
83b2e0250d
Rework fatal mechanism, open config on demand.
2014-04-06 21:05:06 +04:00
Andrey Smirnov
3db7125932
Refactor ppa parsing: take pointer to config.
2014-04-06 19:12:07 +04:00
Andrey Smirnov
efcce4ef3c
Re-enable system test on db recover with empty DB. #25
2014-04-06 16:10:11 +04:00
Andrey Smirnov
d90f8dba7f
Update goleveldb with my pull request merged. #25
2014-04-06 16:01:19 +04:00
Andrey Smirnov
173dd775bc
Tests for aptly db recover. #25
2014-04-05 17:01:16 +04:00
Andrey Smirnov
4afa3126e4
Fix ugly bug. #25
2014-04-05 16:20:04 +04:00
Andrey Smirnov
5a6ccb7259
Add command aptly db recover.
2014-04-05 16:11:19 +04:00
Andrey Smirnov
2c3553ef0b
Major refactoring: access to context happens in methods. #13
2014-04-05 16:10:51 +04:00
Andrey Smirnov
400d0da7d4
Add method to recover LevelDB after crash.
2014-04-05 00:30:39 +04:00
Andrey Smirnov
4caeea49b1
Stop building on 1.2.
2014-04-03 00:57:39 +04:00
Andrey Smirnov
f648c9547c
Support for switching to smira/commander with free placement of flags. #17
2014-04-03 00:16:18 +04:00
Andrey Smirnov
d84226a054
Switch to own fork of commander/flag.
2014-03-28 23:05:54 +04:00
Andrey Smirnov
006d173d4f
One more fix for the test.
2014-03-28 21:27:05 +04:00
Andrey Smirnov
6ca62a9d50
Fix test.
2014-03-28 21:04:29 +04:00
Andrey Smirnov
c7dcc8ff59
System test for aptly repo edit. #12
2014-03-28 20:49:37 +04:00
Andrey Smirnov
4c237ed1b1
Command aptly repo edit to change repository defaults. #12
2014-03-28 20:41:51 +04:00
Andrey Smirnov
ec866eb403
Pool would be modified by repo add, so create copy.
2014-03-26 22:29:43 +04:00
Andrey Smirnov
53e73c52a4
Tests for guessing publishing defaults from local repo params. #12
2014-03-26 21:40:17 +04:00
Andrey Smirnov
0f8f43b9f0
Default distribution/component could be specified when creating repo. #12
2014-03-26 21:24:09 +04:00
Andrey Smirnov
7f2f435e2d
Forgotten file. #10
2014-03-26 21:23:49 +04:00
Andrey Smirnov
c325119081
Repo can't be dropped if published. #10
2014-03-26 21:10:43 +04:00
Andrey Smirnov
3b16ca156a
Pool as a fixture is not required. #10
2014-03-26 19:48:34 +04:00
Andrey Smirnov
22014206d7
System tests for aptly publish repo. #10
2014-03-26 19:44:38 +04:00
Andrey Smirnov
9ff49ff24a
Fix words: source might be snapshot or local repo. #10
2014-03-26 19:44:15 +04:00
Andrey Smirnov
37ea845fd9
Command aptly publish repo. #10
2014-03-25 18:42:56 +04:00
Andrey Smirnov
1a88876e63
GPG may suddenly decide to re-validate its trustdb, resulting in any
...
call to `gpg` resulting in exit code 2.
Don't allow GPG to validate trustdb when invoked in automated fashion.
2014-03-25 18:42:03 +04:00
Andrey Smirnov
1a60ac6aa0
Refactoring: use CollectionFactory instead of manual collection creation.
2014-03-25 14:59:26 +04:00
Andrey Smirnov
a0497058ee
Don't allow to drop repo if it is published.
2014-03-25 14:29:25 +04:00
Andrey Smirnov
140c925079
Fix shadowed variables.
2014-03-24 18:39:45 +04:00
Andrey Smirnov
5bd5e0a827
Style fix.
2014-03-24 18:23:34 +04:00
Andrey Smirnov
3c32cd3884
Move man page to /usr/share/man/, as it should be.
2014-03-24 18:20:16 +04:00
Andrey Smirnov
32717e92ba
First round of support for localRepos as source for publishing. Also more intelligent algo to get publishing defaults. #10 #12
2014-03-19 16:43:42 +04:00
Andrey Smirnov
c2fc2f9988
Add placeholders for default local repo publish settings. #12
2014-03-19 16:19:57 +04:00
Andrey Smirnov
1189bca5a4
Add central place to create all collections from.
2014-03-18 18:58:09 +04:00
Andrey Smirnov
2315c00ae1
Test on creating snapshot from empty local repo.
2014-03-18 18:57:16 +04:00
Andrey Smirnov
e5de8b9353
Print bytes in human-readable format. #18
2014-03-17 17:05:38 +04:00
Andrey Smirnov
099806aa82
Function HumanBytes for human-readable representation of numbers. #18
2014-03-17 16:47:04 +04:00
Andrey Smirnov
6a42aad322
Compact LevelDB in aptly db cleanup. #19
2014-03-17 16:22:49 +04:00
Andrey Smirnov
b13e50a570
Bump version to development 0.5~dev.
2014-03-17 16:06:37 +04:00
Andrey Smirnov
dff0ab2fa3
Leave filedescriptors to gpg.
2014-03-17 15:55:35 +04:00
Andrey Smirnov
a7f135a441
.deb package building instructions.
2014-03-17 15:55:21 +04:00
Andrey Smirnov
c71a57169c
Add instruction on installation from repo.
2014-03-13 00:24:46 +04:00
Andrey Smirnov
04588d7566
Fix keyring in system test.
2014-03-12 18:57:21 +04:00
Andrey Smirnov
8153c7e2e9
Version bump to 0.4.1
2014-03-12 18:47:59 +04:00
Andrey Smirnov
b3e92717bd
Test for https://github.com/smira/aptly/issues/5
2014-03-12 18:46:36 +04:00
Andrey Smirnov
d61a77d6e3
With list of components for Release file, do filepath.Base.
2014-03-12 18:37:38 +04:00
Andrey Smirnov
91da3b2046
Don't exit if returnCode is 0: otherwise panic is not reported.
2014-03-12 18:15:18 +04:00
Andrey Smirnov
aade09e74e
Shutdown progress bar in any case.
2014-03-12 18:13:01 +04:00
Andrey Smirnov
4dcfd74323
Version bump to 0.5~dev
2014-03-11 16:12:51 +04:00
Andrey Smirnov
f2a432b96d
Aptly version 0.4.
2014-03-11 13:37:21 +04:00
Andrey Smirnov
431a1da0b7
Update build instructions.
2014-03-11 13:34:55 +04:00
Andrey Smirnov
16d5da8889
Allow to override PYTHON.
2014-03-11 12:20:29 +04:00
Andrey Smirnov
0f8d4df344
A bit of simplification for Makefile.
2014-03-11 12:13:46 +04:00
Andrey Smirnov
e08e8716ae
Build on go1.2.1 as well.
2014-03-11 12:13:22 +04:00
Andrey Smirnov
d1d05aaefb
Manual page & generator using ronn as intermediate language.
2014-03-10 19:51:14 +04:00
Andrey Smirnov
c6bf47d3ea
Update system tests after help changes.
2014-03-10 19:50:26 +04:00
Andrey Smirnov
4c81f0f52a
Update integrated help.
2014-03-10 19:42:27 +04:00
Andrey Smirnov
c28a641293
Don't overwrite entry if there are no changes.
2014-03-10 19:42:08 +04:00
Andrey Smirnov
a96ab00afc
Verify dependencies with progress.
2014-03-07 18:13:48 +04:00
Andrey Smirnov
c55733fc05
Progress during publishing.
2014-03-07 17:24:45 +04:00
Andrey Smirnov
1571a3331d
Fix race with context shutdown and error message printing.
2014-03-07 17:23:56 +04:00
Andrey Smirnov
57722597ee
Move coveralls build to go tip build, which is allowed to fail.
...
coveralls.io is really unstable.
2014-03-07 16:37:17 +04:00
Andrey Smirnov
9496c7e9ac
All output should go via Progress object.
2014-03-07 16:34:09 +04:00
Andrey Smirnov
74c88f3ef6
Progress when downloading single files and when parsing remote mirrors.
2014-03-07 00:37:06 +04:00
Andrey Smirnov
04d6603f38
aptly snapshot verify now prints: "loading packages"...
2014-03-07 00:36:45 +04:00
Andrey Smirnov
6f86bfec72
Show progress when loading packages from reflist.
2014-03-07 00:04:35 +04:00
Andrey Smirnov
81dd5a398b
Uncomment lines.
2014-03-06 23:46:06 +04:00
Andrey Smirnov
f143277a8e
aptly snapshot diff does colour output via context.progress.
2014-03-06 23:34:46 +04:00
Andrey Smirnov
d5f0c576d1
aptly snapshot pull outputs all messages through progress.
2014-03-06 23:03:39 +04:00
Andrey Smirnov
b5f35cd540
Test for ppa short URL in aptly mirror create.
2014-03-06 21:18:26 +04:00
Andrey Smirnov
d9bd016d1f
New config options.
2014-03-06 21:09:40 +04:00
Andrey Smirnov
bed0ac475e
Short syntax for aptly mirror create to support ppa:user/project mirror URLs.
2014-03-06 21:06:50 +04:00
Andrey Smirnov
92c3bf0220
New flag -no-remove for aptly snapshot pull.
2014-03-05 16:15:31 +04:00
Andrey Smirnov
9f1f5aa92f
Make system test ignore debugging features being on/off.
2014-03-05 16:00:00 +04:00
Andrey Smirnov
410caa6141
Fix race in shutdown: context should be shut down in case of error.
2014-03-04 18:39:43 +04:00
Andrey Smirnov
1902f38e6b
Fix race in fatal exit & context shutdown.
2014-03-04 18:26:19 +04:00
Andrey Smirnov
e59c327a7c
One more test for partial loading.
2014-03-04 18:10:27 +04:00
Andrey Smirnov
ef9267c722
Update db with new wheezy-backports.
2014-03-04 17:58:16 +04:00
Andrey Smirnov
f9cb66a955
Test on reading and converting old pre-0.3 package.
2014-03-04 17:19:52 +04:00
Andrey Smirnov
9c6253d86d
Now files are sorted internally.
2014-03-04 17:03:00 +04:00
Andrey Smirnov
3fe8a09928
Major refactoring to lower memory consumption.
...
Package has been split into multiple structure loaded on demand: files, extra, depends.
They're saved and loaded completely separately.
2014-03-04 16:49:26 +04:00
Andrey Smirnov
32e517b4f2
aptly no longer prints 'Saving packages to database.'
2014-03-04 16:48:37 +04:00
Andrey Smirnov
0894c41636
Use Package.UpdateFiles to touch package.Files
2014-03-04 16:48:23 +04:00
Andrey Smirnov
073374eb78
gnuplot script.
2014-03-03 20:59:37 +04:00
Andrey Smirnov
d0c3659679
Gnuplot mem.dat to PNG.
2014-03-03 16:15:50 +04:00
Andrey Smirnov
e055581e34
Dump correct memory stats.
2014-03-03 16:15:36 +04:00
Andrey Smirnov
735593fc84
Fix tests.
2014-03-01 23:13:07 +04:00
Andrey Smirnov
7d6387e78e
Add debugging facilities.
2014-03-01 21:32:04 +04:00
Andrey Smirnov
c554a5c7df
Fix command help.
2014-02-28 18:04:52 +04:00
Andrey Smirnov
c6e4239a22
Remove files only if whole package has been processed successfully.
2014-02-28 11:24:11 +04:00
Andrey Smirnov
e881a6df00
Fix command help. [ci skip]
2014-02-27 23:51:01 +04:00
Andrey Smirnov
d251a519b6
Fix race in Progress shutdown where some messages could have been lost.
2014-02-27 22:52:11 +04:00
Andrey Smirnov
268128482c
Fix system tests.
2014-02-27 22:01:24 +04:00
Andrey Smirnov
91a45a2fde
Display deb-src line if snapshot contains sources.
2014-02-27 21:10:52 +04:00
Andrey Smirnov
9e26207659
System test for publishing local repos.
2014-02-27 21:10:40 +04:00
Andrey Smirnov
f1f008f2f5
System tests for aptly repo import.
2014-02-27 20:57:30 +04:00
Andrey Smirnov
abe9a37408
System tests for aptly repo move|copy.
2014-02-27 18:06:13 +04:00
Andrey Smirnov
a45d2f3ce9
Test on snapshot listing with local repo.
2014-02-27 17:48:32 +04:00
Andrey Smirnov
a08cbc2edc
Commands aptly repo move, copy, import.
2014-02-27 17:10:28 +04:00
Andrey Smirnov
0549db6833
System tests for aptly repo remove.
2014-02-27 16:22:18 +04:00
Andrey Smirnov
07cf61a641
Command aptly repo remove.
2014-02-27 16:14:54 +04:00
Andrey Smirnov
d6dec91c93
List filtering with dependency resolution.
2014-02-27 15:54:17 +04:00
Andrey Smirnov
f430e78a2b
Fix system tests after Package.String() has been changed.
2014-02-27 13:15:28 +04:00
Andrey Smirnov
774d1d9aab
Extract MatchDependency, change Package.String().
2014-02-27 12:48:13 +04:00
Andrey Smirnov
03100c28ce
Fix typo.
2014-02-26 23:51:13 +04:00
Andrey Smirnov
1ae8063873
Cleanup after local repo.
2014-02-26 23:50:49 +04:00
Andrey Smirnov
85f3d15e8c
System tests for aptly repo drop.
2014-02-26 22:14:18 +04:00
Andrey Smirnov
565e82bd1a
Command aptly repo drop.
2014-02-26 22:07:51 +04:00
Andrey Smirnov
4df80d38cf
SnapshotCollection.ByLocalRepoSource method.
2014-02-26 21:30:14 +04:00
Andrey Smirnov
eff530a284
aptly db cleanup test with local repos.
2014-02-26 21:21:44 +04:00
Andrey Smirnov
df811ff36a
Tests for aptly snapshot create from repo
2014-02-26 21:17:10 +04:00
Andrey Smirnov
f19a334b2b
aptly snapshot create from repo command.
2014-02-26 21:03:04 +04:00
Andrey Smirnov
544724e59e
Include local repos into graph.
2014-02-26 21:02:51 +04:00
Andrey Smirnov
059abc465b
Creating snapshots from local repos.
2014-02-26 21:02:34 +04:00
Andrey Smirnov
2f30cf0846
Don't draw edges on graph to non-existing entities.
2014-02-26 19:39:19 +04:00
Andrey Smirnov
f643d3f04d
Use original version of gom as pull requests has been merged.
2014-02-26 19:36:37 +04:00
Andrey Smirnov
c7d8772b9b
Use my fixed version of gom for now.
2014-02-26 17:06:27 +04:00
Andrey Smirnov
5e97e18d9d
Add blank line to Gomfile.
2014-02-26 16:49:04 +04:00
Andrey Smirnov
d65ed73a8a
Use explicit path to gom for Travis.
2014-02-26 16:29:18 +04:00
Andrey Smirnov
10e1a85fb8
Install gom first.
2014-02-26 16:25:56 +04:00
Andrey Smirnov
7c26c3ac14
Fix all dependencies in Gomfile.
2014-02-26 16:24:54 +04:00
Andrey Smirnov
8ebc3e65a5
Fix test depending on $HOME.
2014-02-26 13:42:36 +04:00
Andrey Smirnov
653a7d8d5a
System tests for aptly repo add..
2014-02-26 13:08:55 +04:00
Andrey Smirnov
3ddf39ee58
Sort files before import, really stop importing on file problem.
2014-02-26 13:08:39 +04:00
Andrey Smirnov
e0cb43fbd3
Style fixes.
2014-02-25 14:25:14 +04:00
Andrey Smirnov
70df28bdf4
New command: aptly repo add to add packages to repository.
2014-02-25 14:16:25 +04:00
Andrey Smirnov
ee62dd34f7
Refactoring: Filename now contains only base path, any order of files is accepted.
2014-02-25 14:15:16 +04:00
Andrey Smirnov
e94bca2733
Use different apt repository as test mirror, ppa.launchpad.net is too unstable.
2014-02-25 14:13:27 +04:00
Andrey Smirnov
943d089e7e
Allow fails on go tip.
2014-02-25 13:29:19 +04:00
Andrey Smirnov
da550188de
Build on Go tip as well.
2014-02-25 13:25:04 +04:00
Andrey Smirnov
901ce3ed00
Add final / to archive URL if missing.
2014-02-25 13:24:51 +04:00
Andrey Smirnov
00a9e25706
Support colored printf (with non-colored output when not on terminal) in Progress.
2014-02-25 13:17:23 +04:00
Andrey Smirnov
98bd76f350
Fix snapshot system tests.
2014-02-25 12:34:01 +04:00
Andrey Smirnov
750a947479
Fix some system tests.
2014-02-25 12:12:49 +04:00
Andrey Smirnov
1400b45d9d
Fix PackageCollection.Update to detect conflicts and skip updates when it's not necessary.
2014-02-25 00:40:32 +04:00
Andrey Smirnov
e36971fdc3
Fix system tests.
2014-02-25 00:12:01 +04:00
Andrey Smirnov
8328c44c39
Use progress to output message to fix order of messages on screen.
2014-02-25 00:11:44 +04:00
Andrey Smirnov
c06e69a485
In db cleanup include local repos.
2014-02-24 23:46:11 +04:00
Andrey Smirnov
1b10c87bad
Updating reflist in local repo.
2014-02-24 23:45:47 +04:00
Andrey Smirnov
4277f09e2a
Importing files into pool: interface.
2014-02-24 23:45:32 +04:00
Andrey Smirnov
65c790b6cf
Importing files to package pool.
2014-02-24 23:45:17 +04:00
Andrey Smirnov
1b64612aef
Handle corner-case: null reflist.
2014-02-24 12:17:24 +04:00
Andrey Smirnov
97becf199f
Simplify iteration in LevelDB.
2014-02-24 12:05:51 +04:00
Andrey Smirnov
5f40e02a84
No second gpg verification for InRelease.
2014-02-23 13:49:56 +04:00
Andrey Smirnov
e2067eab23
Bugfix: in cleanup ignore non-updated mirrors.
2014-02-23 13:44:45 +04:00
Andrey Smirnov
33c9c08632
Fixture example .dsc files.
2014-02-23 13:44:26 +04:00
Andrey Smirnov
1fe8a8b703
Refactor GPG clearsigned verification into extract + verification.
2014-02-23 13:44:03 +04:00
Andrey Smirnov
a44742f6b8
Reading control files from .deb & .dsc files.
2014-02-23 13:20:37 +04:00
Andrey Smirnov
8951b4f42a
Reading control file from .deb package.
2014-02-21 20:42:25 +04:00
Andrey Smirnov
f63b0dd315
Update README. [ci skip]
2014-02-21 15:32:28 +04:00
Andrey Smirnov
196dc56dd9
Command aptly repo list.
2014-02-20 17:04:06 +04:00
Andrey Smirnov
54421a9377
Command aptly repo show.
2014-02-20 16:39:58 +04:00
Andrey Smirnov
63cd4a80bb
Command aptly repo create.
2014-02-20 12:01:41 +04:00
Andrey Smirnov
8df4378f4c
Don't generate default comment for local repos.
2014-02-20 12:01:22 +04:00
Andrey Smirnov
c3819d6724
Fix collection of coverage for all new packages.
2014-02-19 23:34:13 +04:00
Andrey Smirnov
7da203e8d2
Local repo: model + collection.
2014-02-19 23:29:52 +04:00
Andrey Smirnov
5617385c44
Fix comments.
2014-02-19 17:16:45 +04:00
Andrey Smirnov
d43a15e658
Refactor snapshot module into subcommands.
2014-02-19 15:27:47 +04:00
Andrey Smirnov
e72f178ca9
Split publish into subcommands.
2014-02-19 15:12:16 +04:00
Andrey Smirnov
66cf2fe53e
Split mirror subcommands into files.
2014-02-19 15:07:56 +04:00
Andrey Smirnov
ccff7935bd
Fixes for refactoring to cmd.
2014-02-19 15:07:41 +04:00
Andrey Smirnov
eb18b04c40
Refactor commands to subpackage.
2014-02-19 14:59:00 +04:00
Andrey Smirnov
35c2178074
Add docblocks to method description in interfaces. [ci skip]
2014-02-19 13:44:14 +04:00
Andrey Smirnov
2d589bd23d
Refactoring: new packages console, http, Progress is interface.
2014-02-19 13:08:55 +04:00
Andrey Smirnov
bd119dbfed
Style fixes.
2014-02-19 12:54:19 +04:00
Andrey Smirnov
d1e16a0ef0
Refactor Repository: split into PackagePool and PublishedStorage.
2014-02-19 12:03:01 +04:00
Andrey Smirnov
7864ce241b
Refactoring: replace sort.StringSlice with simply []string
2014-02-18 14:13:18 +04:00
Andrey Smirnov
190a81e141
Use ${HOME} instead of hardcoded home dir.
2014-02-18 01:11:57 +04:00
Andrey Smirnov
19af0547e8
Style fixes [no ci]
2014-02-18 01:00:49 +04:00
Andrey Smirnov
e51f226cdc
aptly serve with deb-src system test.
2014-02-18 00:57:02 +04:00
Andrey Smirnov
dccb6d10a9
aptly db cleanup with source packages
2014-02-18 00:54:46 +04:00
Andrey Smirnov
532c85eaa6
Test for publihsing snapshot with sources.
2014-02-18 00:49:17 +04:00
Andrey Smirnov
3942734eca
Update test to treat empty source as source package name-version same as binary.
2014-02-18 00:30:35 +04:00
Andrey Smirnov
3b77d7f3c7
Test for pulling packages with source following.
2014-02-18 00:22:04 +04:00
Andrey Smirnov
e9449a9b15
Support different formats of supplying Source: field.
2014-02-18 00:21:31 +04:00
Andrey Smirnov
841771c18e
Sort architectures for stability of result, use package architecture for dependency search.
2014-02-18 00:18:55 +04:00
Andrey Smirnov
d8fe97e0cb
System tests for snapshots verification with sources.
2014-02-17 20:53:22 +04:00
Andrey Smirnov
2d1c6e5cf3
Package might specify its own source pkg version.
2014-02-17 20:53:08 +04:00
Andrey Smirnov
506987d31f
Support version numbers like pkg (1.4)
2014-02-17 20:52:37 +04:00
Andrey Smirnov
b8fd33a92c
Add wheezy snapshots with sources.
2014-02-17 20:52:13 +04:00
Andrey Smirnov
812bc6e1e1
Updating mirrors with sources.
2014-02-17 16:16:55 +04:00
Andrey Smirnov
9b0bb17908
Creating mirror with sources, listing mirrors.
2014-02-17 15:59:14 +04:00
Andrey Smirnov
e3ef4038b4
Add gnuplot-maverick with sources.
2014-02-17 15:51:08 +04:00
Andrey Smirnov
f32c19047f
Publishing source packages index.
2014-02-17 15:41:08 +04:00
Andrey Smirnov
a0b1ff8abe
Support for dependencies with fixed archs (like as source dependency).
2014-02-17 15:36:16 +04:00
Andrey Smirnov
c2f01c8aa1
When requiring source package, specify exact version of binary package.
2014-02-17 15:35:48 +04:00
Andrey Smirnov
b19e6cfadd
Update system tests for new options.
2014-02-17 15:14:29 +04:00
Andrey Smirnov
af2266d572
Enable following to source dependencies.
2014-02-17 15:09:16 +04:00
Andrey Smirnov
21123ac6a4
Add config option to follow dependency to source packages.
2014-02-17 15:08:21 +04:00
Andrey Smirnov
c96491e873
Follow build & source dependencies from package.
2014-02-17 15:06:26 +04:00
Andrey Smirnov
7ab456f6ff
Make decorator for architecture be in curly braces, so there's no conflict with Debian "only for arch".
2014-02-17 15:05:34 +04:00
Andrey Smirnov
5af0c45e10
Support for parsing dependencies with architecture like [amd64].
2014-02-17 14:03:41 +04:00
Andrey Smirnov
09a1b60946
Add 'deb-src' line to repos with source packages included.
2014-02-17 13:29:19 +04:00
Andrey Smirnov
54ac38c56b
Test for Directory regeneration.
2014-02-17 13:03:50 +04:00
Andrey Smirnov
ba178b9863
Regenerate Directory: field for source packages while publishing.
2014-02-17 13:03:27 +04:00
Andrey Smirnov
d999258744
"all" architecture doesn't match "source", fix for missing checksums while publishing.
2014-02-17 11:41:33 +04:00
Andrey Smirnov
e8de4db522
Free up queue as soon as we don't need it anymore.
2014-02-16 23:18:24 +04:00
Andrey Smirnov
47b3f3ed6a
Reset count to zero.
2014-02-16 22:08:01 +04:00
Andrey Smirnov
73e0d8c213
Attempt to lower memory pressure a bit.
2014-02-16 21:59:10 +04:00
Andrey Smirnov
a0757aadd6
Fix test.
2014-02-16 21:36:56 +04:00
Andrey Smirnov
ce793c6dae
List of architectures now includes optionally "source" virtual arch.
2014-02-16 21:36:25 +04:00
Andrey Smirnov
5e8b6da1db
Add whitespace back.
2014-02-16 21:21:45 +04:00
Andrey Smirnov
7b41df7049
Fix system test with addition of 'Download Sources' in mirror show.
2014-02-16 02:49:54 +04:00
Andrey Smirnov
e4d8ef4744
Showing download sources argument in mirror show and mirror list.
2014-02-15 16:56:10 +04:00
Andrey Smirnov
fb9b90e715
Tests for downloading with sources, flat and regular repos.
2014-02-15 16:33:00 +04:00
Andrey Smirnov
5fb512f86e
Add ability to expect responses in any order.
2014-02-15 16:32:28 +04:00
Andrey Smirnov
b2523b4215
--with-sources, downloading source packages flag.
2014-02-14 23:58:09 +04:00
Andrey Smirnov
519082a61e
Remote repos with source packages option.
2014-02-14 23:45:14 +04:00
Andrey Smirnov
36446e46a1
Add config option 'downloadSourcePackages'.
2014-02-14 23:44:46 +04:00
Andrey Smirnov
e6a2f27d47
Correctly prepend directory to filenames of source package files.
2014-02-14 23:33:33 +04:00
Andrey Smirnov
2b4dfe257e
Fix comments.
2014-02-14 22:05:51 +04:00
Andrey Smirnov
22c427bb96
Parsing & generation of source package stanzas.
2014-02-14 22:04:48 +04:00
Andrey Smirnov
213c1e0b4f
Sort HTTP output to fix unstable system test.
2014-02-13 13:01:56 +04:00
Andrey Smirnov
ad2680aeba
Use batched writes to DB when saving packages from the mirror.
2014-02-13 12:32:12 +04:00
Andrey Smirnov
fb6df84ec7
Fix more system tests with GPG publishing.
2014-02-13 01:02:35 +04:00
Andrey Smirnov
796489e88d
Don't compain about missing keys when using custom keyring.
2014-02-13 00:05:21 +04:00
Andrey Smirnov
fb2e1adb5c
Use different keyring in system tests.
2014-02-12 21:25:55 +04:00
Andrey Smirnov
5bf370e18a
Add new flags for specifying GPG keyring manually when signing.
2014-02-12 21:25:33 +04:00
Andrey Smirnov
ced832b1c0
System test for aptly db cleanup.
2014-02-12 20:33:16 +04:00
Andrey Smirnov
d4fb5853cc
Add fixture pool creation from GitHub for system tests.
2014-02-12 17:24:35 +04:00
Andrey Smirnov
2557c41d49
Fix repotoken submission for new version of goveralls.
2014-02-12 17:13:02 +04:00
Andrey Smirnov
ce3ae80feb
Fix system tests.
2014-02-12 16:14:24 +04:00
Andrey Smirnov
7ec8d80053
Add stats on disk space savings.
2014-02-12 16:06:53 +04:00
Andrey Smirnov
bd89d7c62e
Command aptly db cleanup.
2014-02-12 15:29:18 +04:00
Andrey Smirnov
62ea87dc6c
Removing files from package pool.
2014-02-12 15:19:04 +04:00
Andrey Smirnov
130efaa350
Relative pool path and list of all filepaths.
2014-02-12 13:49:01 +04:00
Andrey Smirnov
b5da3e9680
Deleting packages & building file list from packages.
2014-02-12 13:12:07 +04:00
Andrey Smirnov
974d30b837
StrSlice substraction.
2014-02-12 12:59:02 +04:00
Andrey Smirnov
8ae1f7aab0
Fix: progress bar sometimes doesn't disappear.
2014-02-12 11:56:42 +04:00
Andrey Smirnov
3ba7bc7943
Simplify test by using WriteFile.
2014-02-12 11:22:27 +04:00
Andrey Smirnov
c30862dff9
Build all package refs.
2014-02-11 21:11:36 +04:00
Andrey Smirnov
bff299d268
Batch writes/deletes in LevelDB.
2014-02-11 21:11:15 +04:00
Andrey Smirnov
6b02b18c8e
Substraction of PackageRefLists.
2014-02-11 18:52:30 +04:00
Andrey Smirnov
7be4404a87
Fix call to Merge with new parameter.
2014-02-11 17:33:39 +04:00
Andrey Smirnov
94616e1b06
Diffing without overrideMatching.
2014-02-11 17:26:18 +04:00
Andrey Smirnov
8d72f1a959
Database: return list of keys by prefix.
2014-02-11 17:21:35 +04:00
Andrey Smirnov
aea8ae9a96
Bump version to 0.4~dev.
2014-02-11 11:28:11 +04:00
Andrey Smirnov
3008147b3a
One more "fix" for FreeBSD & gpg.
2014-02-10 23:25:41 +04:00
Andrey Smirnov
421283d161
Output match processor to fix CentOS build was placed incorrectly.
2014-02-10 23:13:49 +04:00
Andrey Smirnov
4020e30f07
Fixing system test on CentOS (different version of gpg).
2014-02-10 22:53:52 +04:00
Andrey Smirnov
766d634fbb
terminal.IsTerminal() is not available on FreeBSD until go1.3
2014-02-10 22:48:12 +04:00
Andrey Smirnov
1bba0319cb
aptly version 0.3.
2014-02-10 21:12:08 +04:00
Andrey Smirnov
651f6e934c
Use temp file with .png extension.
2014-02-10 20:43:05 +04:00
Andrey Smirnov
f2a7018335
New command: aptly graph to generate graph of entities created.
2014-02-10 17:33:07 +04:00
Andrey Smirnov
7a3063963c
Add note on downloading keys from repository.
2014-02-10 15:29:48 +04:00
Andrey Smirnov
0c85e5252f
Ignore timestamp formatting.
2014-02-10 15:29:37 +04:00
Andrey Smirnov
d0e73a3e00
Tests for flat repository mirroring.
2014-02-10 15:06:11 +04:00
Andrey Smirnov
955b09a41c
Add one more key for flat repos.
2014-02-10 15:05:18 +04:00
Andrey Smirnov
3075addd46
Support for flat repositories.
2014-02-10 14:47:52 +04:00
Andrey Smirnov
ecbd146cd3
If repo's distribution is empty, don't use it.
2014-02-10 14:23:55 +04:00
Andrey Smirnov
80100a2eda
New wheezy version has been released.
2014-02-10 14:17:27 +04:00
Andrey Smirnov
fc51eb8414
Add spaces to SHA1/SHA256 sums in packages.
2014-02-10 13:40:34 +04:00
Andrey Smirnov
8c83706684
Test disable signing & verifying via config file.
2014-02-07 21:09:46 +04:00
Andrey Smirnov
3e5d54f3ef
Use config file with all options.
2014-02-07 20:47:29 +04:00
Andrey Smirnov
9b4e858734
Fix root dir location in config file.
2014-02-07 20:46:43 +04:00
Andrey Smirnov
14e66c03a6
Tests for config in other file.
2014-02-07 20:00:43 +04:00
Andrey Smirnov
803570bf26
Support for running individual suites.
2014-02-07 20:00:21 +04:00
Andrey Smirnov
66d1f40a49
Support for config file in any file.
2014-02-07 19:59:26 +04:00
Andrey Smirnov
610940ae5d
Mention create empty in command help.
2014-02-07 13:50:20 +04:00
Andrey Smirnov
cddce9a5f7
Fix system test: skip gpg.
2014-02-07 13:50:12 +04:00
Andrey Smirnov
36892a2797
Fix tests.
2014-02-07 13:41:53 +04:00
Andrey Smirnov
f3bad4ee2c
Style fixes.
2014-02-07 13:36:10 +04:00
Andrey Smirnov
bb13462f7b
Fix error message.
2014-02-07 13:33:15 +04:00
Andrey Smirnov
a3dbc8444b
Publishing empty snapshot should fail.
2014-02-07 13:33:01 +04:00
Andrey Smirnov
9dccf2a4ee
System test for aptly snapshot create empty.
2014-02-07 13:28:09 +04:00
Andrey Smirnov
919dc53814
aptly snapshot create .. empty command
2014-02-07 13:27:47 +04:00
Andrey Smirnov
87c0430628
Import keys as trusted.
2014-02-07 12:17:55 +04:00
Andrey Smirnov
ca4736674e
Make gpg be less chattly about untrusted keys.
2014-02-07 12:17:33 +04:00
Andrey Smirnov
cf3dc6be27
Tests for mirroring repositories with signatures.
2014-02-07 12:06:38 +04:00
Andrey Smirnov
d4307ad03c
Test on publishing with --skip-signing.
2014-02-07 11:37:01 +04:00
Andrey Smirnov
47225a0e2d
Add keyring parameter to supress help messages on empty default keyring.
2014-02-07 10:58:01 +04:00
Andrey Smirnov
f4bf144145
Revert "Use non-default keyring in test, so that we don't have extra messages."
...
This reverts commit ad623f7d74 .
2014-02-07 10:57:19 +04:00
Andrey Smirnov
ad623f7d74
Use non-default keyring in test, so that we don't have extra messages.
2014-02-07 02:07:49 +04:00
Andrey Smirnov
3a51116881
Use better words.
2014-02-07 02:07:41 +04:00
Andrey Smirnov
39d2dd2483
Update system tests not to fail with GPG verification.
2014-02-07 01:23:11 +04:00
Andrey Smirnov
b532cb19ee
Verifying and signing releases with GPG, new flags.
2014-02-07 01:22:53 +04:00
Andrey Smirnov
f5ee710098
Major rework of GnuPG interface: support verifying, more help to the user.
2014-02-07 01:22:13 +04:00
Andrey Smirnov
7cbba33fe7
Fetching mirror (Release files) with crypto signatures.
2014-02-06 22:12:31 +04:00
Andrey Smirnov
a9c812a1b3
Style fix.
2014-02-06 21:58:56 +04:00
Andrey Smirnov
09648044db
Test for new config options.
2014-02-06 21:58:40 +04:00
Andrey Smirnov
a97365377f
New configuration options to disable gpg usage in aptly.
2014-02-06 19:56:26 +04:00
Andrey Smirnov
0e9ccb4481
Publishing repository without signer (no signed files).
2014-02-06 19:55:55 +04:00
Andrey Smirnov
c4a30ce0ce
Update docs, we have more features. [ci skip]
2014-02-04 14:12:00 +04:00
Andrey Smirnov
d350e9edba
Fix broken code due to addition of Progress.
2014-02-04 13:06:55 +04:00
Andrey Smirnov
ab468bcac4
Use progress when downloading repo.
2014-02-04 12:38:32 +04:00
Andrey Smirnov
679fc3e5fd
Bind progress into Downloader.
2014-02-04 12:38:14 +04:00
Andrey Smirnov
e99fee3908
Progress reporter: progress bar + messages.
2014-02-04 12:37:55 +04:00
Andrey Smirnov
c3bcc9f7cb
Tests for downloading from broken mirror (checksums).
2014-02-03 23:16:41 +04:00
Andrey Smirnov
62d3c625ed
Support for internal webserver in tests.
2014-02-03 23:15:50 +04:00
Andrey Smirnov
3a9ce36662
Fix broken test: nil.Close()
2014-02-03 21:18:30 +04:00
Andrey Smirnov
b4d7f8ec55
Add flag "-ignore-cheksums" to aptly mirror update.
2014-02-03 21:00:12 +04:00
Andrey Smirnov
79eaf5d460
Parsing Release files for checksums of Packages files.
2014-02-03 20:57:34 +04:00
Andrey Smirnov
502ed4366a
ignoreMismatch flag for downloading.
2014-02-03 20:56:51 +04:00
Andrey Smirnov
d65de9bd30
Rename serve test names.
2014-02-03 17:42:51 +04:00
Andrey Smirnov
c1feb4210c
Pass expected checksums for package files to downloader.
2014-02-03 17:42:12 +04:00
Andrey Smirnov
360e09cc7d
Update to new non-pointer interfaces.
2014-02-03 17:41:54 +04:00
Andrey Smirnov
182a4bd39c
Update tests.
2014-02-03 17:41:39 +04:00
Andrey Smirnov
35976f5ff1
Trim hashes when parsing packages, export package expected checksums.
2014-02-03 17:41:12 +04:00
Andrey Smirnov
982a25992e
Checksum verification while downloading files.
2014-02-03 17:40:41 +04:00
Andrey Smirnov
08123ef5e3
Use values instead of pointers and use io.MultiWriter instead of homegrown impl.
2014-02-03 17:39:49 +04:00
Andrey Smirnov
0dd44f98b8
Restore old function check_file.
2014-02-02 20:08:51 +04:00
Andrey Smirnov
996fc445be
Refactor download test to use internal HTTP server.
2014-01-31 22:26:26 +04:00
Andrey Smirnov
df0a678863
Refactor checksum calculation to implement transparent checksum writer.
2014-01-31 21:46:38 +04:00
Andrey Smirnov
89ac907ca3
Sytem test for aptly publish list/drop.
2014-01-31 21:14:48 +04:00
Andrey Smirnov
7ce8b0ff7b
Add note that repo has been dropped.
2014-01-31 21:14:35 +04:00
Andrey Smirnov
a1258f2125
Revert: run all tests.
2014-01-31 21:14:13 +04:00
Andrey Smirnov
59d72c8112
System tests for aptly publish snapshot.
2014-01-31 19:04:44 +04:00
Andrey Smirnov
5bd0546fb7
Add note about aptly serve to command output
2014-01-31 19:04:25 +04:00
Andrey Smirnov
67422642ef
Fix order of fields.
2014-01-31 19:03:50 +04:00
Andrey Smirnov
de5e39818e
Fix description to be more readable.
2014-01-31 19:03:30 +04:00
Andrey Smirnov
cfdcf84fa5
Fix help message.
2014-01-30 13:16:35 +04:00
Andrey Smirnov
043ed13c18
aptly serve command: handle publishing of repositories, with system test.
2014-01-30 13:10:19 +04:00
Andrey Smirnov
0271456ca4
Add 2014 to LICENSE file.
2014-01-30 11:59:19 +04:00
Andrey Smirnov
08bf46e486
Clarify command line usage a bit.
2014-01-29 19:22:56 +04:00
Andrey Smirnov
93eef2cc80
aptly snapshot drop with system tests.
2014-01-29 19:04:53 +04:00
Andrey Smirnov
c4f1179b65
Lookup PublishedRepo by snapshot.
2014-01-29 18:11:40 +04:00
Andrey Smirnov
2487d5da37
Fix option name in error message.
2014-01-29 18:05:22 +04:00
Andrey Smirnov
772035ad44
Find snapshot by source.
2014-01-29 18:00:53 +04:00
Andrey Smirnov
e49afbcd2d
Snapshot dropping.
2014-01-29 17:13:42 +04:00
Andrey Smirnov
1803252f33
Command aptly mirror drop with system tests.
2014-01-29 16:57:10 +04:00
Andrey Smirnov
555256c1fe
Search snapshots by source repo.
2014-01-29 16:16:24 +04:00
Andrey Smirnov
26267802e9
Dropping remote repos.
2014-01-29 15:57:19 +04:00
Andrey Smirnov
69eb6a85b0
Add comment to exported function.
2014-01-29 14:34:56 +04:00
Andrey Smirnov
78c7bf6af1
Double delete is not a problem.
2014-01-29 14:34:30 +04:00
Andrey Smirnov
d5bc13751b
Update version in test as well.
2014-01-28 19:21:42 +04:00
Andrey Smirnov
b04027edad
Bump version: waiting for 0.3
2014-01-28 18:33:49 +04:00
Andrey Smirnov
5c6e4fffc4
Better words.
2014-01-28 13:02:05 +04:00
Andrey Smirnov
0da53a2d87
Add '+' to list of skipped symbols.
2014-01-28 12:41:31 +04:00
Andrey Smirnov
db4ccce9e4
Remove updated at while comparing.
2014-01-28 12:35:20 +04:00
Andrey Smirnov
c538ca8cc6
Add options --with-packages to show list of packages in snapshot & mirror.
2014-01-28 12:26:05 +04:00
Andrey Smirnov
00bb27fcea
Don't run fixtured DB on go1.1.
2014-01-27 20:05:01 +04:00
Andrey Smirnov
b571e4d79b
Clone from https url.
2014-01-27 19:51:55 +04:00
Andrey Smirnov
29cb5d9c9e
Prepare Travis with all files to run aptly system tests with DB fixture.
2014-01-27 19:45:35 +04:00
Andrey Smirnov
899a28cc27
Clarify go version required in README. #2
2014-01-25 23:10:22 +04:00