Detailed Description
When adding two packages with differing versions and content from files both named builder-web.deb to a repository and then subsequently publishing the repo I don't expect an error, but I observe the following error:
Loading packages...
Generating metadata files and linking package files...
ERROR: unable to publish: unable to process packages: error linking file to /home/reynir/.aptly/public/pool/main/b/builder-web/builder-web.deb: file already exists and is different
The output of aptly package show builder-web is:
ackage: builder-web
Priority: optional
Section: unknown
Maintainer: Robur Team <team@robur.coop>
Architecture: all
Version: 0.1.0-89-g338fa9d
Depends: libgmp10, libsqlite3-0, libev4
Filename: builder-web.deb
Size: 11472404
MD5sum: e61a8912d118a6d9ac84a09cd2da4be1
SHA1: 852a46863f591ca01a2d7164177e1f03133b9018
SHA256: b995cd80d28abd86bc1c3347b1a0e15aef63ded372a7d8547351319008aa4e7c
SHA512: 45c2c757c745eeb3df85a7c15527ad08dbc9dbe78bd9c19e670d5b46b865ffc7c208f43ee16687a29c946f5ee756864236e88b1e7fd2905b252d816537a62bbc
Description: Web service for storing and presenting builds.
Builder-web stores builds in a sqlite database and serves them via HTTP.
Homepage: https://git.robur.io/robur/builder-web
Standards-Version: 4.4.1
Vcs-Browser: https://git.robur.io/robur/builder-web
Vcs-Git: https://git.robur.io/robur/builder-web.git
Package: builder-web
Priority: optional
Section: unknown
Maintainer: Robur Team <team@robur.coop>
Architecture: all
Version: 0.1.0-88-g9333773
Depends: libgmp10, libsqlite3-0, libev4
Filename: builder-web.deb
Size: 11470588
MD5sum: eb9fcfc2f82eb176a01ce5b04363d6b4
SHA1: 5d2a696ded8876ff0734f0b156290597aadd7600
SHA256: 5445eeb759d1b07138c31ead93d253ab56e0ae577753befa053232ea2cdedcd2
SHA512: a98f8502103e612d54606e814547ca37d2190c2e9ba526026ae6ea0770f0a20aa6e862a7a3056d7aa973af943a77e2b1276fc309b04c05287442eacab76e2d66
Description: Web service for storing and presenting builds.
Builder-web stores builds in a sqlite database and serves them via HTTP.
Homepage: https://git.robur.io/robur/builder-web
Standards-Version: 4.4.1
Vcs-Browser: https://git.robur.io/robur/builder-web
Vcs-Git: https://git.robur.io/robur/builder-web.git
As the output says the versions differ (0.1.0-89-g338fa9d vs 0.1.0-88-g9333773) so it should be fine according to the documentation.
Issue #439 may be related (the reporter says they add a random prefix to the filename).
Context
Our packaging setup creates .deb files using the same name every time. Other users may benefit from not having to worry about name clashes in filenames.
Possible Implementation
Perhaps a unique name could be generated, or the behavior could be documented -- I was not able to find this behavior documented.
Your Environment
Aptly version 1.4.0+ds1-4+b4 from the debian repository
Detailed Description
When adding two packages with differing versions and content from files both named
builder-web.debto a repository and then subsequently publishing the repo I don't expect an error, but I observe the following error:The output of
aptly package show builder-webis:As the output says the versions differ (
0.1.0-89-g338fa9dvs0.1.0-88-g9333773) so it should be fine according to the documentation.Issue #439 may be related (the reporter says they add a random prefix to the filename).
Context
Our packaging setup creates .deb files using the same name every time. Other users may benefit from not having to worry about name clashes in filenames.
Possible Implementation
Perhaps a unique name could be generated, or the behavior could be documented -- I was not able to find this behavior documented.
Your Environment
Aptly version 1.4.0+ds1-4+b4 from the debian repository