summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-09-10 10:01:26 -0700
committerSean Whitton <spwhitton@spwhitton.name>2016-09-10 10:01:26 -0700
commit1399212f17981d7c909fdd775aee40bda1c6490a (patch)
treef3dca65e9b01275c8a183dd1215743d05cfe8f62 /lib
parent183d1e48565c838b9f1803086e26dd18b1c64a65 (diff)
output info when can't generate d/{docs,watch}
Diffstat (limited to 'lib')
-rw-r--r--lib/DhMakeELPA/Command/Packaging.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DhMakeELPA/Command/Packaging.pm b/lib/DhMakeELPA/Command/Packaging.pm
index 0d932c8..9711026 100644
--- a/lib/DhMakeELPA/Command/Packaging.pm
+++ b/lib/DhMakeELPA/Command/Packaging.pm
@@ -285,10 +285,11 @@ sub create_docs {
my $fh = $self->_file_w( $self->debian_file('docs') );
$fh->print( "*.md\n" );
$fh->close;
+ } else {
+ print "I: couldn't generate d/docs: not fully implemented";
}
}
-# TODO document that this relies on having a remote called 'upstream'
# TODO again, assumes tags are of the form v1.0.0
sub create_watch {
my $self = shift;
@@ -298,6 +299,7 @@ sub create_watch {
$repo = Git::Repository->new( git_dir => $self->main_file('.git') );
$upstream_url = $repo->run(( "remote", "get-url", "upstream" ));
} catch {
+ print "I: couldn't generate d/watch -- no git remote named 'upstream'";
return;
};