From d04a3f0b7a164f2148703d2cd4c4f61a8415916e Mon Sep 17 00:00:00 2001 From: Martin Matusiak Date: Sat, 18 Oct 2008 17:34:17 +0200 Subject: [PATCH] fix faulty check for title exists, only when not a dvd --- dist/ppa_version_cache | 1 + vidstat | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/ppa_version_cache b/dist/ppa_version_cache index 8fcaf0a..25b46a5 100644 --- a/dist/ppa_version_cache +++ b/dist/ppa_version_cache @@ -8,3 +8,4 @@ 0.6.1 2 0.7.0 2 0.7.1 2 +0.7.2 2 diff --git a/vidstat b/vidstat index e91c8f5..4685aa6 100755 --- a/vidstat +++ b/vidstat @@ -62,7 +62,7 @@ if ($dvd_device) { print_title_line(1); foreach my $title (@titles) { - if (! -e $title) { + if (! $dvd_device and ! -e $title) { nonfatal("File %%%$title%%% does not exist"); next; } -- 2.11.4.GIT