scripts/feeds: display "X" as revision of uninitialized feeds
authorRafał Miłecki <rafal@milecki.pl>
Wed, 2 Nov 2016 12:59:29 +0000 (13:59 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 8 Nov 2016 10:17:11 +0000 (11:17 +0100)
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 <rafal@milecki.pl>
scripts/feeds

index d1f3824057cf7889bb6d444e1d7bc1cfddbcacc7..45239af1a3371d4ba203244af759d9db54e648a9 100755 (executable)
@@ -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'}" ) {