mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* requestsync: Return an error when the script is unable to connect to
packages.debian.org (LP: #261916). * Changes by Karl Goetz: Add a Recommends: on ca-certificates (LP: #247157).
This commit is contained in:
parent
927f99295e
commit
839c167927
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -4,6 +4,8 @@ ubuntu-dev-tools (0.43ubuntu1) intrepid; urgency=low
|
|||||||
* common.py:
|
* common.py:
|
||||||
- If loading a cookie file raises an exception exit.
|
- If loading a cookie file raises an exception exit.
|
||||||
- Improve cookie file writing.
|
- Improve cookie file writing.
|
||||||
|
* requestsync: Return an error when the script is unable to connect to
|
||||||
|
packages.debian.org (LP: #261916).
|
||||||
|
|
||||||
[ Ryan Kavanagh ]
|
[ Ryan Kavanagh ]
|
||||||
* dgetlp.1: New manpage
|
* dgetlp.1: New manpage
|
||||||
@ -12,6 +14,9 @@ ubuntu-dev-tools (0.43ubuntu1) intrepid; urgency=low
|
|||||||
* s/requestsync/pull-lp-source/g in doc/pull-lp-source.1
|
* s/requestsync/pull-lp-source/g in doc/pull-lp-source.1
|
||||||
* mk-sbuild-lv.1: New manpage
|
* mk-sbuild-lv.1: New manpage
|
||||||
|
|
||||||
|
[ Karl Goetz ]
|
||||||
|
* Add a Recommends: on ca-certificates (LP: #247157).
|
||||||
|
|
||||||
-- Ryan Kavanagh <ryanakca@kubuntu.org> Wed, 27 Aug 2008 13:51:15 -0400
|
-- Ryan Kavanagh <ryanakca@kubuntu.org> Wed, 27 Aug 2008 13:51:15 -0400
|
||||||
|
|
||||||
ubuntu-dev-tools (0.42ubuntu1) intrepid; urgency=low
|
ubuntu-dev-tools (0.42ubuntu1) intrepid; urgency=low
|
||||||
|
3
debian/control
vendored
3
debian/control
vendored
@ -14,7 +14,8 @@ Package: ubuntu-dev-tools
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
Section: devel
|
Section: devel
|
||||||
Depends: ${python:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.25), python-debian, dctrl-tools, lsb-release, diffstat, dpkg-dev
|
Depends: ${python:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.25), python-debian, dctrl-tools, lsb-release, diffstat, dpkg-dev
|
||||||
Recommends: bzr, pbuilder | sbuild, reportbug (>= 3.39ubuntu1)
|
Recommends: bzr, pbuilder | sbuild, reportbug (>= 3.39ubuntu1),
|
||||||
|
ca-certificates
|
||||||
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
||||||
Replaces: devscripts (<< 2.10.7ubuntu5)
|
Replaces: devscripts (<< 2.10.7ubuntu5)
|
||||||
XB-Python-Version: ${python:Versions}
|
XB-Python-Version: ${python:Versions}
|
||||||
|
12
requestsync
12
requestsync
@ -134,9 +134,19 @@ def debian_changelog(sourcepkg, component, version):
|
|||||||
|
|
||||||
ch = ''
|
ch = ''
|
||||||
subdir = sourcepkg[0]
|
subdir = sourcepkg[0]
|
||||||
|
|
||||||
if sourcepkg.startswith('lib'):
|
if sourcepkg.startswith('lib'):
|
||||||
subdir = 'lib%s' % sourcepkg[3]
|
subdir = 'lib%s' % sourcepkg[3]
|
||||||
for l in urllib.urlopen('http://packages.debian.org/changelogs/pool/%s/%s/%s/current/changelog.txt' % (component, subdir, sourcepkg)):
|
|
||||||
|
# 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))
|
||||||
|
except urllib2.HTTPError, error:
|
||||||
|
print >> sys.stderr, "Unable to connect to packages.debian.org. " \
|
||||||
|
"Received a %s." % error.code
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
for l in debianChangelogPage:
|
||||||
if l.startswith(sourcepkg):
|
if l.startswith(sourcepkg):
|
||||||
ch_version = l[ l.find("(")+1 : l.find(")") ]
|
ch_version = l[ l.find("(")+1 : l.find(")") ]
|
||||||
if Version(ch_version) <= base_version:
|
if Version(ch_version) <= base_version:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user