maurerr / Entware-backports

Entware-backports
GNU General Public License v2.0
8 stars 2 forks source link

Reinstate python-lxml in the feed #3

Open davygravy opened 5 years ago

davygravy commented 5 years ago

Package: python-lxml

Can we please reinstate python-lxml?

A. without python-lxml:

cat /opt/etc/avahi/services/AirPrint-HPC4480TEST.service 
<?xml version="1.0" ?><!DOCTYPE service-group  SYSTEM 'avahi-service.dtd'><service-group><name replace-wildcards="yes">AirPrint HPC4480TEST @ %h</name><service><type>_ipp._tcp</type><subtype>_universal._sub._ipp._tcp</subtype><port>631</port><txt-record>txtvers=1</txt-record><txt-record>qtotal=1</txt-record><txt-record>Transparent=T</txt-record><txt-record>URF=none</txt-record><txt-record>rp=printers/HPC4480TEST</txt-record><txt-record>note=TESTHP Color Photosmart C4480 USB Printer</txt-record><txt-record>product=(GPL Ghostscript)</txt-record><txt-record>printer-state=3</txt-record><txt-record>printer-type=0x2901c</txt-record><txt-record>pdl=application/octet-stream,application/pdf,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,image/urf,text/html,text/plain,application/vnd.adobe-reader-postscript,application/vnd.cups-pdf<root@ShareMaxN300:/opt/tmp/airprint-support-mipselsf-k2.6-EntBP# python airprint-generate.py -d /opt/etc/avahi
/services/

In a CLI/terminal window, the difference is actually much more stark, since line-breaks are imposed... Without python-lxml, the output really isn't human-readable in a practical way.

B. with python-lxml:

cat /opt/etc/avahi/services/AirPrint-HPC4480TEST.service 
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">AirPrint HPC4480TEST @ %h</name>
  <service>
    <type>_ipp._tcp</type>
    <subtype>_universal._sub._ipp._tcp</subtype>
    <port>631</port>
    <txt-record>txtvers=1</txt-record>
    <txt-record>qtotal=1</txt-record>
    <txt-record>Transparent=T</txt-record>
    <txt-record>URF=none</txt-record>
    <txt-record>rp=printers/HPC4480TEST</txt-record>
    <txt-record>note=TESTHP Color Photosmart C4480 USB Printer</txt-record>
    <txt-record>product=(GPL Ghostscript)</txt-record>
    <txt-record>printer-state=3</txt-record>
    <txt-record>printer-type=0x2901c</txt-record>
    <txt-record>pdl=application/octet-stream,application/pdf,application/postscript,application/vnd.cups-raster,image/gif,image/jpeg,image/png,image/tiff,image/urf,text/html,text/plain,application/vnd.adobe-reader-postscript,application/vnd.cups-pdf</txt-record>
  </service>
</service-group>

Thanks for listening,

Dave

maurerr commented 5 years ago

fixed in https://github.com/maurerr/entware-packages/commit/dc8e51de90ed778e038e4f4a1ba4c869afa66486 it will be featured in the new packages update

davygravy commented 5 years ago

Thanks Maurerr! I’ll give it a test once the package is up. Have a good day.

maurerr commented 5 years ago

packages are finally up