Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
d22373f6
Commit
d22373f6
authored
Jul 29, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: refactored source downloading
parent
1a5731c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
25 deletions
+18
-25
rpmgs
bin/rpmgs
+18
-25
No files found.
bin/rpmgs
View file @
d22373f6
...
...
@@ -808,10 +808,24 @@ fi
FTB
=
$RPMSOURCEDIR
/
$(
basename
"
$GETSOURCE
"
)
# TODO: do not use RPMSOURCEDIR for temp. tarballs
[
-n
"
$FORCEDOWNLOAD
"
]
&&
rm
-f
"
$FTB
"
[
-n
"
$FORCEDOWNLOAD
"
]
&&
rm
-f
v
"
$FTB
"
#[ -f "$RPMSOURCEDIR/$FTB" ] && { echog "Tarball $FTB already exists in $RPMSOURCEDIR dir, skipping." ; continue ; }
# Test for eterbuild extensions (will set GETSOURCEURL or GETSOURCESVN)
if
rhas
"
$GETSOURCE
"
"ps?://"
;
then
download_any_tarball
"
$GETSOURCE
"
"
$FTB
"
will_commit
||
continue
CURRENTURL
=
"
${
GETSOURCE
}
"
if
is_gear
;
then
commit_tarball
"
$FTB
"
||
fatal
source_postupdate_hook
fi
DOWNLOADSOME
=
1
echog
"DONE with
$FTB
"
continue
fi
# Test for eterbuild extensions like # Source-git
# (will set GETSOURCEURL or GETSOURCESVN)
get_source_url
$spec
$SN
||
get_source_git
$spec
$SN
||
get_source_svn
$spec
$SN
||
get_source_script
$spec
$SN
||
get_source_vcs
$spec
$SN
#[ "$SN" = "Source1" ] && exit
#if ! rhas "$GETSOURCE" ".tar$" ; then
...
...
@@ -866,32 +880,11 @@ fi
fi
DOWNLOADSOME
=
1
fi
else
if
!
rhas
"
$GETSOURCE
"
"ps?://"
;
then
#if [ "$SN" != "Source" ] && [ "$SN" != "Source0" ] ; then
# info "No URL. Skipping $GETSOURCE downloading"
# continue
#else
warning
"
$SN
$GETSOURCE
has no URL. Skipping... "
# continue
#fi
else
download_any_tarball
"
$GETSOURCE
"
"
$FTB
"
will_commit
||
continue
CURRENTURL
=
"
${
GETSOURCE
}
"
if
is_gear
;
then
commit_tarball
"
$FTB
"
||
fatal
source_postupdate_hook
fi
DOWNLOADSOME
=
1
fi
# TODO: fix download single packed file
#else
# download_to "$GETSOURCE" "$FTB"
else
warning
"
$SN
$GETSOURCE
has no URL. Skipping... "
fi
echog
"DONE with
$FTB
"
done
# TODO: make plugins
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment