mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* README, debian/rules, doc/ppaput.1.docbook, ppaput, setup.py: removed
ppaput for now. It has shortcomings and is not actively used in the sponsoring process.
This commit is contained in:
parent
3e97b9f176
commit
36772683d0
6
README
6
README
@ -46,12 +46,6 @@ pbuilder-dist [withlog] [create|update|build|clean|login|execute]
|
||||
Debian releases. It's recommended to symlink as pbuilder-feisty,
|
||||
pbuilder-gutsy, etc.
|
||||
|
||||
ppaput [-n] <dput location> [<debuild options>]
|
||||
... will build a source package using <debuild options>, upload it
|
||||
to <dput location> and follow up on specified bugs, make sure the
|
||||
sponsoring process is followed. Also it will file a new bug, if
|
||||
'-n' is used.
|
||||
|
||||
pull-debian-debdiff <package> <version>
|
||||
... will attempt to find and download a specific version of a
|
||||
Debian package and its immediate parent to generate a debdiff.
|
||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -19,7 +19,12 @@ ubuntu-dev-tools (0.27) UNRELEASED; urgency=low
|
||||
* Add ppaput to debian/copyright.
|
||||
* Remove debian/pycompat.
|
||||
|
||||
-- Siegfried-Angel Gevatter Pujals (RainCT) <rainct@ubuntu.com> Sun, 17 Feb 2008 22:05:00 +0100
|
||||
[ Daniel Holbach ]
|
||||
* README, debian/rules, doc/ppaput.1.docbook, ppaput, setup.py: removed
|
||||
ppaput for now. It has shortcomings and is not actively used in the
|
||||
sponsoring process.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 22 Feb 2008 18:55:21 +0100
|
||||
|
||||
ubuntu-dev-tools (0.26) hardy; urgency=low
|
||||
|
||||
|
6
debian/rules
vendored
6
debian/rules
vendored
@ -7,11 +7,5 @@ include /usr/share/cdbs/1/class/python-distutils.mk
|
||||
|
||||
DEB_INSTALL_MANPAGES_ubuntu-dev-tools = doc/*.1
|
||||
|
||||
build/ubuntu-dev-tools::
|
||||
docbook2x-man doc/ppaput.1.docbook; mv ppaput.1 doc
|
||||
|
||||
binary-install/python-ubuntutools::
|
||||
rm -rf debian/python-ubuntutools/usr/lib
|
||||
|
||||
clean::
|
||||
rm -f doc/ppaput.1
|
||||
|
@ -1,145 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
||||
]>
|
||||
<refentry>
|
||||
<refentryinfo>
|
||||
<author>
|
||||
<firstname>Daniel</firstname>
|
||||
<surname>Holbach</surname>
|
||||
<email>daniel.holbach@ubuntu.com</email>
|
||||
</author>
|
||||
<copyright>
|
||||
<year>2007</year>
|
||||
<holder>Daniel Holbach</holder>
|
||||
</copyright>
|
||||
<!-- XXX IMPORTANT XXX -->
|
||||
<!-- Keep this date up to date: -->
|
||||
<date>2007-09-07</date>
|
||||
<!-- ^^^^^^^^^^ -->
|
||||
</refentryinfo>
|
||||
<refmeta>
|
||||
<refentrytitle>ppaput</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname>ppaput</refname>
|
||||
<refpurpose>A tool for uploading packages for sponsorship</refpurpose>
|
||||
</refnamediv>
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>ppaput</command>
|
||||
<arg choice="opt">
|
||||
<option>-n</option>
|
||||
</arg>
|
||||
<arg choice="opt">
|
||||
<option><dput location></option>
|
||||
</arg>
|
||||
<arg choice="opt">
|
||||
<option><debuild arguments></option>
|
||||
</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
<refsect1>
|
||||
<title>PREREQUISITES</title>
|
||||
<para>
|
||||
To use this tool, you will need to set up your PPA in Launchpad and
|
||||
therefore carefully follow the instructions in the <ulink type="http"
|
||||
url="https://help.launchpad.net/PPAQuickStart">PPA documentation</ulink>.
|
||||
</para>
|
||||
<para>
|
||||
Also you need to copy your Launchpad cookie to
|
||||
<filename>~/.lpcookie</filename>. Firefox uses
|
||||
<filename>~/.mozilla/firefox/<random>cookies.txt</filename>,
|
||||
Epiphany uses
|
||||
<filename>~/.gnome2/epiphany/mozilla/epiphany/cookies.txt</filename>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>OVERVIEW</title>
|
||||
<para>
|
||||
This tool aims to help with <ulink type="http"
|
||||
url="https://wiki.ubuntu.com/SponsorshipProcess">the sponsoring
|
||||
process</ulink> and is written by the MOTU team.
|
||||
</para>
|
||||
<para>
|
||||
This tool will 1) build a source package of the current source tree
|
||||
you're in, 2) upload the package to <<productname>dput</productname>
|
||||
location> (using 'default' if not specified), 3) follow up on the bug
|
||||
report (if specified in <filename>debian/changelog</filename> as per the
|
||||
<ulink type="http"
|
||||
url="https://wiki.ubuntu.com/ClosingBugsFromChangelog">changelog
|
||||
spec</ulink>), 4) set the right status and subscribe the right people to
|
||||
the bug report.
|
||||
</para>
|
||||
<para>
|
||||
If you use the <option>-n</option> option, it
|
||||
will also 1) file a bug and add 2) a (LP: #.....) header to the source
|
||||
package.
|
||||
</para>
|
||||
<para>
|
||||
<ulink type="http" url="https://wiki.ubuntu.com/SponsorshipProcess">The
|
||||
sponsoring process</ulink> was complicated enough and package uploads
|
||||
were done to either <productname>Malone</productname>,
|
||||
<productname>REVU</productname> or personal web servers. This tool aims
|
||||
to unify processes and make use of existing infrastructure such as
|
||||
<productname>Launchpad Bugs (Malone)</productname> and
|
||||
<productname>Launchpad PPA</productname>.
|
||||
In September 2007, Daniel Holbach started working on this tool.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>DESCRIPTION</title>
|
||||
<para>
|
||||
This tool has lists of known strings for a given package that
|
||||
it searches for in bug reports (even in the attachments uploaded),
|
||||
thus helping to find duplicates, related bugs and other information,
|
||||
but mainly making bug triagers job a lot easier.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>OPTIONS</title>
|
||||
<para>
|
||||
These are all the options available so far:
|
||||
</para>
|
||||
<para>
|
||||
<variablelist>
|
||||
<title>ppaput options:</title>
|
||||
<varlistentry>
|
||||
<term><option>-n</option></term>
|
||||
<listitem><para>files a new bug report and adds its number to
|
||||
<filename>debian/changelog</filename>
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option><dput location></option></term>
|
||||
<listitem><para>specifies the location you upload the source package
|
||||
to according to the alias you specified in either
|
||||
<filename>/etc/dput.cf</filename> or
|
||||
<filename>~/.dput.cf</filename></para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option><debuild arguments></option></term>
|
||||
<listitem><para>will be passed to <productname>debuild</productname>
|
||||
during source package creation
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1>
|
||||
<title>COPYRIGHT</title>
|
||||
<para>
|
||||
This manual page was written by the MOTU team for the
|
||||
<productname>revutool</productname> bug tracking system.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the <acronym>GNU</acronym> General Public License,
|
||||
Version 3 or any later version published by the Free Software Foundation.
|
||||
</para>
|
||||
<para>
|
||||
On Debian systems (like Ubuntu), the complete text of the
|
||||
GNU General Public License can be found in
|
||||
<filename>/usr/share/common-licenses/GPL-3</filename>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
82
ppaput
82
ppaput
@ -1,82 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright 2007, Canonical, Daniel Holbach
|
||||
# License: GPLv3
|
||||
#
|
||||
# Builds a source package from the source tree you're currently in,
|
||||
# uploads it to PPA and follow up on a bug report, subscribe the right
|
||||
# sponsors and sets the right status - if you pass "-n" it will file a
|
||||
# bug report and add "(LP: #....)" and to the changelog.
|
||||
|
||||
import os
|
||||
import sys
|
||||
from optparse import OptionParser
|
||||
|
||||
try:
|
||||
import ubuntutools.ppaput
|
||||
except ImportError:
|
||||
print 'You need python-ubuntu-utils installed to use ppaput.'
|
||||
sys.exit(1)
|
||||
|
||||
USAGE = \
|
||||
"""Usage: ppaput [-n] [<location>] [<debuild options>]
|
||||
|
||||
See debuild(1) for more information on debuild options."""
|
||||
parser = OptionParser(usage=USAGE)
|
||||
|
||||
parser.add_option('-n', action='store_true', dest='new_bug', help='File a new bug on Launchpad', default=False)
|
||||
parser.disable_interspersed_args()
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
def check_arguments():
|
||||
location = 'default'
|
||||
debuild_args = []
|
||||
|
||||
try:
|
||||
if args[0].startswith("-"):
|
||||
debuild_args = args
|
||||
else:
|
||||
location = args[0]
|
||||
debuild_args = args[1:]
|
||||
except IndexError:
|
||||
print "No location or arguments given, using defaults"
|
||||
|
||||
return (location, debuild_args)
|
||||
|
||||
def main():
|
||||
|
||||
(location, debuild_args) = check_arguments()
|
||||
print location
|
||||
print debuild_args
|
||||
|
||||
(sourcepackage, version, \
|
||||
section, release) = ppaput.get_name_version_section_and_release()
|
||||
|
||||
if options.new_bug:
|
||||
bugnumber = ppaput.file_bug(sourcepackage, version)
|
||||
os.system("dch -a 'Fixes (LP: #%s)'" % bugnumber)
|
||||
if not ppaput.call_debuild(debuild_args):
|
||||
sys.exit(1)
|
||||
|
||||
changesfile = "../%s_%s_source.changes" % (sourcepackage, version)
|
||||
if not os.path.exists(os.path.expanduser(changesfile)):
|
||||
print >> sys.stderr, "%s does not exist." % \
|
||||
os.path.expanduser(changesfile)
|
||||
sys.exit(1)
|
||||
|
||||
host = ppaput.lookup_dput_host(location)
|
||||
(dput_res, incoming) = ppaput.call_dput(location, changesfile)
|
||||
if not dput_res:
|
||||
print >> sys.stderr, "%s was not uploaded." % changesfile
|
||||
sys.exit(1)
|
||||
|
||||
fixed_lp_bugs = ppaput.find_fixed_launchpad_bug(changesfile)
|
||||
if fixed_lp_bugs:
|
||||
deal_with_bugreport(fixed_lp_bugs, host, section, incoming,
|
||||
sourcepackage, version, release)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user