mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Debian source publication records are all Published now, not pending
(LP: #845487)
This commit is contained in:
parent
8543e3c5f9
commit
6ee66a6efc
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -5,6 +5,8 @@ ubuntu-dev-tools (0.131) UNRELEASED; urgency=low
|
|||||||
(LP: #844992)
|
(LP: #844992)
|
||||||
* import-bug-from-debian: Bugs are filed against source packages in Ubuntu.
|
* import-bug-from-debian: Bugs are filed against source packages in Ubuntu.
|
||||||
(LP: #844734)
|
(LP: #844734)
|
||||||
|
* Debian source publication records are all Published now, not pending
|
||||||
|
(LP: #845487)
|
||||||
|
|
||||||
[ Colin Watson ]
|
[ Colin Watson ]
|
||||||
* syncpackage: Fix typo.
|
* syncpackage: Fix typo.
|
||||||
|
@ -302,22 +302,12 @@ class Archive(BaseWrapper):
|
|||||||
else:
|
else:
|
||||||
series = dist.getDevelopmentSeries()
|
series = dist.getDevelopmentSeries()
|
||||||
|
|
||||||
# NOTE:
|
|
||||||
# For Debian all source publication are in the state 'Pending' so
|
|
||||||
# filter on this instead of 'Published'. As the result is sorted
|
|
||||||
# also by date the first result will be the most recent one
|
|
||||||
# (i.e. the one we are interested in).
|
|
||||||
if dist.name in ('debian',):
|
|
||||||
state = 'Pending'
|
|
||||||
else:
|
|
||||||
state = 'Published'
|
|
||||||
|
|
||||||
if (name, series.name, pocket) not in self._srcpkgs:
|
if (name, series.name, pocket) not in self._srcpkgs:
|
||||||
try:
|
try:
|
||||||
srcpkg = self.getPublishedSources(source_name=name,
|
srcpkg = self.getPublishedSources(source_name=name,
|
||||||
distro_series=series(),
|
distro_series=series(),
|
||||||
pocket=pocket,
|
pocket=pocket,
|
||||||
status=state,
|
status='Published',
|
||||||
exact_match=True)[0]
|
exact_match=True)[0]
|
||||||
index = (name, series.name, pocket)
|
index = (name, series.name, pocket)
|
||||||
self._srcpkgs[index] = SourcePackagePublishingHistory(srcpkg)
|
self._srcpkgs[index] = SourcePackagePublishingHistory(srcpkg)
|
||||||
|
@ -100,18 +100,17 @@ class BugTask(object):
|
|||||||
series = distro_info.DebianDistroInfo().testing()
|
series = distro_info.DebianDistroInfo().testing()
|
||||||
else:
|
else:
|
||||||
series = distro_info.DebianDistroInfo().devel()
|
series = distro_info.DebianDistroInfo().devel()
|
||||||
status = "Pending"
|
|
||||||
else:
|
else:
|
||||||
project = self.project
|
project = self.project
|
||||||
series = self.get_series(latest_release)
|
series = self.get_series(latest_release)
|
||||||
status = "Published"
|
|
||||||
|
|
||||||
dist = self.launchpad.distributions[project]
|
dist = self.launchpad.distributions[project]
|
||||||
archive = dist.getArchive(name="primary")
|
archive = dist.getArchive(name="primary")
|
||||||
distro_series = dist.getSeries(name_or_version=series)
|
distro_series = dist.getSeries(name_or_version=series)
|
||||||
published = archive.getPublishedSources(source_name=self.package,
|
published = archive.getPublishedSources(source_name=self.package,
|
||||||
distro_series=distro_series,
|
distro_series=distro_series,
|
||||||
status=status, exact_match=True)
|
status="Published",
|
||||||
|
exact_match=True)
|
||||||
|
|
||||||
latest_source = None
|
latest_source = None
|
||||||
for source in published:
|
for source in published:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user