Bug 5403

Summary: Package installer for zypper is incompatible with SLE12
Product: ThinLinc Reporter: Henrik Andersson <hean01>
Component: Server InstallerAssignee: Karl Mikaelsson <derfian>
Status: CLOSED FIXED    
Severity: Normal CC: ossman, samuel
Priority: P2 Keywords: prosaic, samuel_tester
Version: 4.2.0   
Target Milestone: 4.4.0   
Hardware: PC   
OS: Unknown   
Acceptance Criteria:
Bug Depends on:    
Bug Blocks: 5405, 5437    

Description Henrik Andersson cendio 2015-01-26 10:55:24 CET
Here is the output the command on SLE12

# zypper --xml what-provides python-ldap
<?xml version='1.0'?>
<stream>
<message type="info">Command &apos;what-provides&apos; is replaced by &apos;search --provides --match-exact&apos;.</message>
<message type="info">See &apos;help search&apos; for all available options.</message>
<message type="info">Loading repository data...</message>
<message type="info">Reading installed packages...</message>

<search-result version="0.0">
<solvable-list>
<solvable status="not-installed" name="python-ldap" summary="Python LDAP interface" kind="package"/>
</solvable-list>
</search-result>
</stream>

Looking at code its seems that <SLE12 reports a plain text table which is parsed instead of <search-result> tag as above.
Comment 1 Karl Mikaelsson cendio 2015-02-20 14:53:40 CET
So far...

 - r30011: Support for the new XML format 
 - r30012: Update autotests with the new XML format
 - r30013: Don't try to symlink /opt/thinlinc/libexec/openssl when starting tests (we haven't shipped openssl in forever)
Comment 2 Karl Mikaelsson cendio 2015-02-20 17:38:10 CET
 - r30014: match all packages, not just not-installed ones
 - r30019: take special care with "application" packages
 - r30020: corner case: after calling resolve() we can be left with an empty transaction - make sure to differentiate between an empty list (no-op) and None (hasn't been run yet)
 - r30021: misc updates to the main() function

That should be all.
Comment 3 Samuel Mannehed cendio 2015-05-11 10:17:32 CEST
Looks good.

tl-setup works well on SLES 12 where the new XML format is used.
tl-setup works well on SLED 11 with sp3 where the plain text table is used.