Error "E: required field Package not found in (Debian::FieldError) " on some rare packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ruby-debian (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
While using Debian::DpkgDeb module, sometimes "E: required field Package not found in (Debian:
The package involved here is "libegl1-
Here is the error log
/usr/bin/ruby -e $stdout.
/var/lib/
from /var/lib/
from /var/lib/
from /var/lib/
from /var/lib/
from /var/lib/
from /home/learner/
from /home/learner/
from /home/learner/
from /home/learner/
from -e:1:in `load'
from -e:1:in `<main>'
After inspecting several hours, I found the cause. It it the method `load` in DpkgDeb module. in Line 143 of debian.rb source file. The comparison made won't match with that package's string, which is "control.tar.gz/". I have patched the file and it worked.
I am uploading a patch which helped me resolve the issue