root/build-tools
ZhangXiao 21d0995ee0 repo_manage: Check orig tarballs when uploading source packages
Sometimes, developers may modify source code and construct orig.* files
with different content. When uploading such a source package, if there
is already such a file in the repository with different content, aptly
will raise an error like:

ERROR: unable to publish: unable to process packages: error linking file
to /var/aptly/public/prefix=deb-local-build/pool/main/a\
 /armada-helm-toolkit/armada-helm-toolkit_1.0.orig.tar.gz:
file already exists and is different

Check it at the very beginning and stop the upload operation to avoid
the error from lower level from aptly.

Story: 2008846
Task: 43868

Signed-off-by: ZhangXiao <xiao.zhang@windriver.com>
Change-Id: I55f014f7b3638811517d0ba45f417644ecdc2d76
2021-11-20 09:52:08 +08:00
..
2021-07-16 09:35:16 -04:00
2018-06-27 13:04:02 -04:00
2018-09-17 16:41:31 -04:00
2018-09-17 16:41:31 -04:00
2018-06-01 07:45:23 -07:00
2021-07-16 09:35:16 -04:00
2021-02-19 12:33:58 -05:00
2018-09-07 14:44:37 -04:00
2018-09-07 14:44:37 -04:00
2018-09-17 16:41:31 -04:00
2020-06-08 16:54:14 +08:00