[sagemath] 01/01: Move apt setup code from wiki to debian/rules
Ximin Luo
infinity0 at debian.org
Sat Dec 17 17:22:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit ab30327fc55467cc02aa263b3bd6d96ad4c7ddea
Author: Ximin Luo <infinity0 at debian.org>
Date: Sat Dec 17 17:51:37 2016 +0100
Move apt setup code from wiki to debian/rules
---
debian/rules | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/debian/rules b/debian/rules
index 50bfb2d..ba82311 100755
--- a/debian/rules
+++ b/debian/rules
@@ -251,6 +251,17 @@ get-orig-source:
../sagemath_$(DEB_VERSION).dsc: distclean-sage distclean ../sagemath_$(DEB_VERSION_UPSTREAM).orig.tar.xz debian/control
dpkg-buildpackage -d -uc -us -S
+APT_PIN_PRIORITY = 100
+install-apt-sources:
+ sudo apt-get install -y apt-transport-https
+ for d in deb deb-src; do \
+ echo "$$d https://debian-science.alioth.debian.org/apt sid-sage/"; done \
+ | sudo tee /etc/apt/sources.list.d/deb-sci-sage.list
+ sudo apt-key add $(CURDIR)/debian/deb-sci-sage.asc
+ printf "Package: *\nPin: release n=sid-sage\nPin-Priority: $(APT_PIN_PRIORITY)\n" \
+ | sudo tee /etc/apt/preferences.d/deb-sci-sage
+ sudo apt-get update
+
# Temporary workarounds that will be removed eventually:
#
# 1 The extra python-related stuff is a temporary work-around for #847791
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list