Sorry, I hadn't seen your initial response

I was using the fortune program to show me random Italian quotes to work on 
learning the language. Before I could just point fortune at the folder with all 
the Italian fortunes. That's no longer easy without them in a separate folder.

So in my .bashrc I have

if [[ -x /usr/games/fortune ]]; then
if [[ -d /usr/share/games/fortunes/it ]]; then
/usr/games/fortune /usr/share/games/fortunes/it
elif type dpkg > /dev/null; then
# As of v2, debian's fortunes-it package no longer puts the
# fortunes in a separate directory.
dpkg -L fortunes-it | grep "/usr/share/games/fortunes/" | grep -v \\. | xargs 
-r /usr/games/fortune
fi
fi

The call to dpkg is an obvious kludge. I'm surprised all the debian fortune 
maintainers don't have a convention/best practice around this.

I'm just end-user, so take my opinion/usage with a grain of salt. (To be fair, 
I could just uninstall the other fortune-providing packages.)

Sent with Shortwave 
<https://www.shortwave.com?utm_medium=email&utm_content=signature&utm_source=YWZvZ2xpYUBnbWFpbC5jb20=>

On Mon Apr 15, 2024, 04:51 PM GMT, Debian Bug Tracking System 
<mailto:ow...@bugs.debian.org> wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the fortunes-it package:
>
> #1065032: fortunes-it: fortunes/it directory no longer used
>
> It has been closed by Salvo Tomaselli <tipos...@tiscali.it>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Salvo Tomaselli 
> <tipos...@tiscali.it> by
> replying to this email.
>
>
> --
> 1065032: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065032
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems

Reply via email to