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
cef1aefa
Commit
cef1aefa
authored
May 20, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add VCS: support, check also Url if VCS is missed
parent
1b9c872f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
rpmgs
bin/rpmgs
+18
-1
No files found.
bin/rpmgs
View file @
cef1aefa
...
...
@@ -180,6 +180,23 @@ function get_source_git()
fi
}
# VCS: http://git.altlinux.org/people/lav/packages/rpm-build-fonts.git
function
get_source_vcs
()
{
local
SPEC
=
"
$1
"
local
SN
=
"
$2
"
local
vcs
=
"
$(
grep
"^VCS:"
$SPEC
|
head
-n1
|
sed
-e
's|VCS:[[:space:]]*||'
)
"
if
[
-z
"
$vcs
"
]
;
then
# try hack with Url:
local
vcs
=
"
$(
grep
"^Url:"
$SPEC
|
head
-n1
|
sed
-e
's|Url:[[:space:]]*||'
)
"
[
-z
"
$vcs
"
]
&&
return
1
GETSOURCEGIT
=
"
$vcs
"
echo
"
$vcs
"
|
grep
-q
"
\.
git$"
||
GETSOURCEGIT
=
"
$vcs
.git"
fi
GETSOURCEGIT
=
"
$vcs
"
}
# Source-url: ftp://updates.etersoft.ru/pub/Etersoft/WINE@Etersoft/last/sources/tarball/%name-%version.tar.gz
function
get_source_url
()
{
...
...
@@ -747,7 +764,7 @@ fi
#[ -f "$RPMSOURCEDIR/$FTB" ] && { echog "Tarball $FTB already exists in $RPMSOURCEDIR dir, skipping." ; continue ; }
# Test for eterbuild extensions (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_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
# warning "It is recommended to use .tar tarballs for sources ($FTB now)"
...
...
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