sbopkg: No further checks if sources are empty.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-07-23 22:21:01 +07:00
parent 340de44b0d
commit d2c0f9222a
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 11 additions and 0 deletions

View file

@ -89,3 +89,4 @@ We moved to github, so revision number no longer used
Chris Abela
Sergey V.
Marcel Saegebarth
Loki Harfagr

View file

@ -3147,6 +3147,14 @@ remove_obsolete_sources() {
rm -f $PROGRESSBAR_INTERRUPTED
### avoiding unecessary work and time lapse in case the user
### does not remember he just deleted the sources previously
(( $(find $SRCDIR -type f | wc -l ) == 0 ))
if [ $? -eq 0 ]; then
echo "No sources available"
exit 1
fi
{ # Grouping for progressbar
echo 0 # Progressbar begin

View file

@ -15,6 +15,8 @@ sbopkg-dev (2017-06-25 08:58:00 UTC)
Feature Request by Jeremy/bassmadrigal (Fixed #13).
Implement contributions from Marcel Saegebarth.
* sqg: Added manual page for sqg.
* sbopkg: No need to do complete check for old sources if no sources available
Initial patch by Loki Harfagr
MODIFICATIONS
* bash-completion: Complete -i and -b when git repo is used