Hi!

On Mon, 2014-12-01 at 20:14:55 -0800, Josh Triplett wrote:
> Package: dpkg
> Version: 1.17.22
> Severity: normal
> 
> Preparing to unpack .../chromium_39.0.2171.71-1_amd64.deb ...
> /var/lib/dpkg/tmp.ci/preinst: 6: /var/lib/dpkg/tmp.ci/preinst: upgrade: not 
> found
> Unpacking chromium (39.0.2171.71-1) over (38.0.2125.101-3) ...
> 
> I've seen such errors from maintainer scripts before, and they previously
> showed the name of the package, rather than just a temporary dpkg path.

That's because the script does not return with an error exit code, and
as such I don't think dpkg can do much. This is the equivalent broken
code:

,--- preinst ---
#!/bin/sh
set -e
if "$1" = "upgrade"; then
    echo "action"
fi
`---

,---
$ ./preinst upgrade; echo $?
./preinst: 3: ./preinst: upgrade: not found
0
`---

Given the above, I guess I'll just be closing this report.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to