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
Roman Alifanov
etersoft-build-utils
Commits
a261e7c6
Commit
a261e7c6
authored
Mar 10, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: fail if sources were not actually updated
parent
71af4da6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
rpmgs
bin/rpmgs
+12
-2
No files found.
bin/rpmgs
View file @
a261e7c6
...
...
@@ -325,10 +325,15 @@ commit_tarball_to_dir()
sh
-x
../.gear/postdownload-hook
cd
-
>
/dev/null
fi
local
commit_msg
if
[
-n
"
$CURRENTURL
"
]
;
then
docmd git commit
-m
"just import
$CURRENTURL
to
$(
basename
$CURNAME
)
subdir with rpmgs script"
commit_msg
=
"just import
$CURRENTURL
to
$(
basename
$CURNAME
)
subdir with rpmgs script"
else
docmd git commit
-m
"just import
$(
basename
$TARBALL
)
with rpmgs script"
commit_msg
=
"just import
$(
basename
$TARBALL
)
with rpmgs script"
fi
if
!
docmd git commit
-m
"
$commit_msg
"
;
then
rm
-fv
"
$TARBALL
"
fatal
"Sources were not updated (nothing to commit). Check Source-url and version."
fi
rm
-fv
"
$TARBALL
"
else
...
...
@@ -960,9 +965,14 @@ fi
will_commit
||
continue
echog
"Try to fetch
${
GETSOURCEGIT
}
for
$spec
"
#TODO error if incompatible
HEAD_BEFORE
=
$(
git rev-parse HEAD
)
docmd git remote add upstream
$GETSOURCEGIT
docmd git fetch
--tags
upstream
update_master_branch_to
"
$GSSETVERSION
"
HEAD_AFTER
=
$(
git rev-parse HEAD
)
if
[
"
$HEAD_BEFORE
"
=
"
$HEAD_AFTER
"
]
;
then
fatal
"Sources were not updated: HEAD unchanged after merge. Check upstream URL and tag."
fi
FIRSTSOURCEGIT
=
1
update_post_git_submodules
...
...
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