mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
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>
This commit is contained in:
parent
4f7a0601e6
commit
4f7947dab8
@ -333,7 +333,7 @@ sub list {
|
|||||||
my $localpath = "./feeds/$feed->[1]";
|
my $localpath = "./feeds/$feed->[1]";
|
||||||
my $m = $update_method{$feed->[0]};
|
my $m = $update_method{$feed->[0]};
|
||||||
my $revision;
|
my $revision;
|
||||||
if( !$m->{'revision'} ) {
|
if (!-d "$localpath" || !$m->{'revision'}) {
|
||||||
$revision = "X";
|
$revision = "X";
|
||||||
}
|
}
|
||||||
elsif( $m->{'controldir'} && -d "$localpath/$m->{'controldir'}" ) {
|
elsif( $m->{'controldir'} && -d "$localpath/$m->{'controldir'}" ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user