Merge with trunk

This commit is contained in:
Michael Bienia 2009-08-22 11:20:59 +02:00
commit 0353f952d8
6 changed files with 49 additions and 21 deletions

24
debian/changelog vendored
View File

@ -16,10 +16,30 @@ ubuntu-dev-tools (0.76) UNRELEASED; urgency=low
* buildd: Add a --batch mode for batch retrying/rescoring of packages.
[ Iain Lane ]
* requestsync: Guard some calls when -n is specified
* requestsync:
- Guard some calls when -n is specified
- Fetch changelog of specified version, not current version. If an
experimenal upload happened after the unstable one we're syncing, this
is considered to be current by p.d.o and we would get those changelog
entries in the sync request
- Remove trailing fullstop from sync bug title
* suspicious-source: Add *.hs *.el *.css to whitelist
-- Iain Lane <laney@ubuntu.com> Sat, 08 Aug 2009 16:02:25 +0100
[ Siegfried-Angel Gevatter Pujals ]
* pbuilder-dist:
- Expand "~" in PBUILDFOLDER to the user's home directory.
- If there's a "etc/<distro>/apt.conf" file inside the build result
directory, pass it to pbuilder as --aptconfdir. Thanks to Paul Novotny
and Ryan Pavlik (LP: #363043).
[ Luca Falavigna ]
* Switch to python-support to ease initial import into Debian:
- debian/control: build-depend on python-support instead of pycentral,
also remove unneeded XB-Python-Version field from binary stanza.
- debian/rules: set DEB_PYTHON_SYSTEM to pysupport.
- ubuntu-dev-tools.preinst: remove stale pycentral files on upgrades.
-- Luca Falavigna <dktrkranz@ubuntu.com> Fri, 21 Aug 2009 17:30:05 +0200
ubuntu-dev-tools (0.75) karmic; urgency=low

3
debian/control vendored
View File

@ -5,7 +5,7 @@ Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk
Vcs-Browser: http://codebrowse.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk/changes
Build-Depends: cdbs (>= 0.4.49), debhelper (>= 6), python-all-dev (>= 2.5)
Build-Depends-Indep: python-central (>= 0.5)
Build-Depends-Indep: python-support (>= 0.5.3)
XS-Python-Version: >= 2.5
Homepage: https://launchpad.net/ubuntu-dev-tools/
Standards-Version: 3.8.0
@ -19,7 +19,6 @@ Recommends: bzr, pbuilder | cowdancer | sbuild, reportbug (>= 3.39ubuntu1),
ca-certificates, debootstrap, genisoimage, perl-modules, libwww-perl
Conflicts: devscripts (<< 2.10.7ubuntu5)
Replaces: devscripts (<< 2.10.7ubuntu5)
XB-Python-Version: ${python:Versions}
Description: useful tools for Ubuntu developers
This is a collection of useful tools that Ubuntu developers use to make their
packaging work a lot easier.

2
debian/rules vendored
View File

@ -1,6 +1,6 @@
#!/usr/bin/make -f
DEB_PYTHON_SYSTEM := pycentral
DEB_PYTHON_SYSTEM := pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

View File

@ -16,5 +16,14 @@ if [ -e /etc/bash_completion.d/pbuilder-dist/pbuilder-dist ]; then
mv -fv "$tmp_file" /etc/bash_completion.d/pbuilder-dist
fi
# Remove stale pycentral files on upgrades.
# This can be removed after the next LTS (likely 10.04) is released.
if [ "$1" = upgrade ]
then
if dpkg --compare-versions "$2" lt "0.76" ; then
pycentral pkgremove ubuntu-dev-tools
fi
fi
#DEBHELPER#

View File

@ -21,7 +21,7 @@
#
# ##################################################################
#
# This script is a wrapper to be able to easily use pbuilder for
# This script is a wrapper to be able to easily use pbuilder/cowbuilder for
# different distributions (eg, Gutsy, Hardy, Debian unstable, etc).
#
# You can create symlinks to a pbuilder-dist executable to get different
@ -85,10 +85,7 @@ class pbuilder_dist:
##############################################################
if 'PBUILDFOLDER' in os.environ:
self.base = os.environ['PBUILDFOLDER']
else:
self.base = os.path.expanduser('~/pbuilder/')
self.base = os.path.expanduser(os.environ.get('PBUILDFOLDER', '~/pbuilder/'))
if not os.path.exists(self.base):
os.makedirs(self.base)
@ -248,7 +245,9 @@ class pbuilder_dist:
arguments.append('--debootstrapopts --arch')
arguments.append('--debootstrapopts "%(build_architecture)s"' % self)
### $( [ $ISDEBIAN != "False" ] || echo "--aptconfdir \"${BASE_DIR}/etc/${DISTRIBUTION}/apt.conf/\"" ) \
apt_conf_dir = os.path.join(self.base, 'etc/%(target_distro)s/apt.conf' % self)
if os.path.exists(apt_conf_dir):
arguments.append('--aptconfdir "%s"' % apt_conf_dir)
# Append remaining arguments
if remaining_arguments:

View File

@ -144,7 +144,7 @@ def cur_deb_version(sourcepkg, distro):
return out.split('|')[1].rstrip('[]''').strip()
def debian_changelog(sourcepkg, component, version):
def debian_changelog(sourcepkg, component, version, debver):
'''Return the Debian changelog from the latest up to the given version
(exclusive).'''
@ -158,7 +158,8 @@ def debian_changelog(sourcepkg, component, version):
# Get the debian/changelog file from packages.debian.org.
try:
debianChangelogPage = urllib2.urlopen('http://packages.debian.org/changelogs/pool/%s/%s/%s/current/changelog.txt' % (component, subdir, sourcepkg))
pkgurl = 'http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog.txt' % (component, subdir, sourcepkg, sourcepkg, debver)
debianChangelogPage = urllib2.urlopen(pkgurl)
except urllib2.HTTPError, error:
print >> sys.stderr, "Unable to connect to packages.debian.org. " \
"Received a %s." % error.code
@ -501,14 +502,14 @@ if __name__ == '__main__':
sys.exit(1)
# -s flag not specified - check if we do need sponsorship.
if (not newsource):
if (not sponsorship):
sponsorship = checkNeedsSponsorship(srcpkg)
else:
sponsorship = PersonTeam.getMe().isLpTeamMember('motu') # assume going to universe
if (not sponsorship):
if (not newsource):
sponsorship = checkNeedsSponsorship(srcpkg)
else:
sponsorship = not PersonTeam.getMe().isLpTeamMember('motu') # assume going to universe
# Check for existing package reports.
if not newsource and use_lp_bugs: checkExistingReports(srcpkg)
if (not newsource) and use_lp_bugs: checkExistingReports(srcpkg)
# Generate bug report.
subscribe = 'ubuntu-archive'
@ -527,7 +528,7 @@ if __name__ == '__main__':
subscribe = 'motu-release'
pkg_to_sync = '%s %s (%s) from Debian %s (%s).' % (srcpkg, deb_version, component, distro, debiancomponent)
pkg_to_sync = '%s %s (%s) from Debian %s (%s)' % (srcpkg, deb_version, component, distro, debiancomponent)
title = "Sync %s" % pkg_to_sync
if ffe == True:
title = "FFe: " + title
@ -571,7 +572,7 @@ if __name__ == '__main__':
base_ver = force_base_ver
if not newsource: report += 'Changelog since current %s version %s:\n\n' % (release, cur_ver)
report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
report += debian_changelog(srcpkg, debiancomponent, base_ver, deb_version) + '\n'
if need_interaction:
(title, report) = edit_report(title, report, changes_required=True)