Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jenkins.debian.net
Manage
Activity
Members
Labels
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian QA
jenkins.debian.net
Commits
a30c3c18
Verified
Commit
a30c3c18
authored
6 years ago
by
Mattia Rizzolo
Browse files
Options
Downloads
Patches
Plain Diff
reproducible archlinux: make sure to define DISTROID before using it
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
c891a865
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/reproducible_archlinux_scheduler.sh
+1
-1
1 addition, 1 deletion
bin/reproducible_archlinux_scheduler.sh
with
1 addition
and
1 deletion
bin/reproducible_archlinux_scheduler.sh
+
1
−
1
View file @
a30c3c18
...
@@ -107,7 +107,6 @@ update_archlinux_repositories() {
...
@@ -107,7 +107,6 @@ update_archlinux_repositories() {
# new package, add to db and schedule
# new package, add to db and schedule
echo
$REPO
/
$pkgbase
>>
$NEW
echo
$REPO
/
$pkgbase
>>
$NEW
echo
"new package found:
$repo
/
$pkgbase
$version
"
echo
"new package found:
$repo
/
$pkgbase
$version
"
DISTROID
=
$(
query_db
"SELECT id FROM distributions WHERE name = 'archlinux'"
)
query_db
"INSERT into sources (name, version, suite, architecture, distribution) VALUES ('
$PKG
', '
$version
', '
$SUITE
', '
$ARCH
',
$DISTROID
);"
query_db
"INSERT into sources (name, version, suite, architecture, distribution) VALUES ('
$PKG
', '
$version
', '
$SUITE
', '
$ARCH
',
$DISTROID
);"
PKG_ID
=
$(
query_db
"SELECT id FROM sources WHERE distribution=
$DISTROID
AND name='
$PKG
' AND suite='
$SUITE
' AND architecture='
$ARCH
';"
)
PKG_ID
=
$(
query_db
"SELECT id FROM sources WHERE distribution=
$DISTROID
AND name='
$PKG
' AND suite='
$SUITE
' AND architecture='
$ARCH
';"
)
query_db
"INSERT INTO schedule (package_id, date_scheduled) VALUES ('
${
PKG_ID
}
', '
$DATE
');"
query_db
"INSERT INTO schedule (package_id, date_scheduled) VALUES ('
${
PKG_ID
}
', '
$DATE
');"
...
@@ -269,6 +268,7 @@ update_archlinux_repositories() {
...
@@ -269,6 +268,7 @@ update_archlinux_repositories() {
trap
cleanup_all INT TERM EXIT
trap
cleanup_all INT TERM EXIT
ARCH
=
"x86_64"
ARCH
=
"x86_64"
SESSION
=
"archlinux-scheduler-
$RANDOM
"
SESSION
=
"archlinux-scheduler-
$RANDOM
"
DISTROID
=
$(
query_db
"SELECT id FROM distributions WHERE name = 'archlinux'"
)
update_archlinux_repositories
update_archlinux_repositories
trap
- INT TERM EXIT
trap
- INT TERM EXIT
...
...
This diff is collapsed.
Click to expand it.
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