Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
bcfdb0f9
Unverified
Commit
bcfdb0f9
authored
4 years ago
by
Anjan Momi
Committed by
Alexey Minnekhanov
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: check for pkgrel=0 in new aports (MR 1211)
closes
#573
parent
cca40c66
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#194294
passed
4 years ago
Stage: first
Stage: second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci/check_changed_aports_versions.py
+9
-3
9 additions, 3 deletions
.gitlab-ci/check_changed_aports_versions.py
with
9 additions
and
3 deletions
.gitlab-ci/check_changed_aports_versions.py
+
9
−
3
View file @
bcfdb0f9
...
...
@@ -57,9 +57,11 @@ def version_compare_operator(result):
def
exit_with_error_message
():
print
()
print
(
"
ERROR: Modified package(s) don
'
t have an increased version!
"
)
print
(
"
ERROR: Modified package(s) don
'
t have an increased version or a
"
)
print
(
"
new package has a nonzero pkgrel!
"
)
print
()
print
(
"
This can either happen if you did not change the pkgver/pkgrel
"
)
print
(
"
This can happen if you added a new package with a nonzero
"
)
print
(
"
pkgrel, or if you did not change the pkgver/pkgrel
"
)
print
(
"
variables in the APKBUILDs. Or you did change them, but the
"
)
print
(
"
packages have been updated in the official master branch, and now
"
)
print
(
"
your versions are not higher anymore.
"
)
...
...
@@ -101,7 +103,11 @@ def check_versions(args, packages):
head
=
get_package_version
(
args
,
package
,
"
HEAD
"
)
master
=
get_package_version
(
args
,
package
,
commit
,
False
)
if
not
master
:
print
(
"
- {}: {} (HEAD) (new package)
"
.
format
(
package
,
head
))
if
head
.
rpartition
(
'
r
'
)[
2
]
!=
"
0
"
:
print
(
f
"
-
{
package
}
:
{
head
}
(HEAD) (new package) [ERROR]
"
)
error
=
True
else
:
print
(
f
"
-
{
package
}
:
{
head
}
(HEAD) (new package)
"
)
continue
# Compare head and master versions
...
...
This diff is collapsed.
Click to expand it.
Administrator
@root
mentioned in commit
dc091262
By Anjandev Momi on 2020-06-16T18:48:12
·
4 years ago
Imported
mentioned in commit
dc091262
By Anjandev Momi on 2020-06-16T18:48:12
Edited
4 years ago
by
Ghost User
mentioned in commit dc0912624149138c024f6098e53c140c18ba9e6d *By Anjandev Momi on 2020-06-16T18:48:12*
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment