summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index ab29833ec..46549f9a6 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -33,6 +33,11 @@ $asked_medium = $boot_medium;
our $global_ftp_prefix;
+sub drakx_version() {
+ $::move ? sprintf "DrakX-move v%s", cat_('/usr/bin/stage2/move.pm') =~ /move\.pm,v (\S+ \S+ \S+)/
+ : sprintf "DrakX v%s built %s", $::testing ? ('TEST', scalar gmtime()) : (split('/', cat__(getFile("install/stage2/VERSION"))))[2,3];
+}
+
#-######################################################################################
#- Media change variables&functions
#-######################################################################################
@@ -297,7 +302,7 @@ sub spawnShell() {
open STDERR, ">&F" or goto cant_spawn;
close F;
- print any::drakx_version(), "\n";
+ print drakx_version(), "\n";
c::setsid();