mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* Moved common.py to ubuntutools/ subdirectory to avoid possible conflicts
in Python packaging and fixed all imports as necessary.
This commit is contained in:
parent
152220567d
commit
59aac908c1
3
buildd
3
buildd
@ -31,8 +31,7 @@ from optparse import OptionParser
|
|||||||
from urllib import urlencode
|
from urllib import urlencode
|
||||||
|
|
||||||
# ubuntu-dev-tools modules.
|
# ubuntu-dev-tools modules.
|
||||||
sys.path.append("/usr/share/ubuntu-dev-tools/")
|
from ubuntutools import common
|
||||||
import common
|
|
||||||
|
|
||||||
# Usage.
|
# Usage.
|
||||||
usage = "%prog <srcpackage> <release> <operation>\n\n"
|
usage = "%prog <srcpackage> <release> <operation>\n\n"
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -5,6 +5,8 @@ ubuntu-dev-tools (0.56) UNRELEASED; urgency=low
|
|||||||
* common.py: Improved no credentials found error message to show which
|
* common.py: Improved no credentials found error message to show which
|
||||||
consumer token is needed.
|
consumer token is needed.
|
||||||
* requestsync: Catch credentials error to hide traceback.
|
* requestsync: Catch credentials error to hide traceback.
|
||||||
|
* Moved common.py to ubuntutools/ subdirectory to avoid possible conflicts
|
||||||
|
in Python packaging and fixed all imports as necessary.
|
||||||
|
|
||||||
-- Jonathan Davies <jpds@ubuntu.com> Thu, 15 Jan 2009 12:35:12 +0000
|
-- Jonathan Davies <jpds@ubuntu.com> Thu, 15 Jan 2009 12:35:12 +0000
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from common import get_launchpad
|
from ubuntutools.common import get_launchpad
|
||||||
|
|
||||||
USAGE = "grab-attachments <bug numbers>"
|
USAGE = "grab-attachments <bug numbers>"
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ import string
|
|||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
from common import get_launchpad, translate_web_api, translate_api_web
|
from ubuntutools.common import get_launchpad, translate_web_api, translate_api_web
|
||||||
|
|
||||||
def check_args():
|
def check_args():
|
||||||
howmany = -1
|
howmany = -1
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser, make_option
|
from optparse import OptionParser, make_option
|
||||||
from common import Credentials, Launchpad, translate_service
|
from ubuntutools.common import Credentials, Launchpad, translate_service
|
||||||
from common import LEVEL, translate_api_web, approve_application
|
from ubuntutools.common import LEVEL, translate_api_web, approve_application
|
||||||
from common import mkdir
|
from ubuntutools.common import mkdir
|
||||||
|
|
||||||
class CmdOptions(OptionParser):
|
class CmdOptions(OptionParser):
|
||||||
|
|
||||||
|
2
massfile
2
massfile
@ -27,7 +27,7 @@ import email
|
|||||||
import subprocess
|
import subprocess
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
from common import get_launchpad, translate_api_web, translate_web_api
|
from ubuntutools.common import get_launchpad, translate_api_web, translate_web_api
|
||||||
|
|
||||||
def read_config():
|
def read_config():
|
||||||
instructions_file = open("instructions")
|
instructions_file = open("instructions")
|
||||||
|
@ -33,8 +33,7 @@ import urllib2
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
# Ubuntu-dev-tools modules.
|
# Ubuntu-dev-tools modules.
|
||||||
sys.path.append("/usr/share/ubuntu-dev-tools")
|
from ubuntutools import common
|
||||||
import common
|
|
||||||
|
|
||||||
class BackportFromLP:
|
class BackportFromLP:
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ from debian_bundle.changelog import Version
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
import common
|
from ubuntutools import common
|
||||||
|
|
||||||
launchpad_cookiefile = common.prepareLaunchpadCookie()
|
launchpad_cookiefile = common.prepareLaunchpadCookie()
|
||||||
|
|
||||||
|
1
setup.py
1
setup.py
@ -41,5 +41,4 @@ setup(name='ubuntu-dev-tools',
|
|||||||
'manage-credentials',
|
'manage-credentials',
|
||||||
],
|
],
|
||||||
packages=['ubuntutools'],
|
packages=['ubuntutools'],
|
||||||
py_modules = ['common'],
|
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user