Andrey Smirnov
44ce4c8a77
Insert into right position when adding as well. #67
2014-06-28 00:26:56 +04: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
28e050c14e
Fix style warnings.
2014-06-07 18:00:36 +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
0f1074a721
Fix tests. #36
2014-06-07 16:17:59 +04:00
Andrey Smirnov
17b320eac4
Sort components when doing string representation. #36
2014-06-07 15:18:36 +04:00
Andrey Smirnov
2040be2f8a
Deduplicate architectures when guessed. #36
2014-06-06 02:14:15 +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
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
e1dbab6988
Allow publishing of empty snapshots and local repos. #55
2014-05-31 21:13:30 +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
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
d96839f99d
Fix unit tests. #54
2014-05-17 22:47:47 +04:00
Andrey Smirnov
4240b134e6
Fix spelling.
2014-05-17 22:08:31 +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
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
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
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
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
992a5cee37
snapshot: first pass at newest-wins functionality.
2014-04-22 17:44:03 -07:00
Andrey Smirnov
cc8baec317
Command aptly publish switch to switch published snapshot. #8
2014-04-22 20:17:21 +04:00
Andrey Smirnov
522684aabb
Use progress for printing. #8
2014-04-22 17:19:39 +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
1bac201687
Refactoring: build pool path in Package. #8
2014-04-22 16:20:51 +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
e81f86f942
Slight refactoring, add oldRefs. #8
2014-04-21 21:26:44 +04:00
Andrey Smirnov
8d214e6d12
Add comments on precise file deletion. #8
2014-04-15 14:28:26 +04:00
Andrey Smirnov
b85f46547b
Allow to customize Origin/Label during publishing. #29
2014-04-15 11:47:21 +04:00
Andrey Smirnov
a8cf83774a
PublishedRepo remembers RefList is has been published with. #8
2014-04-08 11:58:32 +04:00