mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-18 04:11:29 +00:00
* add new program 'ubuntuiso' which prints information about Ubuntu isos by
extracting files from them * Add Recommends: genisoimage for ubuntuiso
This commit is contained in:
parent
0abc947c90
commit
82e7fe9c17
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -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)
|
* submittodebian: use "intrepid" for Usertags (LP: #276073)
|
||||||
|
|
||||||
-- Daniel Hahler <ubuntu@thequod.de> 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 <mdz@ubuntu.com> Thu, 02 Oct 2008 22:34:44 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.45) intrepid; urgency=low
|
ubuntu-dev-tools (0.45) intrepid; urgency=low
|
||||||
|
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -15,7 +15,7 @@ Architecture: all
|
|||||||
Section: devel
|
Section: devel
|
||||||
Depends: ${python:Depends}, binutils, devscripts, sudo, python-debian,
|
Depends: ${python:Depends}, binutils, devscripts, sudo, python-debian,
|
||||||
python-launchpad-bugs (>= 0.2.25), dctrl-tools, lsb-release, diffstat,
|
python-launchpad-bugs (>= 0.2.25), dctrl-tools, lsb-release, diffstat,
|
||||||
dpkg-dev
|
dpkg-dev, genisoimage
|
||||||
Recommends: bzr, pbuilder | sbuild, reportbug (>= 3.39ubuntu1),
|
Recommends: bzr, pbuilder | sbuild, reportbug (>= 3.39ubuntu1),
|
||||||
ca-certificates
|
ca-certificates
|
||||||
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
||||||
|
24
ubuntuiso
Executable file
24
ubuntuiso
Executable file
@ -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)
|
Loading…
x
Reference in New Issue
Block a user