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
f4d4b37a
Commit
f4d4b37a
authored
Nov 18, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: fix Source-git support, improve commented url detection
parent
1dc4aa5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
rpmgs
bin/rpmgs
+6
-4
No files found.
bin/rpmgs
View file @
f4d4b37a
...
...
@@ -167,13 +167,15 @@ function get_source_svn()
function
get_source_git
()
{
local
SN
=
"
$2
"
GETSOURCEGIT
=
$(
source_ext
"
$1
"
git
"
$2
"
)
[
-n
"
$GETSOURCEGIT
"
]
&&
return
# hack for git url under Source
local
HGIT
=
"
$(
grep
-B1
"^
$SN
:"
"
$1
"
|
head
-n1
|
grep
"^# "
|
sed
-e
"s|#[[:space:]]*||"
-e
"s|[[:space:]]*
$|
|"
)
"
if
echo
"
$HGIT
"
|
grep
-q
"https*://.*
\.
git$"
||
echo
"
$HGIT
"
|
grep
-q
"https://github.com/.*"
;
then
GETSOURCEGIT
=
"
$HGIT
"
return
if
echo
"
$HGIT
"
|
grep
-q
-E
"(git|https|http)://.*
\.
git$"
||
echo
"
$HGIT
"
|
grep
-q
"https://github.com/.*"
;
then
GETSOURCEGIT
=
"
$(
echo
"
$HGIT
"
|
sed
-e
"s|.*[[:space:]]
\(
.*://
\)
|
\1
|"
)
"
#"
fi
GETSOURCEGIT
=
$(
source_ext
"
$1
"
git
"
$2
"
)
}
# Source-url: ftp://updates.etersoft.ru/pub/Etersoft/WINE@Etersoft/last/sources/tarball/%name-%version.tar.gz
...
...
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