[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#362891: xserver-xorg: post-installation script fails during install



This one time, at band camp, Steve Langasek said:
> - (to the maintainers) is there anything new in the templates that could
>   cause a parse failure?

Here is what I see after much beating to get sensible sh -x output:

+ which discover
++ discover_video
++ which discover
+++ discover --disable-all --enable=pci '--format=%V %M\t%S\t%D\n' video
++ DISCOVERED_VIDEO='usage: discover [--bus-summary] [OPTIONS] [BUS [...]]
       discover --type-summary [OPTIONS] [TYPE [...]]
       discover --data-path=PATH [--data-version=VERSION] [TYPE | ID] [...]
       discover --version
       discover --help'
+ DISCOVERED_VIDEO=

and so:

steve@gashuffer:~$ sudo discover --disable-all --enable=pci --format="%V %M\t%S\t%D\n" video
discover: unrecognized option `--disable-all'
usage: discover [--bus-summary] [OPTIONS] [BUS [...]]
       discover --type-summary [OPTIONS] [TYPE [...]]
       discover --data-path=PATH [--data-version=VERSION] [TYPE | ID] [...]
       discover --version
       discover --help
steve@gashuffer:~$ echo $?
64

Did discover change behavior recently?

This needs an eval or something to not exit in the middle of the
script, as discover is more of a nicety than a requirement, but for the
meantime, making the script call discover with the right arguments is
probably the easiest way forward.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature


Reply to: