Package: llgal
Version: 0.13.16-3
Severity: wishlist
Tags: patch

Option -L / list_link prevents adding artifical thumbnail in case of
entries that normally has _not_ one. Unfortunately if user
supplies custom thumbnails (e.g. for his/her videos) they won't appear
when using "list_link=1" for other reasons. This patch overrides
-L if user did manually create a thumbnail.

Gabor

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages llgal depends on:
ii  imagemagick         8:6.6.0.4-3+squeeze3 image manipulation programs
ii  libimage-size-perl  3.221-1              module for determining image sizes
ii  liblocale-gettext-p 1.05-6               Using libc functions for internati
ii  liburi-perl         1.54-2               module to manipulate and access UR
ii  perl                5.10.1-17squeeze3    Larry Wall's Practical Extraction 

Versions of packages llgal recommends:
ii  libimage-exiftool-perl        8.15-1     Library and program to read and wr

llgal suggests no packages.

-- no debconf information
--- /usr/bin/llgal.orig 2010-07-03 18:21:06.000000000 +0200
+++ llgal       2012-08-04 10:55:42.829878046 +0200
@@ -899,8 +899,8 @@
     if ($opts->{list_links}) {
        map {
            my $type = $_->{type} ;
-           if ($type == $TYPE_LINK or $type == $TYPE_DIR or $type == 
$TYPE_MOVIE
-               or $type == $TYPE_FILE or $type == $TYPE_TEXT) {
+           if (!$_->{thumb_filename} and ($type == $TYPE_LINK or $type == 
$TYPE_DIR or $type == $TYPE_MOVIE
+               or $type == $TYPE_FILE or $type == $TYPE_TEXT)) {
                $_->{no_thumb} = 1 ;
            }
        } @entries ;

Reply via email to