Attached is an example config file and python script which demonstrates the parsing error. This was reproduced on focal with:
$ apt-cache policy libexpat1 libexpat1: Installed: 2.2.9-1ubuntu0.2 Candidate: 2.2.9-1ubuntu0.2 Version table: *** 2.2.9-1ubuntu0.2 500 500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages 100 /var/lib/dpkg/status 2.2.9-1build1 500 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
This example worked with 2.2.9-1build1 but not 2.2.9-1ubuntu0.2.
To run the example:
$ ./parser_example.py ./sample-config.xml
The sample-config.xml was generated by jenkins (version 2.303.2) of a freestyle project with only the job name and description set.
Attached is an example config file and python script which demonstrates the parsing error. This was reproduced on focal with:
$ apt-cache policy libexpat1 archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages security. ubuntu. com/ubuntu focal-security/main amd64 Packages dpkg/status archive. ubuntu. com/ubuntu focal/main amd64 Packages
libexpat1:
Installed: 2.2.9-1ubuntu0.2
Candidate: 2.2.9-1ubuntu0.2
Version table:
*** 2.2.9-1ubuntu0.2 500
500 http://
500 http://
100 /var/lib/
2.2.9-1build1 500
500 http://
This example worked with 2.2.9-1build1 but not 2.2.9-1ubuntu0.2.
To run the example:
$ ./parser_example.py ./sample-config.xml
The sample-config.xml was generated by jenkins (version 2.303.2) of a freestyle project with only the job name and description set.