gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: bump, check server for local p


From: Admin
Subject: [taler-deployment] branch master updated: bump, check server for local package freshness
Date: Thu, 12 Jun 2025 22:39:37 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository taler-deployment.

The following commit(s) were added to refs/heads/master by this push:
     new ba76573  bump, check server for local package freshness
ba76573 is described below

commit ba765739a514d01adae48370bbf891fa96837bae
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jun 12 22:39:33 2025 +0200

    bump, check server for local package freshness
---
 packaging/ng/buildconfig/taler-exchange.tag   |  2 +-
 packaging/ng/buildconfig/taler-harness.tag    |  2 +-
 packaging/ng/buildconfig/taler-wallet-cli.tag |  2 +-
 packaging/ng/taler-pkg                        | 41 ++++++++++++++++++++++++---
 4 files changed, 40 insertions(+), 7 deletions(-)

diff --git a/packaging/ng/buildconfig/taler-exchange.tag 
b/packaging/ng/buildconfig/taler-exchange.tag
index cbe8779..14b34a4 100644
--- a/packaging/ng/buildconfig/taler-exchange.tag
+++ b/packaging/ng/buildconfig/taler-exchange.tag
@@ -1 +1 @@
-v1.0.7
+v1.0.8
diff --git a/packaging/ng/buildconfig/taler-harness.tag 
b/packaging/ng/buildconfig/taler-harness.tag
index 75a4ba4..3ec7c5c 100644
--- a/packaging/ng/buildconfig/taler-harness.tag
+++ b/packaging/ng/buildconfig/taler-harness.tag
@@ -1 +1 @@
-v1.0.16
+v1.0.17
diff --git a/packaging/ng/buildconfig/taler-wallet-cli.tag 
b/packaging/ng/buildconfig/taler-wallet-cli.tag
index 75a4ba4..3ec7c5c 100644
--- a/packaging/ng/buildconfig/taler-wallet-cli.tag
+++ b/packaging/ng/buildconfig/taler-wallet-cli.tag
@@ -1 +1 @@
-v1.0.16
+v1.0.17
diff --git a/packaging/ng/taler-pkg b/packaging/ng/taler-pkg
index 0a809fe..200d1c3 100755
--- a/packaging/ng/taler-pkg
+++ b/packaging/ng/taler-pkg
@@ -189,12 +189,30 @@ def show_published(cfg):
     distro = cfg.distro
     vendor, codename = distro.split("-")
     listfmt = "${package}_${version}_${architecture}.deb\n"
-    subprocess.run(["ssh", f"taler-packaging@{host}", f"reprepro -b 
/home/taler-packaging/www/apt/{vendor}/ --list-format '{listfmt}' list 
{codename}"], check=True)
+    subprocess.run(
+        [
+            "ssh",
+            f"taler-packaging@{host}",
+            f"reprepro -b /home/taler-packaging/www/apt/{vendor}/ 
--list-format '{listfmt}' list {codename}",
+        ],
+        check=True,
+    )
+
 
 def publish(cfg):
     distro = cfg.distro
     vendor, codename = distro.split("-")
     debs = []
+    listfmt = "${package}_${version}_${architecture}.deb\n"
+    server_debs_str = subprocess.check_output(
+        [
+            "ssh",
+            f"taler-packaging@{host}",
+            f"reprepro -b /home/taler-packaging/www/apt/{vendor}/ 
--list-format '{listfmt}' list {codename}",
+        ],
+        encoding="utf-8",
+    )
+    server_debs = server_debs_str.split()
     for component in components:
         current = None
         cf = Path(f"./packages/{distro}/{component}.built.current")
@@ -203,9 +221,24 @@ def publish(cfg):
             continue
         with open(f"./packages/{distro}/{component}.built.current") as f:
             current = f.read().split()
-        print(f"component {component} has current packages:")
-        print(current)
-        debs.extend(current)
+        for deb in current:
+            pkg1, ver1, arch1 = deb.removesuffix(".deb").split("_")
+            fresh = True
+            server_deb = None
+            # If the server has the same or a later version,
+            # the local version isn't fresh.
+            for srvdeb in server_debs:
+                pkg2, ver2, arch2 = srvdeb.removesuffix(".deb").split("_")
+                if pkg1 != pkg2:
+                    continue
+                if Dpkg.compare_versions(ver1, ver2) <= 0:
+                    fresh = False
+                server_deb = srvdeb
+                break
+            if fresh:
+                debs.append(deb)
+            else:
+                print("package", deb, "not fresh, server has", server_deb)
     if len(debs) == 0:
         print("nothing to upload")
         return

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]