mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
* requestsync: Add line editing during input.
This commit is contained in:
parent
cd7ea02ceb
commit
faecbf7c31
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -6,6 +6,7 @@ ubuntu-dev-tools (0.25) UNRELEASED; urgency=low
|
|||||||
'source' line (LP: #183346).
|
'source' line (LP: #183346).
|
||||||
+ Add support to file sync requests with python-launchpad-bugs (--lp)
|
+ Add support to file sync requests with python-launchpad-bugs (--lp)
|
||||||
(LP: #147994).
|
(LP: #147994).
|
||||||
|
+ Add line editing during input.
|
||||||
* doc/requestsync.1:
|
* doc/requestsync.1:
|
||||||
+ Document new requestsync options.
|
+ Document new requestsync options.
|
||||||
|
|
||||||
@ -29,7 +30,7 @@ ubuntu-dev-tools (0.25) UNRELEASED; urgency=low
|
|||||||
* Remove duplicated ubuntu-dev-tools recommends (it's already a
|
* Remove duplicated ubuntu-dev-tools recommends (it's already a
|
||||||
dependency).
|
dependency).
|
||||||
|
|
||||||
-- Michael Bienia <geser@ubuntu.com> Sat, 19 Jan 2008 15:27:14 +0100
|
-- Michael Bienia <geser@ubuntu.com> Sat, 19 Jan 2008 16:18:45 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.24) hardy; urgency=low
|
ubuntu-dev-tools (0.24) hardy; urgency=low
|
||||||
|
|
||||||
|
14
requestsync
14
requestsync
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# License: GPLv2, see /usr/share/common-licenses/GPL
|
# License: GPLv2, see /usr/share/common-licenses/GPL
|
||||||
|
|
||||||
import os, sys, urllib, subprocess, getopt
|
import os, sys, urllib, subprocess, getopt, readline
|
||||||
|
|
||||||
def cur_version_component(sourcepkg, release):
|
def cur_version_component(sourcepkg, release):
|
||||||
'''Determine current package version in ubuntu.'''
|
'''Determine current package version in ubuntu.'''
|
||||||
@ -140,7 +140,7 @@ def mail_bug(source_package, subscribe, status, bugtitle, bugtext, keyid = None)
|
|||||||
|
|
||||||
print 'Press enter to file this bug, Control-C to abort.'
|
print 'Press enter to file this bug, Control-C to abort.'
|
||||||
try:
|
try:
|
||||||
sys.stdin.readline()
|
raw_input()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print 'Abort requested. No sync request filed.'
|
print 'Abort requested. No sync request filed.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@ -213,7 +213,7 @@ def post_bug(source_package, subscibe, status, bugtitle, bugtext):
|
|||||||
|
|
||||||
print 'Press enter to file this bug, Control-C to abort.'
|
print 'Press enter to file this bug, Control-C to abort.'
|
||||||
try:
|
try:
|
||||||
sys.stdin.readline()
|
raw_input()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print 'Abort requested. No sync request filed.'
|
print 'Abort requested. No sync request filed.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@ -289,8 +289,12 @@ if __name__ == '__main__':
|
|||||||
print 'Explanation of the Ubuntu delta and why it can be dropped:'
|
print 'Explanation of the Ubuntu delta and why it can be dropped:'
|
||||||
explanation = '\nExplanation of the Ubuntu delta and why it can be dropped:\n'
|
explanation = '\nExplanation of the Ubuntu delta and why it can be dropped:\n'
|
||||||
while (explanation[-2:] != '\n\n'):
|
while (explanation[-2:] != '\n\n'):
|
||||||
explanation += sys.stdin.readline()
|
try:
|
||||||
report += explanation
|
explanation += raw_input() + '\n'
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print 'Abort requested. No sync request filed.'
|
||||||
|
sys.exit(1)
|
||||||
|
report += explanation
|
||||||
|
|
||||||
uidx = base_ver.find('build')
|
uidx = base_ver.find('build')
|
||||||
if uidx > 0:
|
if uidx > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user