]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
Make the gengentooisms script dies if the timestamp cannot be fetched
authorVincent Pit <vince@profvince.com>
Sun, 5 May 2013 18:58:56 +0000 (20:58 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 5 May 2013 18:59:18 +0000 (20:59 +0200)
samples/gengentooisms

index a1482d10d05daf8c3761865420bfbbc27e81bb19..0c39c00ddce471865d57e1c9a1874a4bec0d0d51 100755 (executable)
@@ -44,6 +44,8 @@ sub p {
 }
 
 my $timestamp = CPANPLUS::Dist::Gentoo::Maps::get_portage_timestamp(PORTAGE);
+die 'Could not read the timestamp from the portage tree ' . PORTAGE . "\n"
+                                                      unless defined $timestamp;
 
 {
  my $ua;