Commit graph

12 commits

Author SHA1 Message Date
Roy Nieterau
3fae1f8521 Just some grammar tweaks 2023-03-30 13:59:22 +02:00
Roy Nieterau
96e184c8ca
Integrator: Enforce unique destination transfers, disallow overwrites in queued transfers (#4662)
* Fix #4656: Enforce unique destination transfer in Integrator

Note that this is per instance - it doesn't validate cross-instance destinations in the context

* Use explicit DuplicateDestinationError and raise as KnownPublishError
2023-03-21 15:29:19 +01:00
Petr Kalis
a03ce5d6fe OP-4617 - fix - os.path.samefile not present on Python2 2023-01-24 17:05:19 +01:00
Petr Kalis
5d8ddb6e55
OP-4504 - added explicit check
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2022-12-19 12:15:09 +01:00
Petr Kalis
da274a7c8d OP-4504 - safer comparison of two paths 2022-12-15 16:28:49 +01:00
Jakub Trllo
9f2cd89e15 remove unused variable 2022-12-06 16:06:52 +01:00
Jakub Trllo
ee71a051b6 removed redundant check of directory 2022-12-06 16:05:14 +01:00
Jakub Trllo
36dcab11c1 formatting changes 2022-12-06 16:02:52 +01:00
Jakub Trllo
18a9c55684 skip if source and destination are the same paths 2022-12-06 16:02:21 +01:00
Jakub Trllo
c764dc20c6 normalize paths when added to queue 2022-12-06 16:00:49 +01:00
Roy Nieterau
7189954a3c Use os.path.abspath instead of os.path.normpath when adding a transfer 2022-03-26 14:44:19 +01:00
Roy Nieterau
e0aaa5f6cc Move FileTransaction into lib 2022-03-26 14:20:13 +01:00