From: Rafał Miłecki Date: Wed, 2 Nov 2016 12:59:29 +0000 (+0100) Subject: scripts/feeds: display "X" as revision of uninitialized feeds X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4f7947dab82b3e3728cfc362e24eeaf55f3ba245;p=openwrt%2Fstaging%2Fyousong.git scripts/feeds: display "X" as revision of uninitialized feeds 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 --- 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'}" ) {