/var/lib/dpkg/info/nvidia-common.config: line 11: [: too many arguments

Bug #505855 reported by Matt Zimmerman
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Fix Released
Medium
Alberto Milone

Bug Description

Binary package hint: nvidia-common

This line:

        if [ ${LATEST} != "none" ]; then

should quote the value of $LATEST:

        if [ "${LATEST}" != "none" ]; then

However, note that on my system, the output is:

mizar:[~] nvidia-detector
none
none

i.e. it still won't compare equal to "none"

ProblemType: Bug
Architecture: i386
Date: Mon Jan 11 11:27:33 2010
DistroRelease: Ubuntu 10.04
Package: nvidia-common 0.2.16
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: nvidia-common
Tags: lucid
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Matt Zimmerman (mdz) wrote :
Revision history for this message
Alberto Milone (albertomilone) wrote :

Thanks for reporting the problem. That is correct.

I'm not sure as to why you're getting none more than once.

Changed in nvidia-common (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Alberto Milone (albertomilone)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 0.2.17

---------------
nvidia-common (0.2.17) lucid; urgency=low

  * setup.py:
    - Add pre-inst hook for the NVIDIA installer as
      the latter may interact badly with the Ubuntu
      packages(LP: #317703).
  * NvidiaDetector/nvidiadetector.py:
    - Handle driver flavours which have strings (instead
      of integers in their name).
  * NvidiaDetector/alternatives.py:
    - Alternatives class to get the list of alternatives
      and to get and set the alternative in use.
  * nvidia-common:
    - ${LATEST} should have quotation marks (LP: #505855).
 -- Alberto Milone <email address hidden> Mon, 11 Jan 2010 18:13:11 +0100

Changed in nvidia-common (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Matt Zimmerman (mdz) wrote :

Should I file a separate bug about the duplicate "none"? It doesn't seem correct, and the postinst script will behave differently.

Revision history for this message
Alberto Milone (albertomilone) wrote :

Yes, please file a separate bug report about that.

Revision history for this message
Matt Zimmerman (mdz) wrote :

FYI, the duplicate "none" seems to have gone away on that system in current Lucid, so I'm not filing a bug about it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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