Mailinglist Archive: opensuse-bugs (9003 mails)
| < Previous | Next > |
[Bug 422080] New: %requires_eq clears locale incorrectly
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Tue, 2 Sep 2008 03:45:56 -0600 (MDT)
- Message-id: <bug-422080-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=422080
Summary: %requires_eq clears locale incorrectly
Product: openSUSE 11.1
Version: Factory
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Basesystem
AssignedTo: mls@xxxxxxxxxx
ReportedBy: mmarek@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
%requires_eq is defined as
%requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires:
%%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' |
grep -v "is not")
The LC_ALL=C is at the wrong place, the author probably intended to clear
locale for rpm to disable localization of the "package xxx is not installed"
message, but:
$ LC_MESSAGES=cs_CZ.UTF-8 rpm --eval '%requires_eq xxx'
balíček xxx není nainstalován
It should be
.. echo '%*' | LC_ALL=C xargs -r rpm -q --qf ...
Same for the newly added %requires_ge macro.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Summary: %requires_eq clears locale incorrectly
Product: openSUSE 11.1
Version: Factory
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Basesystem
AssignedTo: mls@xxxxxxxxxx
ReportedBy: mmarek@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
%requires_eq is defined as
%requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires:
%%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' |
grep -v "is not")
The LC_ALL=C is at the wrong place, the author probably intended to clear
locale for rpm to disable localization of the "package xxx is not installed"
message, but:
$ LC_MESSAGES=cs_CZ.UTF-8 rpm --eval '%requires_eq xxx'
balíček xxx není nainstalován
It should be
.. echo '%*' | LC_ALL=C xargs -r rpm -q --qf ...
Same for the newly added %requires_ge macro.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |