diff --git a/debian/changelog b/debian/changelog index e4b342a..eee77e8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,14 @@ -ubuntu-dev-tools (0.46) UNRELEASED; urgency=low +ubuntu-dev-tools (0.46) intrepid; urgency=low + [ Daniel Hahler ] * submittodebian: use "intrepid" for Usertags (LP: #276073) - -- Daniel Hahler Mon, 29 Sep 2008 22:46:43 +0200 + [ Matt Zimmerman ] + * add new program 'ubuntuiso' which prints information about Ubuntu isos by + extracting files from them + * Add Recommends: genisoimage for ubuntuiso + + -- Matt Zimmerman Thu, 02 Oct 2008 22:34:44 +0100 ubuntu-dev-tools (0.45) intrepid; urgency=low diff --git a/debian/control b/debian/control index 287492f..47f68af 100644 --- a/debian/control +++ b/debian/control @@ -15,7 +15,7 @@ Architecture: all Section: devel Depends: ${python:Depends}, binutils, devscripts, sudo, python-debian, python-launchpad-bugs (>= 0.2.25), dctrl-tools, lsb-release, diffstat, - dpkg-dev + dpkg-dev, genisoimage Recommends: bzr, pbuilder | sbuild, reportbug (>= 3.39ubuntu1), ca-certificates Conflicts: devscripts (<< 2.10.7ubuntu5) diff --git a/ubuntuiso b/ubuntuiso new file mode 100755 index 0000000..c239c3c --- /dev/null +++ b/ubuntuiso @@ -0,0 +1,24 @@ +#!/usr/bin/python + +import sys +import subprocess + +def extract(iso, path): + command = ['isoinfo', '-R', '-i', iso, '-x', path] + pipe = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout, stderr = pipe.communicate() + + if pipe.returncode != 0: + raise Exception, stderr + + return stdout + +def main(): + iso = sys.argv[1] + + version = extract(iso, '/.disk/info') + print version + +if __name__ == '__main__': + main() + sys.exit(0)