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@xxxxxxxxxxxxxxxxxxx 2006-12-29 03:14 EST ------- (In reply to comment #3) > I get the following backtrace. > ----------------------------------------------------- > [root@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@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@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. _______________________________________________ Fedora-package-review mailing list Fedora-package-review@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-package-review