[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, master, updated. debian/1.0.61-1-17-g8c538e2

Guido Günther agx at sigxcpu.org
Sat Feb 20 13:52:39 UTC 2010


The following commit has been merged in the master branch:
commit 8c538e22697fdee5c6bdf599e143d2770afa801e
Author: Guido Günther <agx at sigxcpu.org>
Date:   Sat Feb 20 14:26:13 2010 +0100

    Add vendor detection for Ubuntu

diff --git a/debian/rules b/debian/rules
index a27f5b4..2361334 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,17 @@
 
 DEB_PYTHON_SYSTEM=pysupport
 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
+DEB_VENDOR=$(shell dpkg-vendor --query vendor)
 
-MIRROR=http://apt:9999/debian
-REPO=sid
+ifeq (Debian,$(DEB_VENDOR))
+  MIRROR=http://ftp.debian.org/debian
+  REPO=sid
+else
+ifeq(Ubuntu,$(DEB_VENDOR)
+   MIRROR=http://gb.archive.ubuntu.com/ubuntu/
+   REPO=karmic
+endif
+endif
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk

-- 
Libguestfs Debian packaging



More information about the Pkg-libvirt-commits mailing list