mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-16 07:47:55 +01:00
sbopkg: No further checks if sources are empty.
Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
parent
340de44b0d
commit
d2c0f9222a
3 changed files with 11 additions and 0 deletions
|
@ -89,3 +89,4 @@ We moved to github, so revision number no longer used
|
|||
Chris Abela
|
||||
Sergey V.
|
||||
Marcel Saegebarth
|
||||
Loki Harfagr
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue