Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328891 - app-admin/conky-1.8.0-r1: broken ${if_existing FILE STRING}
Summary: app-admin/conky-1.8.0-r1: broken ${if_existing FILE STRING}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 02:05 UTC by Alex Efros
Modified: 2010-07-24 21:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2010-07-19 02:05:52 UTC
In app-admin/conky-1.7.2-r2 and older versions both ${if_existing FILE} and ${if_existing FILE STRING} works as expected/documented. But in 1.8.0-r1 ${if_existing FILE} work as expected but ${if_existing FILE STRING} work incorrectly (true/false reversed).

Reproducible: Always

Steps to Reproduce:
1. echo aaa > /tmp/conky.txt
2. add these to ~/.conkyrc:
${if_existing /tmp/conky.txt}file true${else}file false${endif}
${if_existing /tmp/conky.txt a}str true${else}str false${endif}
${if_existing /tmp/conky.txt b}str true${else}str false${endif}
3. run conky or wait until it automatically reload config

Actual Results:  
file true
str false
str true

Expected Results:  
file true
str true
str false
Comment 2 Daniel Pielmeier gentoo-dev 2010-07-24 21:46:04 UTC
+  24 Jul 2010; Daniel Pielmeier <billie@gentoo.org> conky-1.8.0-r2.ebuild,
+  +files/conky-1.8.0-if-existing.patch:
+  Add patch from upstream to fix if_existing. See bug #328891.