Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
go-reproducer
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
briar
go-reproducer
Commits
7fbc9a2b
Verified
Commit
7fbc9a2b
authored
6 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Change system time to snapshot time, so it won't be counted as expired
parent
5b7ed6c2
Loading
Loading
No related merge requests found
Pipeline
#3028
failed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+10
-3
10 additions, 3 deletions
install.sh
with
10 additions
and
3 deletions
install.sh
+
10
−
3
View file @
7fbc9a2b
...
@@ -2,11 +2,18 @@
...
@@ -2,11 +2,18 @@
set
-e
set
-e
set
-x
set
-x
# set system time, so we can use snapshot packages
DATETIME
=
"20190201T000000Z"
DATE
=
$(
echo
${
DATETIME
}
|
cut
-dT
-f1
)
TIME
=
$(
echo
${
DATETIME
}
|
cut
-dT
-f2
)
TIME
=
"
${
TIME
:0:2
}
:
${
TIME
:2:2
}
:
${
TIME
:4:2
}
"
whoami
date
+%Y%m%d
-s
"
${
DATE
}
${
TIME
}
"
# use snapshot repos for deterministic package versions
# use snapshot repos for deterministic package versions
DATE
=
"20190206T120000Z"
cat
<<
EOF
> /etc/apt/sources.list
cat
<<
EOF
> /etc/apt/sources.list
deb http://snapshot.debian.org/archive/debian/
${
DATE
}
/ stretch main
deb http://snapshot.debian.org/archive/debian/
${
DATE
TIME
}
/ stretch main
deb http://snapshot.debian.org/archive/debian-security/
${
DATE
}
/ stretch/updates main
deb http://snapshot.debian.org/archive/debian-security/
${
DATE
TIME
}
/ stretch/updates main
EOF
EOF
# update package sources
# update package sources
...
...
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