mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-10 15:31:28 +00:00
* get-branches: Now check team option before anything else.
This commit is contained in:
parent
fb7bb815e0
commit
eab57aec28
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -16,6 +16,7 @@ ubuntu-dev-tools (0.37ubuntu1) intrepid; urgency=low
|
|||||||
* requestsync: Use the functions in the common.py file above to authenticate
|
* requestsync: Use the functions in the common.py file above to authenticate
|
||||||
with Launchpad.
|
with Launchpad.
|
||||||
* debian/control: Changed XS-Python-Version to >= 2.5.
|
* debian/control: Changed XS-Python-Version to >= 2.5.
|
||||||
|
* get-branches: Now check team option before anything else.
|
||||||
|
|
||||||
[ Siegfried-Angel Gevatter Pujals ]
|
[ Siegfried-Angel Gevatter Pujals ]
|
||||||
* Add the GNU General Public License header to all scripts.
|
* Add the GNU General Public License header to all scripts.
|
||||||
|
19
get-branches
19
get-branches
@ -48,6 +48,15 @@ def main():
|
|||||||
(options, args) = optParser.parse_args()
|
(options, args) = optParser.parse_args()
|
||||||
|
|
||||||
# Parse our options.
|
# Parse our options.
|
||||||
|
# No flags, and no team name specified.
|
||||||
|
if not options.lpteam and not args:
|
||||||
|
print >> sys.stderr, "No team has been specified."
|
||||||
|
optParser.print_help()
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
if args:
|
||||||
|
team = args[0]
|
||||||
|
|
||||||
# Dictionary settings.
|
# Dictionary settings.
|
||||||
if options.directory:
|
if options.directory:
|
||||||
try:
|
try:
|
||||||
@ -71,7 +80,7 @@ def main():
|
|||||||
# Launchpad team setting.
|
# Launchpad team setting.
|
||||||
if options.lpteam:
|
if options.lpteam:
|
||||||
try:
|
try:
|
||||||
team = args[0]
|
team = args[optsParsed]
|
||||||
optsParsed += 1
|
optsParsed += 1
|
||||||
except IndexError:
|
except IndexError:
|
||||||
print >> sys.stderr, "The '-t' option requires an argument."
|
print >> sys.stderr, "The '-t' option requires an argument."
|
||||||
@ -97,14 +106,6 @@ def main():
|
|||||||
else:
|
else:
|
||||||
operation_type = "branch"
|
operation_type = "branch"
|
||||||
|
|
||||||
# No flags, and no team name specified.
|
|
||||||
if not options.lpteam and not args:
|
|
||||||
print >> sys.stderr, "No team has been specified."
|
|
||||||
optParser.print_help()
|
|
||||||
sys.exit(1)
|
|
||||||
elif args:
|
|
||||||
team = args[optsParsed]
|
|
||||||
|
|
||||||
pwd = os.getcwd()
|
pwd = os.getcwd()
|
||||||
os.chdir(directory)
|
os.chdir(directory)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user