[Bug 220860] Review Request: galternatives - Alternatives Configurator
bugzilla at redhat.com
bugzilla at redhat.com
Fri Dec 29 08:14:22 UTC 2006
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: Review Request: galternatives - Alternatives Configurator
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=220860
------- Additional Comments From mtasaka at ioa.s.u-tokyo.ac.jp 2006-12-29 03:14 EST -------
(In reply to comment #3)
> I get the following backtrace.
> -----------------------------------------------------
> [root at softbank218114170036 ~]# LANG=C alternatives --display print
> print - status is auto.
> link currently points to /usr/bin/lpr.cups
> /usr/bin/lpr.cups - priority 40
> slave print-cancel: /usr/bin/cancel.cups
> slave print-lp: /usr/bin/lp.cups
> slave print-lpq: /usr/bin/lpq.cups
> slave print-lprm: /usr/bin/lprm.cups
> slave print-lpstat: /usr/bin/lpstat.cups
> slave print-lpc: /usr/sbin/lpc.cups
> slave print-cancelman: /usr/share/man/man1/cancel-cups.1.gz
> slave print-lpman: /usr/share/man/man1/lp-cups.1.gz
> slave print-lpqman: /usr/share/man/man1/lpq-cups.1.gz
> slave print-lprman: /usr/share/man/man1/lpr-cups.1.gz
> slave print-lprmman: /usr/share/man/man1/lprm-cups.1.gz
> slave print-lpstatman: /usr/share/man/man1/lpstat-cups.1.gz
> slave print-lpcman: /usr/share/man/man8/lpc-cups.8.gz
> Current `best' version is /usr/bin/lpr.cups.
> [root at softbank218114170036 ~]# galternatives
> ==========================================
> (then select the item of print)
> ==========================================
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/galternatives/main.py", line 364, in
> alternative_selected_cb
> self.update_options_tree ()
> File "/usr/lib/python2.5/site-packages/galternatives/main.py", line 400, in
> update_options_tree
> self.PRIORITY, int(option['priority']),
> ValueError: invalid literal for int() with base 10: '40 cups'
> ----------------------------------------------------
>
> Would you know why?
Ah... I found because /var/lib/alternatives/print says:
------------------------------------------------------
auto
/usr/bin/lpr
print-cancel
<snip>
/usr/bin/lpr.cups
40 cups <- THIS LINE
/usr/bin/cancel.cups
<snip>
--------------------------------------------------
And....
--------------------------------------------------
[tasaka1 at localhost ~]$ rpm -q --scripts cups
postinstall scriptlet (using /bin/sh):
<snip>
/usr/sbin/alternatives --install /usr/bin/lpr print /usr/bin/lpr.cups 40 \
--slave /usr/bin/lp print-lp /usr/bin/lp.cups \
<snip>
--initscript cups
--------------------------------------------------
and --initscripts option is "a Red Hat Linux specific option"
according to "man alternatives"
Then a patch is needed
* to treat initscripts options correctly
* or to ignore initscripts options for now. Then a documentation
(like README.fedora) which explains that this package ignores
initscripts option currently.
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Fedora-package-review
mailing list