[source] scripts/feeds: display "X" as revision of uninitialized feeds

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 8 02:17:38 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/4f7947dab82b3e3728cfc362e24eeaf55f3ba245

commit 4f7947dab82b3e3728cfc362e24eeaf55f3ba245
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Wed Nov 2 13:59:29 2016 +0100

    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 at milecki.pl>
---
 scripts/feeds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/feeds b/scripts/feeds
index d1f3824..45239af 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'}" ) {



More information about the lede-commits mailing list