Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package trurl for openSUSE:Factory checked 
in at 2024-09-17 18:19:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trurl (Old)
 and      /work/SRC/openSUSE:Factory/.trurl.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trurl"

Tue Sep 17 18:19:08 2024 rev:15 rq:1201561 version:0.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/trurl/trurl.changes      2024-09-01 
19:21:19.071747625 +0200
+++ /work/SRC/openSUSE:Factory/.trurl.new.29891/trurl.changes   2024-09-17 
18:20:12.135946983 +0200
@@ -1,0 +2,9 @@
+Sat Sep 14 07:48:58 UTC 2024 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 0.15.1
+  * manpage: fix 0.15 mistakes.
+  * Makefile: check for trurl.1 before installing.
+  * trurl: fix misbehavior on empty query param.
+  * trurl: fix handling of query pair with blank left side by.
+
+-------------------------------------------------------------------

Old:
----
  trurl-0.15.tar.gz

New:
----
  trurl-0.15.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trurl.spec ++++++
--- /var/tmp/diff_new_pack.yGeWHW/_old  2024-09-17 18:20:12.743971565 +0200
+++ /var/tmp/diff_new_pack.yGeWHW/_new  2024-09-17 18:20:12.747971727 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           trurl
-Version:        0.15
+Version:        0.15.1
 Release:        0
 Summary:        Command line tool for URL parsing and manipulation
 License:        MIT

++++++ trurl-0.15.tar.gz -> trurl-0.15.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/Makefile new/trurl-0.15.1/Makefile
--- old/trurl-0.15/Makefile     2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/Makefile   2024-09-12 14:55:53.000000000 +0200
@@ -52,7 +52,9 @@
        $(INSTALL) -d $(DESTDIR)$(BINDIR)
        $(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
        $(INSTALL) -d $(DESTDIR)$(MANDIR)
-       $(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR)
+       (if test -f $(MANUAL); then \
+       $(INSTALL) -m 0644 $(MANUAL) $(DESTDIR)$(MANDIR); \
+       fi)
 
 .PHONY: clean
 clean:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/RELEASE-NOTES 
new/trurl-0.15.1/RELEASE-NOTES
--- old/trurl-0.15/RELEASE-NOTES        2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/RELEASE-NOTES      2024-09-12 14:55:53.000000000 +0200
@@ -1,24 +1,14 @@
-# trurl 0.15
+# trurl 0.15.1
 
 ## What changed
 
- - Makefile: fix LDFLAGS order; and don't force -Werror
- - README: add the logo
- - README: add trurl / libcurl compatibilty to readme. link to URL quirks
- - singleurl: fix query_is_modified
- - trurl.md: provide the manpage in markdown
- - trurl: "normalize" query pairs
- - trurl: accept "control codes" in get output
- - trurl: allow "control bytes" in JSON output
- - trurl: canonicalize the path
- - trurl: fix silent error in json json function
- - trurl: make --replace URL encode the provided data argument
- - trurl: make must: prefix for gets return error for missing part
- - trurl: on strdup() failures, exit immediately
- - trurl: optimize the path append loop
- - trurl: rename --force-replace to --replace-append
- - trurl: use casecompare instead of a strncasecmp define
+ - mkrelease: update the source, not title
+ - trurl: escape backslash with a backslash
+ - Makefile: check for trurl.1 before installing
+ - trurl: fix misbehavior on empty query param
+ - trurl: fix handling of query pair with blank left side
+ - trurl.md: remove 'added-in:'
 
 Contributors to this release:
 
- Daniel Stenberg, Emanuele Torre, Jacob Mealey
+ Daniel Stenberg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/mkrelease new/trurl-0.15.1/mkrelease
--- old/trurl-0.15/mkrelease    2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/mkrelease  2024-09-12 14:55:53.000000000 +0200
@@ -40,7 +40,7 @@
 mkdir $rel
 
 # update title in markdown manpage
-sed -ie "s/^Title: trurl \([0-9.]*\)/Title: trurl $version/" trurl.md
+sed -ie "s/^Source: trurl \([0-9.]*\)/Source: trurl $version/" trurl.md
 
 # update version number in header file
 sed -ie "s/\"[\.0-9]*\"/\"$version\"/" version.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/tests.json new/trurl-0.15.1/tests.json
--- old/trurl-0.15/tests.json   2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/tests.json 2024-09-12 14:55:53.000000000 +0200
@@ -2783,5 +2783,90 @@
             "stderr": "",
             "returncode": 0
         }
