File osc-fix-xpath.patch of Package osc

commit fd5483c3a273c48b4b0070d85b1a33e295749871
Author: Oleg Girko <ol@infoserver.lv>
Date:   Wed Aug 25 19:37:31 2021 +0100

    Fix XPath used in search requests.
    
    Newer rexml Ruby gem used on OBS server side uses stricter XPath parsing.
    This change fixes incorrect XPath that was accepted by older rexml,
    but not accepted by newer one.
    
    Signed-off-by: Oleg Girko <ol@infoserver.lv>

diff --git a/osc/commandline.py b/osc/commandline.py
index 4a9c797b..bcd3365b 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -2653,7 +2653,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
                     sr_actions = rq.get_actions('submit')
                     for action in sr_actions:
                         u = makeurl(apiurl, ['/search/package'], {
-                              'match' : "([devel/[@project='%s' and @package='%s']])" % (action.tgt_project, action.tgt_package)
+                              'match' : "([devel[@project='%s' and @package='%s']])" % (action.tgt_project, action.tgt_package)
                               })
                         f = http_GET(u)
                         root = ET.parse(f).getroot()
@@ -7627,7 +7627,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
 
         if list_patchinfos:
             u = makeurl(apiurl, ['/search/package'], {
-                'match' : "([kind='patchinfo' and issue/[@state='OPEN' and owner/@login='%s']])" % user
+                'match' : "([kind='patchinfo' and issue[@state='OPEN' and owner/@login='%s']])" % user
                  })
             f = http_GET(u)
             root = ET.parse(f).getroot()