mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
New manpage, fix typos
This commit is contained in:
commit
41d0be35a7
38
common.py
38
common.py
@ -164,20 +164,20 @@ def _check_for_launchpad_cookie(cookie_file):
|
||||
newLPCookieLocation = os.path.expanduser("~/.lpcookie.txt")
|
||||
|
||||
# Open file for writing.
|
||||
newLPCookie = open(newLPCookieLocation, 'w')
|
||||
# For security reasons, change file mode to write and read
|
||||
# only by owner.
|
||||
os.chmod(newLPCookieLocation, 0600)
|
||||
newLPCookie.write("# HTTP Cookie File.\n") # Header.
|
||||
try:
|
||||
newLPCookie = open(newLPCookieLocation, 'w')
|
||||
# For security reasons, change file mode to write and read
|
||||
# only by owner.
|
||||
os.chmod(newLPCookieLocation, 0600)
|
||||
newLPCookie.write("# HTTP Cookie File for Launchpad.\n") # Header.
|
||||
|
||||
for item in items:
|
||||
# Write entries.
|
||||
newLPCookie.write("%s\t%s\t%s\t%s\t%s\t%s\t%s\n" % (
|
||||
item[0], ftstr[item[0].startswith('.')], item[1],
|
||||
ftstr[item[2]], item[3], item[4], item[5]))
|
||||
|
||||
newLPCookie.write("\n") # New line.
|
||||
newLPCookie.close() # And close file.
|
||||
for item in items:
|
||||
# Write entries.
|
||||
newLPCookie.write("%s\t%s\t%s\t%s\t%s\t%s\t%s\n" % (
|
||||
item[0], ftstr[item[0].startswith('.')], item[1],
|
||||
ftstr[item[2]], item[3], item[4], item[5]))
|
||||
finally:
|
||||
newLPCookie.close() # And close file.
|
||||
|
||||
return newLPCookieLocation
|
||||
else:
|
||||
@ -188,8 +188,16 @@ def _check_for_launchpad_cookie(cookie_file):
|
||||
|
||||
def setupLaunchpadUrlOpener(cookie):
|
||||
""" Build HTML opener with cookie file. """
|
||||
cj = cookielib.MozillaCookieJar()
|
||||
cj.load(cookie)
|
||||
|
||||
# Attempt to load our cookie file.
|
||||
try:
|
||||
cj = cookielib.MozillaCookieJar()
|
||||
cj.load(cookie)
|
||||
except cookielib.LoadError, error:
|
||||
print "Unable to load cookie file: %s (%s)" % (cookie, error)
|
||||
sys.exit(1)
|
||||
|
||||
# Add cookie to our URL opener.
|
||||
urlopener = urllib2.build_opener()
|
||||
urlopener.add_handler(urllib2.HTTPCookieProcessor(cj))
|
||||
|
||||
|
15
debian/changelog
vendored
15
debian/changelog
vendored
@ -1,3 +1,18 @@
|
||||
ubuntu-dev-tools (0.43ubuntu1) intrepid; urgency=low
|
||||
|
||||
[Jonathan Patrick Davies]
|
||||
* common.py:
|
||||
- If loading a cookie file raises an exception exit.
|
||||
- Improve cookie file writing.
|
||||
|
||||
[Ryan Kavanagh]
|
||||
* dgetlp.1: New manpage
|
||||
* dgetlp: fix typo in usage
|
||||
* hugdaylist: New manpage
|
||||
* s/requestsync/pull-lp-source/g in doc/pull-lp-source.1
|
||||
|
||||
-- Ryan Kavanagh <ryanakca@kubuntu.org> Wed, 27 Aug 2008 11:20:11 -0400
|
||||
|
||||
ubuntu-dev-tools (0.42ubuntu1) intrepid; urgency=low
|
||||
|
||||
[Jonathan Patrick Davies]
|
||||
|
2
dgetlp
2
dgetlp
@ -37,7 +37,7 @@ usage()
|
||||
cat << EOF
|
||||
Usage: $0 [-d] <Launchpad URL>
|
||||
|
||||
This scripts simulates «dget»'s behaviour for files hostead at
|
||||
This scripts simulates «dget»'s behaviour for files hosted at
|
||||
launchpadlibrarian.net.
|
||||
|
||||
If you specify the -d option then it won't do anything, except download the
|
||||
|
37
doc/dgetlp.1
Normal file
37
doc/dgetlp.1
Normal file
@ -0,0 +1,37 @@
|
||||
.TH DGETLP "1" "27 August 2008" "ubuntu-dev-tools"
|
||||
|
||||
.SH NAME
|
||||
dgetlp \- simulate ``dget'' behaviour for files hosted at
|
||||
librarian.launchpad.net
|
||||
|
||||
.SH SYNOPSIS
|
||||
.B dgetlp [-d] <\fBLaunchpad DSC URL\fR>
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fBdgetlp\fR downloads and optionally extracts the <\fBLaunchpad DSC URL\fR> from Launchpad.
|
||||
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
Listed below are the command line options for dgetlp:
|
||||
.TP
|
||||
.B \-d
|
||||
Download the .dsc file and display the commands that would be run otherwise.
|
||||
.TP
|
||||
.B <Launchpad DSC URL>
|
||||
This is the source package that you would like to be downloaded from Launchpad.
|
||||
|
||||
.SH ENVIRONMENT VARIABLES
|
||||
.TP
|
||||
DIST
|
||||
Specifies the default target.
|
||||
|
||||
.SH EXAMPLE
|
||||
.B dgetlp http://launchpadlibrarian.net/10348157/coreutils_5.97-5.4ubuntu1.dsc
|
||||
|
||||
.SH AUTHOR
|
||||
.PP
|
||||
\fBdgetlp\fR was written written by Terence Simpson <tsimpson@ubuntu.com> and
|
||||
modified by Siegfried-A. Gevatter <rainct@ubuntu.com>. This man page was written
|
||||
by Ryan Kavanagh <ryanakca@kubuntu.org>. Both are released under the GNU General
|
||||
Public License, version 2 or later.
|
@ -15,7 +15,7 @@ will be downloaded instead.
|
||||
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
Listed below are the command line options for requestsync:
|
||||
Listed below are the command line options for pull-lp-source:
|
||||
.TP
|
||||
.B \-h, --help
|
||||
Display a help message and exit.
|
||||
|
Loading…
x
Reference in New Issue
Block a user