Browse files

add get_install_signature() method patch from Andrew Ruthven

  • Loading branch information...
1 parent 9961bf8 commit 91dbf641b0425d2310671d15a99a746caf301b15 @grantm committed Oct 6, 2012
Showing with 13 additions and 1 deletion.
  1. +3 −0 plugins/InstallManager/Changes
  2. +10 −1 plugins/InstallManager/lib/App/BCVI/InstallManager.pm
View
3 plugins/InstallManager/Changes
@@ -1,5 +1,8 @@
Revision history for App-BCVI-InstallManager
+1.02 2010-09-07
+ - add get_install_signature() method (patch from Andrew Ruthven)
+
1.01 2010-06-05
- add sub option to list installed hosts
- add sub option to remove host from list
View
11 plugins/InstallManager/lib/App/BCVI/InstallManager.pm
@@ -7,7 +7,7 @@ use Digest::MD5;
use Fcntl;
use SDBM_File;
-our $VERSION = '1.01';
+our $VERSION = '1.02';
my($source_signature, %sig_db, $db_file);
@@ -99,6 +99,15 @@ sub set_install_signature {
}
+sub get_install_signature {
+ my($self, $host) = @_;
+ $self->tie_install_sig_db();
+ my $sig = $sig_db{$host};
+ $self->untie_install_sig_db();
+ return $sig;
+}
+
+
sub all_install_signatures {
my($self) = @_;
$self->tie_install_sig_db();

0 comments on commit 91dbf64

Please sign in to comment.