Skip to content

Commit

Permalink
snapshot-cloudflare.debian.org -> snapshot.debian.org
Browse files Browse the repository at this point in the history
snapshot-cloudflare.debian.org has been out of sync with
snapshot.debian.org since 20240531T083821Z

Fix issue 17

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Jul 19, 2024
1 parent dd854ba commit d15cf12
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ Examples:

### Environment variables

| Variable | Description | Default value |
|---------------------------|-----------------------------------------------|--------------------------------------------------------------------|
| `SOURCE_DATE_EPOCH` | Timestamp of the snapshot (int64) | Timestamp of `/etc/apt/sources.list`, etc. (See below) |
| `WRITE_SOURCE_DATE_EPOCH` | Write the `SOURCE_DATE_EPOCH` value to a file | `/dev/null` |
| `SNAPSHOT_ARCHIVE_BASE` | Base URL of the snapshot | `http://snapshot-cloudflare.debian.org/archive/`, etc. (See below) |
| `BACKPORTS` | Enable Debian backports | `0` |
| `KEEP_CACHE` | Keep apt cache | `1` |
| Variable | Description | Default value |
|---------------------------|-----------------------------------------------|---------------------------------------------------------|
| `SOURCE_DATE_EPOCH` | Timestamp of the snapshot (int64) | Timestamp of `/etc/apt/sources.list`, etc. (See below) |
| `WRITE_SOURCE_DATE_EPOCH` | Write the `SOURCE_DATE_EPOCH` value to a file | `/dev/null` |
| `SNAPSHOT_ARCHIVE_BASE` | Base URL of the snapshot | `http://snapshot.debian.org/archive/`, etc. (See below) |
| `BACKPORTS` | Enable Debian backports | `0` |
| `KEEP_CACHE` | Keep apt cache | `1` |

Distribution-specific default values:

| Distribution | `SOURCE_DATE_EPOCH` | `SNAPSHOT_ARCHIVE_BASE` |
|-------------------|-------------------------------------------------------|--------------------------------------------------|
| Debian (<= 11) | Timestamp of `/etc/apt/sources.list` | `http://snapshot-cloudflare.debian.org/archive/` |
| Debian (>= 12) | Timestamp of `/etc/apt/sources.list.d/debian.sources` | `http://snapshot-cloudflare.debian.org/archive/` |
| Ubuntu (<= 23.10) | Timestamp of `/etc/apt/sources.list` | `http://snapshot.ubuntu.com/` |
| Ubuntu (>= 24.04) | Timestamp of `/etc/apt/sources.list.d/ubuntu.sources` | `http://snapshot.ubuntu.com/` |
| ArchLinux | Timestamp of `/var/log/pacman.log` | `http://archive.archlinux.org/` |
| Distribution | `SOURCE_DATE_EPOCH` | `SNAPSHOT_ARCHIVE_BASE` |
|-------------------|-------------------------------------------------------|---------------------------------------|
| Debian (<= 11) | Timestamp of `/etc/apt/sources.list` | `http://snapshot.debian.org/archive/` |
| Debian (>= 12) | Timestamp of `/etc/apt/sources.list.d/debian.sources` | `http://snapshot.debian.org/archive/` |
| Ubuntu (<= 23.10) | Timestamp of `/etc/apt/sources.list` | `http://snapshot.ubuntu.com/` |
| Ubuntu (>= 24.04) | Timestamp of `/etc/apt/sources.list.d/ubuntu.sources` | `http://snapshot.ubuntu.com/` |
| ArchLinux | Timestamp of `/var/log/pacman.log` | `http://archive.archlinux.org/` |


## Related project
Expand Down
3 changes: 1 addition & 2 deletions repro-sources-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ keep_apt_cache() {

case "${ID}" in
"debian")
# : "${SNAPSHOT_ARCHIVE_BASE:=http://snapshot.debian.org/archive/}"
: "${SNAPSHOT_ARCHIVE_BASE:=http://snapshot-cloudflare.debian.org/archive/}"
: "${SNAPSHOT_ARCHIVE_BASE:=http://snapshot.debian.org/archive/}"
: "${BACKPORTS:=}"
if [ -e /etc/apt/sources.list.d/debian.sources ]; then
: "${SOURCE_DATE_EPOCH:=$(stat --format=%Y /etc/apt/sources.list.d/debian.sources)}"
Expand Down

0 comments on commit d15cf12

Please sign in to comment.