[projects/pld-ftp-admin] ftptree: no arch check against other versions in an archive
arekm
arekm at pld-linux.org
Sat Nov 21 10:56:56 CET 2026
commit 3b9c0398512da537c8415d5880e8546aad0b6739
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Nov 21 10:56:08 2026 +0100
ftptree: no arch check against other versions in an archive
A move to .archive/PLD compared the package with the other versions
already there, so a noarch only one next to an older arch build was
refused as "moving would remove archs", though the archive keeps every
version and the move removes nothing there.
modules/ftptree.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/modules/ftptree.py b/modules/ftptree.py
index b2cb649..14bdcc5 100644
--- a/modules/ftptree.py
+++ b/modules/ftptree.py
@@ -484,6 +484,9 @@ class FtpTree(BaseFtpTree):
if len(pkg.files.keys()) <= 1:
pkg.error('has only src.rpm built')
continue
+ # an archive keeps every version, so a move there removes no archs
+ if dsttree.treename.count("archive"):
+ continue
otherpkgnames = self.__find_other_pkgs(pkg, dsttree)
# check if we're not removing some archs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/3b9c0398512da537c8415d5880e8546aad0b6739
More information about the pld-cvs-commit
mailing list