+    },
+    {
+        "input": {
+            "arguments": [
+                "http://example.org/?a=&b=1";
+            ]
+        },
+        "expected": {
+            "stdout": "http://example.org/?a=&b=1\n";,
+            "stderr": "",
+            "returncode": 0
+        }
+    },
+    {
+        "input": {
+            "arguments": [
+                "http://example.org/?a=1&b=";
+            ]
+        },
+        "expected": {
+            "stdout": "http://example.org/?a=1&b=\n";,
+            "stderr": "",
+            "returncode": 0
+        }
+    },
+    {
+        "input": {
+            "arguments": [
+                "http://example.org/?a=1&b=&c=2";
+            ]
+        },
+        "expected": {
+            "stdout": "http://example.org/?a=1&b=&c=2\n";,
+            "stderr": "",
+            "returncode": 0
+        }
+    },
+    {
+        "input": {
+            "arguments": [
+                "http://example.org/?a=1&b=&c=2";,
+                "--json"
+            ]
+        },
+        "expected": {
+            "stdout":[
+                {
+                    "url": "http://example.org/?a=1&b=&c=2";,
+                    "parts": {
+                        "scheme": "http",
+                        "host": "example.org",
+                        "path": "/",
+                        "query": "a=1&b=&c=2"
+                    },
+                    "params": [
+                        {
+                            "key": "a",
+                            "value": "1"
+                        },
+                        {
+                            "key": "b",
+                            "value": ""
+                        },
+                        {
+                            "key": "c",
+                            "value": "2"
+                        }
+                    ]
+                }
+            ],
+            "stderr": "",
+            "returncode": 0
+        }
+    },
+    {
+        "input": {
+            "arguments": [
+                "http://example.org/?=1&b=2&c=&=3";
+            ]
+        },
+        "expected": {
+            "stdout": "http://example.org/?=1&b=2&c=&=3\n";,
+            "stderr": "",
+            "returncode": 0
+        }
     }
 ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/trurl.1 new/trurl-0.15.1/trurl.1
--- old/trurl-0.15/trurl.1      2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/trurl.1    2024-09-12 14:55:53.000000000 +0200
@@ -1,5 +1,5 @@
 .\" generated by cd2nroff 0.1 from trurl.md
-.TH trurl 0.15 1 "2024-08-28" trurl
+.TH trurl 1 "2024-09-12" trurl 0.15.1
 .SH NAME
 trurl \- transpose URLs
 .SH SYNOPSIS
@@ -230,7 +230,7 @@
 string that match the instruction.
 
 To match a literal trailing asterisk instead of using a wildcard, escape it 
with
-a backslash in front of it. Like \fI\*\fP.
+a backslash in front of it. Like \fI\\*\fP.
 .IP "--url [URL]"
 Set the input URL to work with. The URL may be provided without a scheme,
 which then typically is not actually a legal URL but trurl tries to figure
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/trurl.c new/trurl-0.15.1/trurl.c
--- old/trurl-0.15/trurl.c      2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/trurl.c    2024-09-12 14:55:53.000000000 +0200
@@ -1378,24 +1378,48 @@
     else {
       int llen;
       int rlen;
+      int leftside;
+      int rightside;
 
       /* decode both sides */
-      left = decodequery(source, (int)(sep - source), &llen);
-      if(!left)
-        goto error;
-      right = decodequery(sep + 1,
-                          (int)len - (int)(sep - source) - 1, &rlen);
-      if(!right)
-        goto error;
+      leftside = (int)(sep - source);
+      if(leftside) {
+        left = decodequery(source, leftside, &llen);
+        if(!left)
+          goto error;
+      }
+      else {
+        left = NULL;
+        llen = 0;
+      }
+
+      /* length on the right side of '=': */
+      rightside = (int)len - (int)(sep - source) - 1;
+
+      if(rightside) {
+        right = decodequery(sep + 1,
+                            (int)len - (int)(sep - source) - 1, &rlen);
+        if(!right)
+          goto error;
+      }
+      else {
+        right = NULL;
+        rlen = 0;
+      }
+
       /* encode both sides again */
-      el = encodequery(left, llen);
-      if(!el)
-        goto error;
-      er = encodequery(right, rlen);
-      if(!er)
-        goto error;
+      if(left) {
+        el = encodequery(left, llen);
+        if(!el)
+          goto error;
+      }
+      if(right) {
+        er = encodequery(right, rlen);
+        if(!er)
+          goto error;
+      }
 
-      encode = curl_maprintf("%s=%s", el, er);
+      encode = curl_maprintf("%s=%s", el ? el : "", er ? er : "");
       if(!encode)
         goto error;
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/trurl.md new/trurl-0.15.1/trurl.md
--- old/trurl-0.15/trurl.md     2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/trurl.md   2024-09-12 14:55:53.000000000 +0200
@@ -1,13 +1,12 @@
 ---
 c: Copyright (C) Daniel Stenberg, <daniel.se>, et al.
 SPDX-License-Identifier: curl
-Title: trurl 0.15
+Title: trurl
 Section: 1
-Source: trurl
+Source: trurl 0.15.1
 See-also:
   - curl (1)
   - wcurl (1)
-Added-in: 7.1
 ---
 
 # NAME
@@ -289,7 +288,7 @@
 string that match the instruction.
 
 To match a literal trailing asterisk instead of using a wildcard, escape it 
with
-a backslash in front of it. Like `\*`.
+a backslash in front of it. Like `\\*`.
 
 ## --url [URL]
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trurl-0.15/version.h new/trurl-0.15.1/version.h
--- old/trurl-0.15/version.h    2024-08-28 11:24:45.000000000 +0200
+++ new/trurl-0.15.1/version.h  2024-09-12 14:55:53.000000000 +0200
@@ -24,6 +24,6 @@
  *
  ***************************************************************************/
 
-#define TRURL_VERSION_TXT "0.15"
+#define TRURL_VERSION_TXT "0.15.1"
 
 #endif

Reply via email to