M6 KVM avatar M6 KVM committed 40eff57 Merge

Merge latest experimental branch fixes

Comments (0)

Files changed (1)

 
 use constant EXIT_SUCCESS => (0);
 use constant EXIT_FAILURE => (1);
+
+use constant MIN_VERSION => '0.1.0';
+#----------------------------------------------------------------------------
+sub CheckVersion()
+{
+	if ( $Daybo::Checksum::Base::VERSION lt MIN_VERSION() ) {
+		printf(
+			STDERR "Error: Daybo::Checksum %s required, %s installed.\n",
+			MIN_VERSION(), $Daybo::Checksum::Base::VERSION
+		);
+		return 0;
+	}
+	return 1;
+}
 #----------------------------------------------------------------------------
 sub Main()
 {
 	);
 
 	getopts('v', \%opts);
+	return EXIT_FAILURE() unless CheckVersion();
 	$readCount = $reader->Read(FileName => INPUT_CHECKSUM_FILE());
 	if ( $readCount ) {
 		my $writeCount;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.