File: update

package info (click to toggle)
extrepo 0.14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 311; sh: 31; makefile: 7
file content (18 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e
set -o pipefail

extrepo enable debian_official 2>&1

if [ ! -f /etc/apt/sources.list.d/extrepo_debian_official.sources ]
then
	echo "enable failed"
	exit 1
fi

extrepo update --offlinedata --mirror http://ftp.fr.debian.org/debian debian_official
if ! grep -q -E "^Uris: http://ftp.fr.debian.org/debian" /etc/apt/sources.list.d/extrepo_debian_official.sources ; then
	echo "update failed"
	exit 1
fi