aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-11-02 13:59:29 +0100
committerJohn Crispin <john@phrozen.org>2016-11-08 11:17:11 +0100
commit4f7947dab82b3e3728cfc362e24eeaf55f3ba245 (patch)
tree005ce75fe27daaea0f7db9fa21b36e6517c53763
parent4f7a0601e665b863a5e4157de33b3d78b6393d3c (diff)
downloadupstream-4f7947dab82b3e3728cfc362e24eeaf55f3ba245.tar.gz
upstream-4f7947dab82b3e3728cfc362e24eeaf55f3ba245.tar.bz2
upstream-4f7947dab82b3e3728cfc362e24eeaf55f3ba245.zip
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 <rafal@milecki.pl>
-rwxr-xr-xscripts/feeds2
1 files changed, 1 insertions, 1 deletions
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'}" ) {