summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
diff options
context:
space:
mode:
authorMichael Janczyk2009-07-03 19:32:08 +0200
committerMichael Janczyk2009-07-03 19:32:08 +0200
commit496fff2672d89f8539352d514aeec84638b3b213 (patch)
tree210580c431f19befcfcaba0173d2ae710bfabcec /os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
parentno need for different syslinux dirs, now everything inside syslinux (diff)
downloadcore-496fff2672d89f8539352d514aeec84638b3b213.tar.gz
core-496fff2672d89f8539352d514aeec84638b3b213.tar.xz
core-496fff2672d89f8539352d514aeec84638b3b213.zip
suppress error from #463 cp: cannot stat /mnt/opt/openslx/lib/plugins/desktop/themes/gdm/...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2991 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm')
-rw-r--r--os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm b/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
index dc53f3a1..a948d222 100644
--- a/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
+++ b/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
@@ -664,11 +664,15 @@ sub _setupSupportedThemes
vlog(1, "installing theme '$theme'...");
my $gdmThemeTargetPath = "$self->{pluginRepositoryPath}/themes/gdm";
mkpath($gdmThemeTargetPath);
- slxsystem("cp -a $gdmThemeDir $gdmThemeTargetPath/$theme") == 0
+ slxsystem(
+ "cp -a $gdmThemeDir $gdmThemeTargetPath/$theme 2>/dev/null"
+ ) == 0
or die _tr('unable to copy GDM-theme %s (%s)', $theme, $!);
my $kdmThemeTargetPath = "$self->{pluginRepositoryPath}/themes/kdm";
mkpath($kdmThemeTargetPath);
- slxsystem("cp -a $kdmThemeDir $kdmThemeTargetPath/$theme") == 0
+ slxsystem(
+ "cp -a $kdmThemeDir $kdmThemeTargetPath/$theme 2>/dev/null"
+ ) == 0
or die _tr('unable to copy KDM-theme %s (%s)', $theme, $!);
next THEME;
}