[LEDE-DEV] [PATCH] scripts/feeds: display "X" as revision of uninitialized feeds
Rafał Miłecki
zajec5 at gmail.com
Wed Nov 2 05:59:29 PDT 2016
From: Rafał Miłecki <rafal at milecki.pl>
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 at milecki.pl>
---
scripts/feeds | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/feeds b/scripts/feeds
index 045835c..481eb9b 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'}" ) {
--
2.10.1
More information about the Lede-dev
mailing list