[Piuparts-commits] [piuparts] 01/03: Use python-distro-info to get the Debian and Ubuntu devel releases

Holger Levsen holger at moszumanska.debian.org
Mon Oct 20 18:34:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 5c5a5c5d35fca635a36794e8d59894fa360d00d7
Author: Iain Lane <iain at orangesquash.org.uk>
Date:   Mon Oct 20 19:24:57 2014 +0100

    Use python-distro-info to get the Debian and Ubuntu devel releases
---
 piuparts.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/piuparts.py b/piuparts.py
index 0bf9ca1..de349ff 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -35,6 +35,7 @@ Lars Wirzenius <liw at iki.fi>
 VERSION = "__PIUPARTS_VERSION__"
 
 
+import distro_info
 import time
 import logging
 import optparse
@@ -95,7 +96,7 @@ class DebianDefaults(Defaults):
         return [("http://cdn.debian.net/debian", self.get_components())]
 
     def get_distribution(self):
-        return ["sid"]
+        return [distro_info.DebianDistroInfo().devel()]
 
     def get_keyring(self):
         return "/usr/share/keyrings/debian-archive-keyring.gpg"
@@ -109,7 +110,7 @@ class UbuntuDefaults(Defaults):
         return [("http://archive.ubuntu.com/ubuntu", self.get_components())]
 
     def get_distribution(self):
-        return ["vivid"]
+        return [distro_info.UbuntuDistroInfo().devel()]
 
     def get_keyring(self):
         return "/usr/share/keyrings/ubuntu-archive-keyring.gpg"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list