mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
sp/source_package
This commit is contained in:
parent
57ea2cc410
commit
c8ec463f7a
@ -15,6 +15,8 @@
|
|||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
@ -301,7 +303,7 @@ class SourcePackage(object):
|
|||||||
bug title."""
|
bug title."""
|
||||||
|
|
||||||
if not task.title_contains(self._version):
|
if not task.title_contains(self._version):
|
||||||
print "Bug #%i title: %s" % (bug_number, task.get_bug_title())
|
print("Bug #%i title: %s" % (bug_number, task.get_bug_title()))
|
||||||
msg = "Is %s %s the version that should be synced" % (self._package,
|
msg = "Is %s %s the version that should be synced" % (self._package,
|
||||||
self._version)
|
self._version)
|
||||||
answer = YesNoQuestion().ask(msg, "no")
|
answer = YesNoQuestion().ask(msg, "no")
|
||||||
@ -370,16 +372,16 @@ class SourcePackage(object):
|
|||||||
"""Print things that should be checked before uploading a package."""
|
"""Print things that should be checked before uploading a package."""
|
||||||
|
|
||||||
lintian_filename = self._run_lintian()
|
lintian_filename = self._run_lintian()
|
||||||
print "\nPlease check %s %s carefully:" % (self._package, self._version)
|
print("\nPlease check %s %s carefully:" % (self._package, self._version))
|
||||||
if os.path.isfile(self._debdiff_filename):
|
if os.path.isfile(self._debdiff_filename):
|
||||||
print "file://" + self._debdiff_filename
|
print("file://" + self._debdiff_filename)
|
||||||
print "file://" + lintian_filename
|
print("file://" + lintian_filename)
|
||||||
if self._build_log:
|
if self._build_log:
|
||||||
print "file://" + self._build_log
|
print("file://" + self._build_log)
|
||||||
|
|
||||||
harvest = Harvest(self._package)
|
harvest = Harvest(self._package)
|
||||||
if harvest.data:
|
if harvest.data:
|
||||||
print harvest.report()
|
print(harvest.report())
|
||||||
|
|
||||||
def reload_changelog(self):
|
def reload_changelog(self):
|
||||||
"""Reloads debian/changelog and updates the version.
|
"""Reloads debian/changelog and updates the version.
|
||||||
@ -393,7 +395,7 @@ class SourcePackage(object):
|
|||||||
try:
|
try:
|
||||||
self._changelog.parse_changelog(file("debian/changelog"),
|
self._changelog.parse_changelog(file("debian/changelog"),
|
||||||
max_blocks=1, strict=True)
|
max_blocks=1, strict=True)
|
||||||
except debian.changelog.ChangelogParseError, error:
|
except debian.changelog.ChangelogParseError as error:
|
||||||
Logger.error("The changelog entry doesn't validate: %s", str(error))
|
Logger.error("The changelog entry doesn't validate: %s", str(error))
|
||||||
ask_for_manual_fixing()
|
ask_for_manual_fixing()
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user