mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-11 08:51:29 +00:00
* compare-packages, README: dropped compare-packages, debdiff has the same
functionality, when used with --from --to or on *.changes files.
This commit is contained in:
parent
ad934233e9
commit
a284445a6b
4
README
4
README
@ -10,10 +10,6 @@ check-symbols <package> [<directory>]
|
|||||||
files in all binary packages of <package>.
|
files in all binary packages of <package>.
|
||||||
<directory> is not mandatory and set to /var/cache/pbuilder/result by default.
|
<directory> is not mandatory and set to /var/cache/pbuilder/result by default.
|
||||||
|
|
||||||
compare-packages <source package> [<directory>]
|
|
||||||
... will compare the contents of the binary packages of <source
|
|
||||||
package> in the current directory with those in <directory>
|
|
||||||
|
|
||||||
dch-repeat [--help]
|
dch-repeat [--help]
|
||||||
... will repeat a change log into an older release.
|
... will repeat a change log into an older release.
|
||||||
|
|
||||||
|
@ -1,68 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
#
|
|
||||||
# Copyright 2007, Canonical, Daniel Holbach
|
|
||||||
#
|
|
||||||
# GPL 3
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import glob
|
|
||||||
|
|
||||||
USAGE = \
|
|
||||||
"""compare-packages <source-package> [<directory>]
|
|
||||||
|
|
||||||
compares contents of binary packages of <source-package> in the current
|
|
||||||
directory with those in <directory>"""
|
|
||||||
|
|
||||||
def check_args():
|
|
||||||
directory = "/var/cache/pbuilder/result"
|
|
||||||
sourcepackage = ""
|
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
|
||||||
print USAGE
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if sys.argv[1] in [ '-h', '--help' ]:
|
|
||||||
print USAGE
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
|
||||||
sourcepackage = sys.argv[1]
|
|
||||||
if len(sys.argv) > 2:
|
|
||||||
directory = sys.argv[2]
|
|
||||||
|
|
||||||
return (sourcepackage, directory)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
(sourcepackage, directory) = check_args()
|
|
||||||
|
|
||||||
(dummy, output, dummy) = os.popen3("apt-cache showsrc %s | grep ^Binary" % \
|
|
||||||
(sourcepackage))
|
|
||||||
binarypackages = output.read().split(":")[1].strip().split(", ")
|
|
||||||
|
|
||||||
if not os.path.exists("/usr/bin/debdiff"):
|
|
||||||
print >> sys.stderr, \
|
|
||||||
"'/usr/bin/debdiff' not found, please install 'devscripts'."
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
if not os.path.isdir(directory):
|
|
||||||
print >> sys.stderr, "Directory %s not found." % directory
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
for package in binarypackages:
|
|
||||||
old = glob.glob("./%s*.deb" % package)
|
|
||||||
new = glob.glob("%s/%s*.deb" % (directory, package))
|
|
||||||
|
|
||||||
if not new or not old:
|
|
||||||
print "Skipping %s, no matching new and old package found." % package
|
|
||||||
else:
|
|
||||||
print "Comparing %s and %s" % (old[0], new[0])
|
|
||||||
sys.stdout.flush()
|
|
||||||
os.system("debdiff %s %s" % (old[0], new[0]))
|
|
||||||
print ''
|
|
||||||
print '---'
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
ubuntu-dev-tools (0.11) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* compare-packages, README: dropped compare-packages, debdiff has the same
|
||||||
|
functionality, when used with --from --to or on *.changes files.
|
||||||
|
|
||||||
|
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 14 Sep 2007 13:44:07 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.10) gutsy; urgency=low
|
ubuntu-dev-tools (0.10) gutsy; urgency=low
|
||||||
|
|
||||||
* compare-packages: added script to compare the contents of 'old' and 'new'
|
* compare-packages: added script to compare the contents of 'old' and 'new'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user