From 7a618cc8222c8415a3d0047700fff43ffb0c9b9d Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 8 Mar 2009 23:25:52 +0000 Subject: * do not fail if version info file for uclib-rootfs could not be found in vendor-OS git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2696 95ad53e4-c205-0410-b2fa-d234c58c8868 --- config-db/slxconfig-demuxer | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config-db') diff --git a/config-db/slxconfig-demuxer b/config-db/slxconfig-demuxer index 00b269fd..fe8df03e 100755 --- a/config-db/slxconfig-demuxer +++ b/config-db/slxconfig-demuxer @@ -627,11 +627,12 @@ sub writeSystemConfiguration # version and add a warning if it does not: my $uclibcVersionPath = "$openslxConfig{'private-path'}/stage1/$info->{'vendor-os'}->{name}/opt/openslx/uclib-rootfs.version"; - chomp(my $uclibcVersion = slurpFile($uclibcVersionPath)); + chomp(my $uclibcVersion + = slurpFile($uclibcVersionPath, { failIfMissing => 0 } )); chomp(my $currVersion = qx{slxversion}); if ($uclibcVersion ne $currVersion) { warn _tr( - "uclibc-rootfs for system '%s' is not up-to-date - consider updating the vendor-OS!", + "uclibc-rootfs for system '%s' may not be up-to-date - consider updating the vendor-OS!", $info->{name}, $uclibcVersion, $currVersion ); } -- cgit v1.2.3-55-g7522