Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmpp-dns for openSUSE:Factory checked in at 2026-02-02 14:57:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xmpp-dns (Old) and /work/SRC/openSUSE:Factory/.xmpp-dns.new.1995 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xmpp-dns" Mon Feb 2 14:57:16 2026 rev:21 rq:1330288 version:0.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/xmpp-dns/xmpp-dns.changes 2026-01-23 17:34:03.528386804 +0100 +++ /work/SRC/openSUSE:Factory/.xmpp-dns.new.1995/xmpp-dns.changes 2026-02-02 14:57:30.012366158 +0100 @@ -1,0 +2,10 @@ +Sun Feb 1 21:24:57 UTC 2026 - Michael Vetter <[email protected]> + +- Update to 0.6.2: + * Change [WARN] to Test: [WARN] to be uniform to Test: + [OK] and Test: [Not OK]. + * Improve presentation of cert expiry. + * Check syntax of manually provided arbitrary targets + introduced in v0.6.0. + +------------------------------------------------------------------- Old: ---- xmpp-dns-0.6.1.tar.gz New: ---- xmpp-dns-0.6.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xmpp-dns.spec ++++++ --- /var/tmp/diff_new_pack.rfzBjn/_old 2026-02-02 14:57:30.552388985 +0100 +++ /var/tmp/diff_new_pack.rfzBjn/_new 2026-02-02 14:57:30.556389153 +0100 @@ -17,7 +17,7 @@ Name: xmpp-dns -Version: 0.6.1 +Version: 0.6.2 Release: 0 Summary: A CLI tool to check XMPP SRV records License: BSD-2-Clause ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.rfzBjn/_old 2026-02-02 14:57:30.592390675 +0100 +++ /var/tmp/diff_new_pack.rfzBjn/_new 2026-02-02 14:57:30.596390844 +0100 @@ -1,6 +1,6 @@ -mtime: 1769153796 -commit: cefc0bfdef1ff88c44b05240e665628174faa6e448df9d8b9c0208ac09cf04e6 +mtime: 1769981142 +commit: 1f30941482227e6b93da93b6b31428ff07ac3650f1b0c8dac6e5059cc860ead3 url: https://src.opensuse.org/xmpp/xmpp-dns.git -revision: cefc0bfdef1ff88c44b05240e665628174faa6e448df9d8b9c0208ac09cf04e6 +revision: 1f30941482227e6b93da93b6b31428ff07ac3650f1b0c8dac6e5059cc860ead3 projectscmsync: https://src.opensuse.org/xmpp/_ObsPrj.git ++++++ _service ++++++ --- /var/tmp/diff_new_pack.rfzBjn/_old 2026-02-02 14:57:30.624392028 +0100 +++ /var/tmp/diff_new_pack.rfzBjn/_new 2026-02-02 14:57:30.628392197 +0100 @@ -3,7 +3,7 @@ <param name="url">https://salsa.debian.org/mdosch/xmpp-dns.git</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.6.1</param> + <param name="revision">v0.6.2</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">disable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-02-01 22:26:29.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ vendor.tar.gz ++++++ ++++++ xmpp-dns-0.6.1.tar.gz -> xmpp-dns-0.6.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.6.1/CHANGELOG.md new/xmpp-dns-0.6.2/CHANGELOG.md --- old/xmpp-dns-0.6.1/CHANGELOG.md 2026-01-22 22:46:30.000000000 +0100 +++ new/xmpp-dns-0.6.2/CHANGELOG.md 2026-02-01 14:26:40.000000000 +0100 @@ -1,5 +1,11 @@ # Changelog +## [0.6.2] 2026-02-01 +### Changed +- Change **[WARN]** to **Test: [WARN]** to be uniform to **Test: [OK]** and **Test: [Not OK]**. +- Improve presentation of cert expiry. +- Check syntax of manually provided arbitrary targets introduced in v0.6.0. + ## [0.6.1] 2026-01-22 ### Changed - Remove unnecessary printing of argv. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmpp-dns-0.6.1/main.go new/xmpp-dns-0.6.2/main.go --- old/xmpp-dns-0.6.1/main.go 2026-01-22 22:46:30.000000000 +0100 +++ new/xmpp-dns-0.6.2/main.go 2026-02-01 14:26:40.000000000 +0100 @@ -31,7 +31,7 @@ ) const ( - version = "0.6.1" + version = "0.6.2" nsBOSH = "urn:xmpp:alt-connections:xbosh" nsC2SdTLS = "urn:xmpp:alt-connections:tls" nsC2SQuic = "urn:xmpp:alt-connections:quic" @@ -215,33 +215,41 @@ if len(*flagClientDTLS) > 0 { for _, cdtls := range *flagClientDTLS { target := strings.SplitN(cdtls, ":", 2) - port, err := strconv.ParseUint(target[1], 10, 16) - if err != nil { - fmt.Println(err) - continue - } - cr := xmppsrv.SRV{ - Type: "xmpps-client", - Target: target[0], - Port: uint16(port), + if len(target) == 2 { + port, err := strconv.ParseUint(target[1], 10, 16) + if err != nil { + log.Fatalf("client-dtls: failed to parse target (domain:port): %s: %v", + cdtls, err) + } + cr := xmppsrv.SRV{ + Type: "xmpps-client", + Target: target[0], + Port: uint16(port), + } + clientRecords = append(clientRecords, cr) + } else { + log.Fatalf("client-dtls: failed to parse target (domain:port): %s\n", cdtls) } - clientRecords = append(clientRecords, cr) } } if len(*flagClientSTLS) > 0 { for _, cstls := range *flagClientSTLS { target := strings.SplitN(cstls, ":", 2) - port, err := strconv.ParseUint(target[1], 10, 16) - if err != nil { - fmt.Println(err) - continue - } - cr := xmppsrv.SRV{ - Type: "xmpp-client", - Target: target[0], - Port: uint16(port), + if len(target) == 2 { + port, err := strconv.ParseUint(target[1], 10, 16) + if err != nil { + log.Fatalf("client-stls: failed to parse target (domain:port): %s: %v", + cstls, err) + } + cr := xmppsrv.SRV{ + Type: "xmpp-client", + Target: target[0], + Port: uint16(port), + } + clientRecords = append(clientRecords, cr) + } else { + fmt.Printf("client-stls: failed to parse target (domain:port): %s\n", cstls) } - clientRecords = append(clientRecords, cr) } } if *flagForceFallback && !fallback && *flagTest { @@ -289,33 +297,41 @@ if len(*flagServerDTLS) > 0 { for _, sdtls := range *flagServerDTLS { target := strings.SplitN(sdtls, ":", 2) - port, err := strconv.ParseUint(target[1], 10, 16) - if err != nil { - fmt.Println(err) - continue - } - sr := xmppsrv.SRV{ - Type: "xmpps-server", - Target: target[0], - Port: uint16(port), + if len(target) == 2 { + port, err := strconv.ParseUint(target[1], 10, 16) + if err != nil { + log.Fatalf("server-dtls: failed to parse target (domain:port): %s: %v", + sdtls, err) + } + sr := xmppsrv.SRV{ + Type: "xmpps-server", + Target: target[0], + Port: uint16(port), + } + serverRecords = append(serverRecords, sr) + } else { + fmt.Printf("server-dtls: failed to parse target (domain:port): %s\n", sdtls) } - serverRecords = append(serverRecords, sr) } } if len(*flagServerSTLS) > 0 { for _, sstls := range *flagServerSTLS { target := strings.SplitN(sstls, ":", 2) - port, err := strconv.ParseUint(target[1], 10, 16) - if err != nil { - fmt.Println(err) - continue - } - sr := xmppsrv.SRV{ - Type: "xmpp-server", - Target: target[0], - Port: uint16(port), + if len(target) == 2 { + port, err := strconv.ParseUint(target[1], 10, 16) + if err != nil { + log.Fatalf("server-stls: failed to parse target (domain:port): %s: %v", + sstls, err) + } + sr := xmppsrv.SRV{ + Type: "xmpp-server", + Target: target[0], + Port: uint16(port), + } + serverRecords = append(serverRecords, sr) + } else { + fmt.Printf("server-stls: failed to parse target (domain:port): %s\n", sstls) } - serverRecords = append(serverRecords, sr) } } if *flagForceFallback && !fallback && *flagTest { @@ -1195,10 +1211,15 @@ now := time.Now() switch { case time.Until(expiry).Hours() < 336: - fmt.Printf("[%sWARN%s]", colorYellow, colorReset) + fmt.Printf("Test: [%sWARN%s]", colorYellow, colorReset) printTLSVersion(c.ConnectionState().Version) - fmt.Printf(" (Cert expires in %d days at %s)\n", - int(time.Until(expiry).Hours())/24, expiry.Truncate(time.Second).String()) + expiryDays := int(time.Until(expiry).Hours())/24 + 1 + dayString := fmt.Sprintf("%d days", expiryDays) + if expiryDays == 1 { + dayString = "one day" + } + fmt.Printf(" (Cert expires in less than %s at %s)\n", + dayString, expiry.Truncate(time.Second).String()) case now.Before(expiry) && now.After(start): fmt.Print(statusOK) printTLSVersion(c.ConnectionState().Version)
