hp-plugin uses outdated downloaded files

Bug #1018312 reported by Johannes Meixner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Sanjay Kumar

Bug Description

On my SLED11-SP1 32-bit/i586 workstation I run HPLIP 3.12.6 from
http://download.opensuse.org/repositories/Printing/SLE_11_SP1/i586/

I have a HP LaserJet 1020 connected via USB.

When I run hp-plugin for the first time I get:
==============================================
# ls -l /tmp/hplip*plugin*
-rw-r--r-- 1 root root 1845394 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run
-rw-r--r-- 1 root root 198 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run.asc
==============================================

When I run hp-plugin a second time it seems to ignores
the newest downloaded files and uses the older files instead:
==============================================
# hp-plugin -i -g
.
.
.
  Option Description
  ---------- --------------------------------------------------
  d Download plug-in from HP (recomended)
  p Specify a path to the plug-in (advanced)
  q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d
.
.
.
hp-plugin[13145]: debug: /usr/bin/wget --cache=off -P /tmp
 http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.6-plugin.run
...
2012-06-27 11:31:48 (845 KB/s) - `/tmp/hplip-3.12.6-plugin.run.1' saved [1845394/1845394]
.
.
.
hp-plugin[13145]: debug: /usr/bin/wget --cache=off -P /tmp
 http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.6-plugin.run.asc
...
2012-06-27 11:31:49 (19.6 MB/s) - `/tmp/hplip-3.12.6-plugin.run.asc.1' saved [198/198]
.
.
.
hp-plugin[13145]: debug: Verifying plugin with digital keys: /usr/bin/gpg --no-permission-warning
 --verify /tmp/hplip-3.12.6-plugin.run.asc /tmp/hplip-3.12.6-plugin.run
==============================================

In particular the last command should be
==============================================
/usr/bin/gpg --no-permission-warning --verify
 /tmp/hplip-3.12.6-plugin.run.asc.1 /tmp/hplip-3.12.6-plugin.run.1
==============================================
because I have now those files:
==============================================
# ls -l /tmp/hplip*plugin*
-rw-r--r-- 1 root root 1845394 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run
-rw-r--r-- 1 root root 1845394 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run.1
-rw-r--r-- 1 root root 198 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run.asc
-rw-r--r-- 1 root root 198 Jun 21 00:52 /tmp/hplip-3.12.6-plugin.run.asc.1
==============================================

I assume that the second hp-plugin run runs /tmp/hplip-3.12.6-plugin.run
instead of what it had actually downloaded /tmp/hplip-3.12.6-plugin.run.1

I think usually is does not matter (i.e. when the older stuff is valid)
but nevertheless I tink it is a bug when hp-plugin does not to work
with the exact files which it had downloaded in its current run.

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Johannes,

Thanks for bringing it into our notice. We will work on it and provide a fix in the next release or so.

Thanks,
Sanjay

Changed in hplip:
status: New → Confirmed
assignee: nobody → Sanjay Kumar (sanjay-kumar14)
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.