16 lines
723 B
Diff
16 lines
723 B
Diff
diff -up foomatic-db-engine-3.0-20080710/lib/Foomatic/DB.pm.busyloop foomatic-db-engine-3.0-20080710/lib/Foomatic/DB.pm
|
|
--- foomatic-db-engine-3.0-20080710/lib/Foomatic/DB.pm.busyloop 2008-07-10 08:20:10.000000000 +0100
|
|
+++ foomatic-db-engine-3.0-20080710/lib/Foomatic/DB.pm 2008-09-02 14:34:27.000000000 +0100
|
|
@@ -4237,8 +4237,10 @@ EOFPGSZ
|
|
# ShortNickName too long? Remove last words from model name.
|
|
$parts{'model'} =~
|
|
s/(?<=[a-zA-Z0-9])[^a-zA-Z0-9]+[a-zA-Z0-9]*$//;
|
|
- $shortnickname =
|
|
+ my $new =
|
|
"$parts{'make'} $parts{'model'}, $parts{'driver'}";
|
|
+ last if ($new == $shortnickname);
|
|
+ $shortnickname = $new;
|
|
}
|
|
if (length($shortnickname) > 31) {
|
|
# If nothing else helps ...
|