Well I found one problem in the script. But unfortunately it does not
fix the problem.

the line

duplexsizes=`grep -v '^//' $f | grep CustomMedia | grep '\.Duplex' | cut
-d " " -f 4 | cut -d "/" -f 1 | cut -d '"' -f 2 | perl -p -e
"s/\.Duplex//" | sort | uniq`

does not match all of the CustomMedia .Duplex lines in the file. It
misses the ones which do no begin with 3 spaces. Some of these have
tabs, a mixture of tabs and spaces, or a different number of spaces.

As far as I can see this does not matter as any ones it misses are
picked up elsewhere in the file.

I only picked this up using my cut down version of the drv file which
was small enough not to have alternative findbale lines.

I will now retry a the tests I did with the cut down file to see if this
has caused me to draw bad conclusions.

But I think this needs to fixed anyway for hygienes sake.

This appears to work.

duplexsizes=`grep -v '^//' $f | grep CustomMedia | grep '\.Duplex' | cut
-d '"' -f 2 | cut -d '/' -f 1 | perl -p -e "s/\.Duplex//" | sort | uniq`

I don't know if this assumption that all the relevant lines start with 3
spaces affects any of the perl code lower down in the script.

I struggle to read perl !!!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1568996

Title:
  Duplex printing does not work properly for HP printers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to