From 4f7947dab82b3e3728cfc362e24eeaf55f3ba245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 2 Nov 2016 13:59:29 +0100 Subject: scripts/feeds: display "X" as revision of uninitialized feeds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So far we were displaying "local" which could be misinterpreted. It wasn't possible e.g. to say if src-link feed was initialized or not. Hopefully "X" makes (a bit) more sense. Signed-off-by: Rafał Miłecki --- scripts/feeds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/feeds b/scripts/feeds index d1f3824057..45239af1a3 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -333,7 +333,7 @@ sub list { my $localpath = "./feeds/$feed->[1]"; my $m = $update_method{$feed->[0]}; my $revision; - if( !$m->{'revision'} ) { + if (!-d "$localpath" || !$m->{'revision'}) { $revision = "X"; } elsif( $m->{'controldir'} && -d "$localpath/$m->{'controldir'}" ) { -- cgit v1.2.3