Skip to content

Commit

Permalink
Merge branch 'jb-30690-command-not-found' into 'master'
Browse files Browse the repository at this point in the history
Jb 30690 command not found

See merge request mer-core/scratchbox2!20
  • Loading branch information
lbt committed Apr 18, 2019
2 parents 58baaf3 + 26967ea commit 3fb1cb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions rpm/scratchbox2.spec
Expand Up @@ -23,6 +23,13 @@ Group: Development/Tools
%description -n libsb2
Scratchbox2 preload library.

%package docs
Summary: Scratchbox2 docs
Group: Development/Tools

%description docs
Scratchbox2 man pages.

%prep
%setup -q -n %{name}-%{version}/%{name}

Expand All @@ -41,6 +48,8 @@ install -D -m 644 utils/sb2.bash %{buildroot}/etc/bash_completion.d/sb2.bash
%{_bindir}/sb2*
%{_datadir}/scratchbox2/*
%config %{_sysconfdir}/bash_completion.d/sb2.bash

%files docs
%doc %attr(0444,root,root) /usr/share/man/man1/*
%doc %attr(0444,root,root) /usr/share/man/man7/*

Expand Down
3 changes: 2 additions & 1 deletion scratchbox2/utils/sb2-show.c
Expand Up @@ -929,7 +929,8 @@ static int cmd_start(const command_table_t *cmdp,
printf("%d: '%s'\n", i, cmd_argv[i+1]);
}
execvp(cmd_argv[1], cmd_argv+1);
return(0);
fprintf(stderr,"%s could not be executed: %s\n",cmd_argv[1], strerror(errno));
return(1);
}

const command_table_t commands[] = {
Expand Down

0 comments on commit 3fb1cb2

Please sign in to comment.