[elbe-devel] [PATCH] pkgutils: update version string for elbe-debootstrap

John Ogness john.ogness at linutronix.de
Thu Aug 9 10:55:19 CEST 2018


With commit 4d69cfcbb864 ("pkgutils: care about version numbers of
packages"), version detection logic was implemented to always
choose the latest version. However, it relies on the package
version strings matching a certain pattern:

    0+deb0u0+jessie0

For the newer elbe-debootstrap packages, the pattern has changed.
This means that the downloader fallback code (and probably
installation from CDROM) is broken.

Adjust the pattern for the new version strings:

    0+deb0u0+deb8

Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
This patch applies to elbe-3 and elbe-2.

 elbepack/pkgutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
index e87e0b3..8f872f4 100644
--- a/elbepack/pkgutils.py
+++ b/elbepack/pkgutils.py
@@ -98,7 +98,7 @@ def get_url ( arch, suite, target_pkg, mirror, comp='main' ):
         packages = filter( lambda x: x.find( target_pkg ) != -1, packages )
 
         # detect package with latest version number
-        latest_version_str = '0+deb0u0+jessie0'
+        latest_version_str = '0+deb0u0+deb8'
         latest_version_pos = 0
         cnt = 0
         for x in packages:
-- 
2.1.4



More information about the elbe-devel mailing list