aboutsummaryrefslogtreecommitdiff
path: root/renrot
diff options
context:
space:
mode:
authorAndy Shevchenko <andy@smile.org.ua>2012-03-24 20:27:47 +0000
committerAndy Shevchenko <andy@smile.org.ua>2012-03-24 20:27:47 +0000
commit6813aae408e5076e36c2cfd0a1a2f20131fa9002 (patch)
tree9f314566011c0386d99b14a47d265ec45a683c60 /renrot
parent3066b9f5bfdca9ad863b8ab263406fb658ebe76e (diff)
downloadrenrot-6813aae408e5076e36c2cfd0a1a2f20131fa9002.tar.gz
renrot-6813aae408e5076e36c2cfd0a1a2f20131fa9002.tar.bz2
check for modules before use them
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> git-svn-id: file:///svnroot/renrot/trunk@601 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (limited to 'renrot')
-rwxr-xr-xrenrot6
1 files changed, 4 insertions, 2 deletions
diff --git a/renrot b/renrot
index 0148992..65bdc6f 100755
--- a/renrot
+++ b/renrot
@@ -577,8 +577,7 @@ sub getOptions {
}
# is there ImageMagick?
- if (defined isTherePackage("Image::Magick")) {
- $isThereIM = 1;
+ if ($isThereIM == 1) {
dbgmsg (1, "We have Image::Magick package and could proceed with --contact-sheet related functionality.\n");
} elsif ($cfgOpts{'contact sheet'} == 1 or defined $contactSheet) {
errmsg ("To use --contact-sheet related functionality you need Image::Magick package!\n",
@@ -2188,6 +2187,9 @@ sub template2name {
# MAIN() renames and rotates given files
#
+# Check for modules
+$isThereIM = 1 if (defined isTherePackage("Image::Magick"));
+
getOptions();
parseConfig($configFile, \%cfgOpts);
switchColor();

Return to:

Send suggestions and report system problems to the System administrator.