mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
merge with upstream
This commit is contained in:
commit
bf2540facc
5
404main
5
404main
@ -1,4 +1,9 @@
|
||||
#!/usr/bin/python
|
||||
# The author of this script is unknown
|
||||
# License: Public Domain
|
||||
#
|
||||
# This script is used to check in what components ("main", "restricted",
|
||||
# "universe" or "multiverse") the dependencies of a package are.
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
11
AUTHORS
11
AUTHORS
@ -1,4 +1,11 @@
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
Luke Yelavich <themuso@ubuntu.com>
|
||||
Albin Tonnerre <lut1n.tne@gmail.com>
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
Jamin W. Collins <jcollins@asgardsrealm.net>
|
||||
Jordan Mantha <mantha@ubuntu.com>
|
||||
Luke Yelavich <themuso@ubuntu.com>
|
||||
Michael Bienia <geser@ubuntu.com>
|
||||
Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Kees Cook <kees@ubuntu.com>
|
||||
Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
Soren Hansen <soren@ubuntu.com>
|
||||
Steve Kowalik <stevenk@ubuntu.com>
|
||||
|
@ -1,8 +1,8 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
@ -225,7 +225,7 @@ impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
@ -336,6 +335,5 @@ necessary. Here is a sample; alter the names:
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
676
GPL-3
Normal file
676
GPL-3
Normal file
@ -0,0 +1,676 @@
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
57
README
57
README
@ -1,6 +1,55 @@
|
||||
Ubuntu Development Tools
|
||||
================================
|
||||
== Ubuntu Development Tools ==
|
||||
================================
|
||||
|
||||
404main <package>
|
||||
... will check in what components the dependencies of <package> are.
|
||||
|
||||
check-symbols <package> [<directory>]
|
||||
... will compare and give you a diff of the exported symbols of all
|
||||
.so files in all binary packages of <package>.
|
||||
<directory> is not mandatory and /var/cache/pbuilder/result by default.
|
||||
... will compare and give you a diff of the exported symbols of all .so
|
||||
files in all binary packages of <package>.
|
||||
<directory> is not mandatory and set to /var/cache/pbuilder/result by default.
|
||||
|
||||
dch-repeat [--help]
|
||||
... will repeat a change log into an older release.
|
||||
|
||||
get-branches <directory> <team> [checkout|branch]
|
||||
... will branch / checkout all the Bazaar branches in a Launchpad team.
|
||||
|
||||
hugdaylist [-n <number>] <bug list url>
|
||||
... will create a list of <number> bug list for a hug day listing
|
||||
|
||||
mk-sbuild-lv
|
||||
... will create LVM snapshot chroots via schroot and sbuild. It assumes that
|
||||
sbuild has not be installed and configured before.
|
||||
|
||||
pbuilder-dist [withlog] [create|update|build|clean|login|execute]
|
||||
... is a wrapper to use pbuilder with many different distributions / versions.
|
||||
It has to be renamed to something like 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.
|
||||
|
||||
requestsync [-n|-s] <source package> <target release> [base version]
|
||||
... will file a sync request for a package from Debian by sending a bug report to
|
||||
Launchpad.
|
||||
|
||||
suspicious-source
|
||||
... will output a list of files which are not common source files. This should be
|
||||
run in the root of a source tree to find files which might not be the "prefered
|
||||
form of modification" that the GPL and other licenses require.
|
||||
|
||||
update-maintainer
|
||||
... will update the maintainer field of an Ubuntu package to match the
|
||||
DebianMaintainerField specification.
|
||||
|
||||
what-patch
|
||||
... will check what patching system is used by a package.
|
||||
You need to be in it's source directory in order that it works.
|
||||
|
@ -1,40 +1,62 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2006-2007 (C) Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
# Modified by Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
# License: GPLv2
|
||||
#
|
||||
# This script is used to get a diff of the exported symbols of all .so files in
|
||||
# every binary package of package $1.
|
||||
|
||||
PACKAGES="`apt-cache showsrc $1 | grep ^Binary | sed 's/Binary\:\ //g;s/\,//g' | sort -u`"
|
||||
DEBLINE=""
|
||||
DEBUG=False
|
||||
|
||||
if [ -z $1 ]; then \
|
||||
echo "Missing argument: source package name."; \
|
||||
exit; \
|
||||
if [[ -z $1 ]]; then
|
||||
echo "Missing argument: source package name.";
|
||||
exit;
|
||||
fi
|
||||
|
||||
if [ -z $2 ]; then \
|
||||
DEBDIR="/var/cache/pbuilder/result"; \
|
||||
else \
|
||||
DEBDIR="$2"; \
|
||||
if [[ -z $2 ]]; then
|
||||
DEBDIR="/var/cache/pbuilder/result";
|
||||
else
|
||||
DEBDIR="$2";
|
||||
fi
|
||||
|
||||
for pack in $PACKAGES; \
|
||||
do \
|
||||
for lib in `dpkg -L $pack | grep -E "\.so$" | sort -u`; \
|
||||
do \
|
||||
LIBNAME=$(basename $lib); \
|
||||
nm -D $lib | cut -d' ' -f3 | sort -u > /tmp/$LIBNAME.1; \
|
||||
done; \
|
||||
DEBLINE="$DEBLINE $DEBDIR/$pack*.deb ";
|
||||
for pack in $PACKAGES;
|
||||
do
|
||||
for lib in `dpkg -L $pack | grep -E "\.so$" | sort -u`;
|
||||
do
|
||||
LIBNAME=$(basename $lib);
|
||||
nm -D $lib | cut -d' ' -f3 | sort -u > /tmp/$LIBNAME.1;
|
||||
done;
|
||||
DEBLINE="$DEBLINE $DEBDIR/$pack*.deb ";
|
||||
done
|
||||
|
||||
if [[ -z $DEBLINE ]]; then
|
||||
echo "Package doesn't exist: $1."; exit
|
||||
fi
|
||||
|
||||
NOFILE=True
|
||||
for filename in $DEBLINE; do
|
||||
if [[ ${filename: -5} != "*.deb" ]]; then
|
||||
NOFILE=False
|
||||
[[ $DEBUG != True ]] || echo "Found binary file: $filename"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ $NOFILE == True ]]; then
|
||||
echo "No matching binary files found in «$DEBDIR»."; exit
|
||||
fi
|
||||
|
||||
sudo dpkg -i $DEBLINE;
|
||||
|
||||
for pack in $PACKAGES; \
|
||||
do \
|
||||
for lib in `dpkg -L $pack | grep -E "\.so$" | sort -u`; \
|
||||
do \
|
||||
LIBNAME=$(basename $lib); \
|
||||
nm -D $lib | cut -d' ' -f3 | sort -u > /tmp/$LIBNAME.2; \
|
||||
echo "Checking: $lib"; \
|
||||
diff -u /tmp/$LIBNAME.{1,2}; \
|
||||
rm /tmp/$LIBNAME.{1,2}; \
|
||||
done; \
|
||||
for pack in $PACKAGES;
|
||||
do
|
||||
for lib in `dpkg -L $pack | grep -E "\.so$" | sort -u`;
|
||||
do
|
||||
LIBNAME=$(basename $lib);
|
||||
nm -D $lib | cut -d' ' -f3 | sort -u > /tmp/$LIBNAME.2;
|
||||
echo "Checking: $lib";
|
||||
diff -u /tmp/$LIBNAME.{1,2};
|
||||
rm /tmp/$LIBNAME.{1,2};
|
||||
done;
|
||||
done
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/perl
|
||||
# Copyright 2007, Kees Cook <kees@ubuntu.com>
|
||||
# Copyright 2007 (C) Kees Cook <kees@ubuntu.com>
|
||||
# License: GPLv2
|
||||
#
|
||||
# This script is used to repeat a change log into an older release. It
|
||||
# expects that --build-tree is layed out with each Ubuntu release as a
|
||||
# separate directory ("feisty", "edgy", etc).
|
||||
@ -9,6 +10,7 @@
|
||||
# $TREE/feisty/gimp-2.2.13, running "dch-repeat" in
|
||||
# $TREE/edgy/gimp-2.2.13 would pull in the latest changelog from the Feisty
|
||||
# build.
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Getopt::Long;
|
||||
|
197
debian/changelog
vendored
197
debian/changelog
vendored
@ -1,3 +1,200 @@
|
||||
ubuntu-dev-tools (0.20) hardy; urgency=low
|
||||
|
||||
[ Cesare Tirabassi ]
|
||||
* suspicious-source: add *.hh to list of excluded files
|
||||
* suspicious-source: format excluded file list to fit 80 chars limit
|
||||
* suspicious-source: corrected typos in script and manual page
|
||||
|
||||
[ Dainel Holbach ]
|
||||
* hugdaylist: only mention 'unassigned bugs'.
|
||||
|
||||
[ Soren Hansen ]
|
||||
* Added missing python-debian dependency (needed by submittodebian)
|
||||
|
||||
[ Laurent Bigonville ]
|
||||
* debian/control: add a space before the Homepage pseudo-field
|
||||
* pbuilder-dist: add hardy to the distribution list
|
||||
|
||||
-- Laurent Bigonville <bigon@ubuntu.com> Tue, 23 Oct 2007 18:54:32 +0200
|
||||
|
||||
ubuntu-dev-tools (0.19) gutsy; urgency=low
|
||||
|
||||
[ Siegfried-Angel Gevatter Pujals (RainCT) ]
|
||||
* requestsync: allow to customize the SMTP server (LP: #144224)
|
||||
* Add a short description for requestsync to the README file.
|
||||
|
||||
[ Laurent Bigonville ]
|
||||
* pbuilder-dist: Fix error on chroot creation (LP: #146475)
|
||||
* requestsync: allow to customize the SMTP port
|
||||
|
||||
[ Adrien Cunin ]
|
||||
* README: minor and cosmetic changes
|
||||
|
||||
-- Adrien Cunin <adri2000@ubuntu.com> Sun, 07 Oct 2007 00:24:46 +0200
|
||||
|
||||
ubuntu-dev-tools (0.18) gutsy; urgency=low
|
||||
|
||||
* requestsync: add an option to "Add latest debian version to the title of
|
||||
the bug" (LP: #132221)
|
||||
|
||||
-- Marco Rodrigues <gothicx@sapo.pt> Fri, 05 Oct 2007 14:16:34 +0200
|
||||
|
||||
ubuntu-dev-tools (0.17) gutsy; urgency=low
|
||||
|
||||
* submittodebian: backed out changes from last upload. This needs Debian Bug
|
||||
445144 fixed.
|
||||
* debian/control: don't Depends on a version of reportbug Ubuntu does not
|
||||
have yet.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 05 Oct 2007 11:44:51 +0200
|
||||
|
||||
ubuntu-dev-tools (0.16) gutsy; urgency=low
|
||||
|
||||
[ Lucas Nussbaum ]
|
||||
* Added support for Bugs/Debian/Usertagging in submittodebian.
|
||||
|
||||
[ Daniel Holbach ]
|
||||
* setup.py: actually install submittodebian.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 05 Oct 2007 11:05:29 +0200
|
||||
|
||||
ubuntu-dev-tools (0.15) gutsy; urgency=low
|
||||
|
||||
[ Laurent Bigonville ]
|
||||
* update-maintainer: correctly pass path to dch (LP: #141015)
|
||||
|
||||
[ Daniel Holbach ]
|
||||
* ppaput:
|
||||
- fix indentation issues.
|
||||
- now respects the PPA section the package goes to (LP: #146161)
|
||||
- add comment to bug about how to test the resulting .deb (LP: #145895)
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 01 Oct 2007 15:56:18 +0200
|
||||
|
||||
ubuntu-dev-tools (0.14) gutsy; urgency=low
|
||||
|
||||
* massfile:
|
||||
- fixed bug where to find example files,
|
||||
- made url get checked beforehand.
|
||||
- fixed bug, where description and summary were not updated with the
|
||||
current source package.
|
||||
* examples/massfile.instructions: added example buglist-url.
|
||||
.
|
||||
Thanks Andrew Mitchell, for helping out by fixing and clever advise.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Thu, 27 Sep 2007 11:43:55 +0200
|
||||
|
||||
ubuntu-dev-tools (0.13) gutsy; urgency=low
|
||||
|
||||
* massfile: added script to file mass-bugs.
|
||||
* debian/examples, examples/massfile.{instructions,list}: added example
|
||||
files.
|
||||
* setup.py: install massfile.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Thu, 27 Sep 2007 11:04:52 +0200
|
||||
|
||||
ubuntu-dev-tools (0.12) gutsy; urgency=low
|
||||
|
||||
* hugdaylist: apply quick fix to not crash.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 24 Sep 2007 09:43:30 +0200
|
||||
|
||||
ubuntu-dev-tools (0.11) gutsy; urgency=low
|
||||
|
||||
[ Daniel Holbach ]
|
||||
* compare-packages, README: dropped compare-packages, debdiff has the same
|
||||
functionality, when used with --from --to or on *.changes files.
|
||||
* hugdaylist: prepare the list more carefully (filter out 'fixed committed'
|
||||
bugs and bugs that have ubuntu-*-sponsors subscribed.
|
||||
|
||||
[ Siegfried-Angel Gevatter Pujals (RainCT) ]
|
||||
* Added a manpage for suspicious-source.
|
||||
* Fixed a bug in pbuilder-dist (it needed ftp.debian.org in sources.list to work with Debian).
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 24 Sep 2007 09:39:24 +0200
|
||||
|
||||
ubuntu-dev-tools (0.10) gutsy; urgency=low
|
||||
|
||||
* compare-packages: added script to compare the contents of 'old' and 'new'
|
||||
binary packages of the same source package. Useful to spot moved files,
|
||||
dropped files, etc.
|
||||
* README: briefly document added scripts.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 14 Sep 2007 11:23:36 +0200
|
||||
|
||||
ubuntu-dev-tools (0.9) gutsy; urgency=low
|
||||
|
||||
* Added submittodebian.1
|
||||
|
||||
-- Soren Hansen <soren@ubuntu.com> Thu, 13 Sep 2007 14:38:49 +0200
|
||||
|
||||
ubuntu-dev-tools (0.8) gutsy; urgency=low
|
||||
|
||||
* Renamed revuput to ppaput.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Thu, 13 Sep 2007 14:35:18 +0200
|
||||
|
||||
ubuntu-dev-tools (0.7) gutsy; urgency=low
|
||||
|
||||
[Colin Watson]
|
||||
* Fix *roff use (hyphens vs. dashes, start each sentence on a new line).
|
||||
|
||||
[Daniel Holbach]
|
||||
* revuput: deal with the case of NEW packages.
|
||||
* hugdaylist: added a tool to write Wiki lists of bugs in <buglist url> as
|
||||
in https://wiki.ubuntu.com/UbuntuBugDay/20070912
|
||||
* debian/control: bumped python-launchpad-bugs version.
|
||||
|
||||
-- Colin Watson <cjwatson@ubuntu.com> Wed, 12 Sep 2007 09:28:54 +0100
|
||||
|
||||
ubuntu-dev-tools (0.6) gutsy; urgency=low
|
||||
|
||||
* Because I'm a bozo, fix up the version of the devscripts
|
||||
Conflicts/Replaces.
|
||||
|
||||
-- Steve Kowalik <stevenk@ubuntu.com> Wed, 12 Sep 2007 10:46:21 +1000
|
||||
|
||||
ubuntu-dev-tools (0.5) gutsy; urgency=low
|
||||
|
||||
* Add requestsync and its manual page from devscripts. (LP: #138885)
|
||||
* Add Conflicts/Replaces against devscripts 2.10.7ubuntu3.
|
||||
|
||||
-- Steve Kowalik <stevenk@ubuntu.com> Wed, 12 Sep 2007 01:14:04 +1000
|
||||
|
||||
ubuntu-dev-tools (0.4) gutsy; urgency=low
|
||||
|
||||
* revuput: added a tool to upload packages to PPA and file sponsoring bugs
|
||||
automatically.
|
||||
* doc/revuput.1.docbook, debian/control, debian/rules: build manpage for it
|
||||
from DocBook.
|
||||
* setup.py: install it.
|
||||
* debian/control: add python-launchpad-bugs Depends.
|
||||
|
||||
[Soren Hansen]
|
||||
* added submittodebian tool.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 07 Sep 2007 14:14:57 +0200
|
||||
|
||||
ubuntu-dev-tools (0.3) gutsy; urgency=low
|
||||
|
||||
* debian/copyright: added Canonical copyright.
|
||||
|
||||
-- Daniel Holbach <daniel.holbach@ubuntu.com> Tue, 04 Sep 2007 09:51:04 +0200
|
||||
|
||||
ubuntu-dev-tools (0.2) gutsy; urgency=low
|
||||
|
||||
[ Martin Pitt ]
|
||||
* Add suspicious-source: Output a list of files which are not common source
|
||||
files. This should be run in the root of a source tree to find files which
|
||||
might not be the 'prefered form of modification' that the GPL and other
|
||||
licenses require.
|
||||
|
||||
[ Luke Yelavich ]
|
||||
* Removed ubuntu-cd and ubuntu-sync. They are currently undergoing
|
||||
major reworking, and will be re-included when ready.
|
||||
|
||||
-- Luke Yelavich <themuso@ubuntu.com> Sat, 4 Aug 2007 08:30:01 +1000
|
||||
|
||||
ubuntu-dev-tools (0.1) gutsy; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
8
debian/control
vendored
8
debian/control
vendored
@ -5,17 +5,21 @@ Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
|
||||
XS-Vcs-Bzr: https://launchpad.net/ubuntu-dev-tools/
|
||||
XS-Vcs-Browser: http://codebrowse.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk/changes
|
||||
Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5), python-central (>= 0.5), python-all-dev (>= 2.4)
|
||||
Build-Depends-Indep: docbook2x
|
||||
XS-Python-Version: all
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
Package: ubuntu-dev-tools
|
||||
Architecture: all
|
||||
Section: devel
|
||||
Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, rsync, sudo
|
||||
Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.14), reportbug, python-debian
|
||||
Recommends: bzr, pbuilder
|
||||
Conflicts: devscripts (<< 2.10.7ubuntu5)
|
||||
Replaces: devscripts (<< 2.10.7ubuntu5)
|
||||
XB-Python-Version: ${python:Versions}
|
||||
Description: useful tools for Ubuntu developers
|
||||
This is a collection of useful tools that Ubuntu developers use to
|
||||
make their packaging work a lot easier. Such tools can include bug
|
||||
filing, packaging preparation, package analysis, etc.
|
||||
.
|
||||
Homepage: https://launchpad.net/ubuntu-dev-tools/
|
||||
Homepage: https://launchpad.net/ubuntu-dev-tools/
|
||||
|
52
debian/copyright
vendored
52
debian/copyright
vendored
@ -1,24 +1,37 @@
|
||||
This package was re-debianized by Daniel Holbach <daniel.holbach@ubuntu.com> on
|
||||
Fri, 01 Jun 2007 11:30:08 +0200.
|
||||
|
||||
Upstream Author:
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
Luke Yelavich <themuso@ubuntu.com>
|
||||
Upstream Author:
|
||||
Albin Tonnerre <lut1n.tne@gmail.com>
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
Jamin W. Collins <jcollins@asgardsrealm.net>
|
||||
Jordan Mantha <mantha@ubuntu.com>
|
||||
Luke Yelavich <themuso@ubuntu.com>
|
||||
Martin Pitt <martin.pitt@ubuntu.com>
|
||||
Michael Bienia <geser@ubuntu.com>
|
||||
Kees Cook <kees@ubuntu.com>
|
||||
Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
Soren Hansen <soren@ubuntu.com>
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright:
|
||||
Copyright 2006-2007 (C) Canonical Ltd.
|
||||
Albin Tonnerre <lut1n.tne@gmail.com> 2006-2007
|
||||
Daniel Holbach <daniel.holbach@ubuntu.com> 2006-2007
|
||||
Luke Yelavich <themuso@ubuntu.com> 2006-2007
|
||||
Albin Tonnerre <lut1n.tne@gmail.com> 2006-2007
|
||||
Martin Pitt <martin.pitt@ubuntu.com> 2007
|
||||
Michael Bienia <geser@ubuntu.com> 2006-2007
|
||||
Kees Cook <kees@ubuntu.com> 2006-2007
|
||||
Siegfried-A. Gevatter <siggi.gevatter@gmail.com> 2007
|
||||
|
||||
License:
|
||||
Licenses:
|
||||
|
||||
check-symbols, dch-repeat, mk-sbuild-lv, pbuilder-dist, pull-debian-debdiff,
|
||||
submittodebian, update-maintainer, and what-patch are licensed under GPLv2:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
the Free Software Foundation, at version 2.
|
||||
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
@ -29,6 +42,25 @@ License:
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
On Debian systems, the complete text of the GNU General Public License v2
|
||||
can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
get-branches and suspicious-source are licensed under GPLv3:
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, at version 3.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
On Debian systems, the complete text of the GNU General Public License v3
|
||||
can be found in `/usr/share/common-licenses/GPL-3'.
|
||||
|
||||
The following of the scripts can be used, at your option, regarding any later version
|
||||
of the previously specified license: pbuilder-dist and suspicious-source.
|
||||
|
1
debian/examples
vendored
Normal file
1
debian/examples
vendored
Normal file
@ -0,0 +1 @@
|
||||
examples/*
|
8
debian/rules
vendored
8
debian/rules
vendored
@ -4,3 +4,11 @@ DEB_PYTHON_SYSTEM := pycentral
|
||||
|
||||
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||
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
|
||||
|
||||
clean::
|
||||
rm -f doc/ppaput.1
|
||||
|
114
doc/pbuilder-dist.1
Normal file
114
doc/pbuilder-dist.1
Normal file
@ -0,0 +1,114 @@
|
||||
.\" Title: pbuilder-dist
|
||||
.\" Author: Siegfried-Angel Gevatter Pujals
|
||||
.\" Contact details: siggi.gevatter@gmail.com
|
||||
.\"
|
||||
.TH PBUILDER\-DIST 1 "August 16, 2007"
|
||||
.\"
|
||||
.SH NAME
|
||||
pbuilder\-dist \- multi-distribution pbuilder wrapper
|
||||
.\"
|
||||
.SH SYNOPSIS
|
||||
\fBpbuilder\-dist\fP \fIdistribution\fR [\fBi386\fP|\fBamd64\fP] [\fBmainonly\fP|\fBallcomp\fP]
|
||||
[\fBwithlog\fP|\fBnolog\fP] \fIoperation\fR [\fI...\fR]
|
||||
.\"
|
||||
.SH DESCRIPTION
|
||||
\fBpbuilder\-dist\fP is a wrapper that makes it easy to use pbuilder with many different
|
||||
versions of Ubuntu and/or Debian.
|
||||
.PP
|
||||
It is common to symlink this script in order to give it many names in the form of
|
||||
\fBpbuilder\-\fIdistribution\fP\fR (\fBpbuilder\-\fIdistribution\fR\-\fIarchitecture\fP\fR on amd64
|
||||
systems), like for example \fBpbuilder\-feisty\fP, \fBpbuilder\-sid\fP, \fBpbuilder\-gutsy\-i386\fP, etc.
|
||||
.\"
|
||||
.SH USAGE
|
||||
There are many arguments listed on the synopsis.
|
||||
Each of them, if used, has to be used exactly in the same order as it
|
||||
appears there.
|
||||
In case you renamed the script to \fBpbuilder\-\fIdistribution\fP\fR, do not
|
||||
use the \fBdistribution\fP parameter; same with \fBi386\fP / \fBamd64\fP if
|
||||
the name also contains \-\fIarchitecture\fR.
|
||||
.TP
|
||||
\fBdistribution\fP
|
||||
Replace this with the codename of the version of Ubuntu or Debian you want to use.
|
||||
.TP
|
||||
\fBi386\fP / \fBamd64\fP
|
||||
Only available on amd64 systems.
|
||||
This is optional; default is \fBamd64\fP.
|
||||
If \fBi386\fP is specified, an i386 environment will be used.
|
||||
.TP
|
||||
\fBmainonly\fP / \fBallcomp\fP
|
||||
This is optional; default is \fBallcomp\fP.
|
||||
If you specify \fBmainonly\fP, only packages from the main (in Debian) or
|
||||
main and restricted (in Ubuntu) components will be used.
|
||||
With the latter one, all official components will be enabled.
|
||||
This only has effect when creating a new environment.
|
||||
.TP
|
||||
\fBwithlog\fP / \fBnolog\fP
|
||||
This is optional; default is \fBnolog\fP.
|
||||
When \fBwithlog\fP is used, \fBpbuilder\fP will save the output produced by
|
||||
the current action in a dot-file called \fB.lastlog\fP in its base directory
|
||||
(see the FILES section).
|
||||
If this file already exists, it will be overwritten.
|
||||
.TP
|
||||
\fBoperation\fP
|
||||
Replace this with the action you want \fBpbuilder\fP to do (create, update, build, clean, login
|
||||
or execute).
|
||||
Check its manpage for more details.
|
||||
.TP
|
||||
\fB[...]\fP
|
||||
.br
|
||||
Replace this with other parameters, if needed.
|
||||
For example, if \fBbuild\fP is the option, you will need to also specify
|
||||
a .dsc file.
|
||||
.PP
|
||||
The default value of all optional parameters (except the architecture) can be changed by
|
||||
editing the first lines of the script.
|
||||
.\"
|
||||
.SH EXAMPLES
|
||||
.TP
|
||||
pbuilder\-dist gutsy create
|
||||
Creates a \fBpbuilder\fP environment for Ubuntu Gutsy, with all components enabled.
|
||||
.TP
|
||||
pbuilder\-sid mainonly create
|
||||
Creates a \fBpbuilder\fP environment for Debian Sid, with only the main component.
|
||||
.TP
|
||||
pbuilder\-feisty build ./sample_1.0\-0ubuntu1.dsc
|
||||
Builds the specified package on an already existing Ubuntu Feisty environment.
|
||||
.TP
|
||||
pbuilder\-dist feisty withlog build ./sample_1.0\-0ubuntu1.dsc
|
||||
Same as above, but stores \fBpbuilder\fP's output on a file.
|
||||
.TP
|
||||
pbuilder\-etch i386 update
|
||||
Updates an existing i386-architecture Debian Etch environment on an amd64 system.
|
||||
.\"
|
||||
.SH FILES
|
||||
By default, \fBpbuilder\-dist\fP will store all the files it generates in \fB~/pbuilder/\fP.
|
||||
This can be changed by modifying the BASE_DIR value on the top of the script
|
||||
to any other directory you want.
|
||||
If it doesn't exist, it will be created on the run.
|
||||
.\"
|
||||
.SH BUGS
|
||||
There are no known bugs at the moment.
|
||||
If you experience any problem with this script contact me on
|
||||
siggi.gevatter@gmail.com.
|
||||
Please ensure first that the problem is really this script and not an issue
|
||||
with \fBpbuilder\fP.
|
||||
.\"
|
||||
.SH AUTHORS
|
||||
\fBpbuilder\-dist\fP was originally written by Jamin W. Collins <jcollins@asgardsrealm.net> and
|
||||
Jordan Mantha <mantha@ubuntu.com>.
|
||||
.PP
|
||||
On August 2007 it was mostly rewritten, and extended, by Siegfried-Angel Gevatter Pujals
|
||||
<siggi.gevatter@gmail.com>.
|
||||
.\"
|
||||
.SH SEE ALSO
|
||||
\fBpbuilder\fR, \fBpbuilderrc\fR
|
||||
.\"
|
||||
.SH COPYRIGHT
|
||||
This manual page was written by Siegfried-Angel Gevatter Pujals (RainCT)
|
||||
<siggi.gevatter@gmail.com> for YOU.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU General Public License,
|
||||
Version 2 or any later version published by the Free Software Foundation.
|
||||
.PP
|
||||
On Debian based systems, the complete text of the GNU General Public
|
||||
License can be found in \fB/usr/share/common\-licenses/GPL\fP.
|
145
doc/ppaput.1.docbook
Normal file
145
doc/ppaput.1.docbook
Normal file
@ -0,0 +1,145 @@
|
||||
<?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 <arg choice="opt"><option>-n</option></arg> 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 it's 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>
|
37
doc/requestsync.1
Normal file
37
doc/requestsync.1
Normal file
@ -0,0 +1,37 @@
|
||||
.TH REQUESTSYNC "1" "6 August 2007" "devscripts"
|
||||
.SH NAME
|
||||
requestsync \- helper to file sync requests for Ubuntu
|
||||
.SH SYNOPSIS
|
||||
.B requestsync
|
||||
.RI [\fI \-n | \-s \fR] " " <\fIsource\fR " " \fIpackage\fR> " " <\fItarget\fR " " \fIrelease\fR> " "[\fIbase\fR " " \fIversion\fR]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fBrequestsync\fR looks at the versions of <source package> in Debian and Ubuntu, prompts for an explanation of why the Ubuntu changes (if there are any) should be dropped, downloads the changelog entry from packages.debian.org, and then prompts for your GPG passphrase so it can sign the mail and send it off, which files a sync request in the form of a bug report in Launchpad.
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
Listed below are the command line options for requestsync:
|
||||
.TP
|
||||
\fB\-n\fR
|
||||
Specifies that the package is a new package, and requestsync should not attempt to look it up in Ubuntu since it will not exist.
|
||||
.TP
|
||||
\fB\-s\fR
|
||||
Specifies that you require sponsorship.
|
||||
You need this option if you are not a member of ubuntu-dev for universe or multiverse, or ubuntu-core-dev for main or restricted.
|
||||
.TP
|
||||
\fB<source package>\fR
|
||||
This is the source package that you would like to be synced from Debian.
|
||||
.TP
|
||||
\fB<target release>\fR
|
||||
This is the release that you would like the source package to be synced into.
|
||||
This should always be the latest development release of Ubuntu, ie: gutsy.
|
||||
.TP
|
||||
\fB[base version]\fR
|
||||
In some cases, the base version (where the Ubuntu package started differing from the Debian package) can not be automatically determined.
|
||||
Specify this option in this case.
|
||||
.SH AUTHOR
|
||||
.PP
|
||||
This manual page was pieced together by Steve Kowalik.
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
\fBrmadison\fP\fB(1)\fP
|
||||
.UE
|
25
doc/submittodebian.1
Normal file
25
doc/submittodebian.1
Normal file
@ -0,0 +1,25 @@
|
||||
.TH SUBMITTODEBIAN 1 "Sep 2007"
|
||||
.SH NAME
|
||||
submittodebian \- submit changes in Debian source tree to Debian
|
||||
.SH DESCRIPTION
|
||||
This manual page documents briefly the
|
||||
.B submittodebian
|
||||
command.
|
||||
.PP
|
||||
.B submittodebian
|
||||
was created to help bridge a gap between Debian and Ubuntu, namely by making it trivially easy to submit your changes to a Debian package to the Debian bts.
|
||||
.PP
|
||||
It expects to find the .dsc and diff.gz of the current version (which you likely just created) and the previous one in the parent directory. By examining debian/changelog it will extract the information it needs to:
|
||||
.PP
|
||||
1. Extract the debdiff containing your changes.
|
||||
.PP
|
||||
2. Open the debdiff in your $EDITOR so that you can remove any Ubuntu specific changes.
|
||||
.PP
|
||||
3. Extract your changelog entry so that you can create a bug report from it.
|
||||
.PP
|
||||
4. Start reportbug with the debdiff attached and with the text of the changelog entry.
|
||||
.SH SEE ALSO
|
||||
.BR reportbug (1).
|
||||
.br
|
||||
.SH AUTHOR
|
||||
submittodebian and this man page was written by Soren Hansen <soren@ubuntu.com>.
|
29
doc/suspicious-source.1
Normal file
29
doc/suspicious-source.1
Normal file
@ -0,0 +1,29 @@
|
||||
.\" Title: suspicious-source
|
||||
.\" Author: Siegfried-Angel Gevatter Pujals
|
||||
.\" Contact details: siggi.gevatter@gmail.com
|
||||
.\"
|
||||
.TH SUSPICIOUS\-SOURCE 1 "September 14, 2007"
|
||||
.\"
|
||||
.SH NAME
|
||||
suspicious\-source \- search for files that are not the GPL's "preferred form of modification"
|
||||
.\"
|
||||
.SH SYNOPSIS
|
||||
\fBsuspicious\-source\fP
|
||||
.\"
|
||||
.SH DESCRIPTION
|
||||
\fBsuspicious\-source\fP is a script that outputs a list of files which are not common source files.
|
||||
This should be run in the root of a source tree to find files which might not be the "preferred form of modification"
|
||||
that the GPL and other licenses require.
|
||||
.PP
|
||||
Neither the files inside version control system directories (like ".bzr/" or "CVS/"), nor those inside "debian/" are
|
||||
considered.
|
||||
.\"
|
||||
.SH AUTHORS
|
||||
\fBsuspicious\-source\fP has been written by Siegfried-Angel Gevatter Pujals <siggi.gevatter@gmail.com>, based upon
|
||||
a script with the same name, by Martin Pitt <martin.pitt@ubuntu.com>.
|
||||
.\"
|
||||
.SH SEE ALSO
|
||||
\fBfind(1)\fR
|
||||
.\"
|
||||
.SH COPYRIGHT
|
||||
This manual page was written by Siegfried-Angel Gevatter Pujals (RainCT). It is released under the GNU General Public License, version 2 or later.
|
16
examples/massfile.instructions
Normal file
16
examples/massfile.instructions
Normal file
@ -0,0 +1,16 @@
|
||||
subject: [UNMETDEPS] $pack has unmet dependencies
|
||||
assignee:
|
||||
subscribers: motu
|
||||
tags: unmetdeps
|
||||
buglist-url: http://bugs.launchpad.net/ubuntu/+bugs?field.tag=unmetdeps
|
||||
text:
|
||||
A run of
|
||||
.
|
||||
LC_ALL=C apt-cache -i unmet | grep ^Package | cut -d' ' -f2 | grep
|
||||
-v dbgsym | sort -u | xargs apt-cache showsrc | grep ^Directory |
|
||||
sed 's/Package\:\ //g' | grep verse | cut -d'/' -f4
|
||||
indicates that the source package $pack has binary packages that are not
|
||||
installable (on AMD64) at the moment.
|
||||
.
|
||||
Please have a look and make sure it's installable again.
|
||||
|
2
examples/massfile.list
Normal file
2
examples/massfile.list
Normal file
@ -0,0 +1,2 @@
|
||||
z88dk
|
||||
zope-quotafolder
|
69
get-branches
Executable file
69
get-branches
Executable file
@ -0,0 +1,69 @@
|
||||
#!/usr/bin/python
|
||||
# Copyright 2007 (C) Canonical Ltd.
|
||||
# Created by Daniel Holbach <daniel.holbach@ubuntu.com>
|
||||
# License: GPLv3
|
||||
#
|
||||
# This script is used to checkout or branch all the Bazaar branches
|
||||
# in a Launchpad team.
|
||||
|
||||
import urllib2
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
|
||||
def main():
|
||||
usage = "Usage: get-branches <directory> <team> [checkout|branch]"
|
||||
if len(sys.argv) < 3:
|
||||
print >> sys.stderr, usage
|
||||
sys.exit(1)
|
||||
|
||||
directory = os.path.abspath(sys.argv[1]))
|
||||
team = sys.argv[2]
|
||||
operation_type = "branch"
|
||||
if len(sys.argv) == 4:
|
||||
operation_type = sys.argv[3]
|
||||
|
||||
pwd = os.getcwd()
|
||||
try:
|
||||
os.chdir(directory)
|
||||
except:
|
||||
print >> sys.stderr, "Directory '%s' not found." % directory
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
os.makedirs(team)
|
||||
except:
|
||||
pass
|
||||
os.chdir(team)
|
||||
|
||||
sock = urllib2.urlopen("http://code.launchpad.net/~%s" % team)
|
||||
branch_list_page = sock.read()
|
||||
sock.close()
|
||||
branch_page_urls_regex = r'.*<a href="/(~%s/.*)".*' % team
|
||||
branch_page_urls = re.findall(branch_page_urls_regex, branch_list_page)
|
||||
for url in branch_page_urls:
|
||||
sock = urllib2.urlopen("http://code.launchpad.net/%s" % url)
|
||||
branch_page = sock.read()
|
||||
sock.close()
|
||||
branch_url_regex = r'<th>Hosted on Launchpad:</th>.*\n.*<td>(.*)</td>'
|
||||
branch_url = re.findall(branch_url_regex, branch_page)
|
||||
print branch_url[0]
|
||||
if branch_url[0]:
|
||||
product = branch_url[0].split("/")[-2]
|
||||
branch_nick = branch_url[0].split("/")[-1]
|
||||
if not os.path.exists(product):
|
||||
os.makedirs(product)
|
||||
os.chdir(product)
|
||||
if not os.path.exists(branch_nick):
|
||||
os.system("bzr %s %s" % (operation_type, branch_url[0]))
|
||||
else:
|
||||
os.chdir(branch_nick)
|
||||
os.system("bzr merge --pull --remember")
|
||||
os.chdir(os.path.join(directory, team))
|
||||
|
||||
os.chdir(pwd)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
80
hugdaylist
Executable file
80
hugdaylist
Executable file
@ -0,0 +1,80 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# Copyright 2007, Canonical, Daniel Holbach
|
||||
#
|
||||
# GPL 3
|
||||
#
|
||||
# hugdaylist <url>
|
||||
# - produces lists like https://wiki.ubuntu.com/UbuntuBugDay/20070912?action=raw
|
||||
#
|
||||
# hugdaylist -n <howmany> <url>
|
||||
# - will only list <howmany> URLs
|
||||
#
|
||||
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
import string
|
||||
|
||||
try:
|
||||
import launchpadbugs.connector as Connector
|
||||
BugList = Connector.ConnectBugList()
|
||||
Bug = Connector.ConnectBug()
|
||||
except:
|
||||
print >> sys.stderr, \
|
||||
"You need python-launchpad-bugs (>= 0.2.9) installed to use hugdaylist."
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
USAGE = "hugdaylist [-n <howmany>] <URL>"
|
||||
|
||||
def check_args():
|
||||
howmany = -1
|
||||
url = ""
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print >> sys.stderr, USAGE
|
||||
sys.exit(1)
|
||||
|
||||
if sys.argv[1] == "-n":
|
||||
howmany = int(sys.argv[2])
|
||||
url = sys.argv[3]
|
||||
else:
|
||||
url = sys.argv[1]
|
||||
|
||||
return (howmany, url)
|
||||
|
||||
def filter_unsolved(bugs):
|
||||
result = set()
|
||||
|
||||
for b in bugs:
|
||||
bug = Bug(int(b))
|
||||
if bug.status != 'Fix Committed' and \
|
||||
'ubuntu-main-sponsors' not in [str(s) for s in bug.subscribers] and \
|
||||
'ubuntu-universe-sponsors' not in [str(s) for s in bug.subscribers] and \
|
||||
(bug.assignee in ['motu','desktop-bugs'] or not bug.assignee):
|
||||
result.add(b)
|
||||
return result
|
||||
|
||||
def main():
|
||||
(howmany, url) = check_args()
|
||||
|
||||
l = BugList(url).filter(func=[filter_unsolved])
|
||||
|
||||
if not l.bugs:
|
||||
print "BugList of %s is empty." % url
|
||||
sys.exit(0)
|
||||
|
||||
if howmany == -1:
|
||||
howmany = len(l.bugs)
|
||||
|
||||
print "|| Bug || Subject || Triager ||"
|
||||
|
||||
for i in list(l.bugs)[:howmany]:
|
||||
print '||<rowstyle="background-color: ;"> [%s %s] || %s || ||' % \
|
||||
(i.url, i.bugnumber, i.summary)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
124
massfile
Executable file
124
massfile
Executable file
@ -0,0 +1,124 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# (C) Canonical, 2007, GPL v3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import email
|
||||
import subprocess
|
||||
|
||||
import launchpadbugs.connector as Connector
|
||||
|
||||
|
||||
def read_config():
|
||||
instructions_file = open("instructions")
|
||||
instructions = email.message_from_file(instructions_file)
|
||||
instructions_file.close()
|
||||
instr = dict()
|
||||
|
||||
for field in "subject", "assignee", "subscribers", "tags", "text", \
|
||||
"buglist-url":
|
||||
instr[field] = instructions.get(field)
|
||||
|
||||
return instr
|
||||
|
||||
def read_list():
|
||||
pack_list = set()
|
||||
|
||||
listfile = open("list")
|
||||
for line in listfile.readlines():
|
||||
if line.strip()!="":
|
||||
pack_list.add(line.strip("\n"))
|
||||
|
||||
listfile.close()
|
||||
return pack_list
|
||||
|
||||
def file_bug():
|
||||
Bug = Connector.ConnectBug()
|
||||
Bug.authentication = os.path.expanduser("~/.lpcookie")
|
||||
|
||||
|
||||
def check_configfiles():
|
||||
result = True
|
||||
|
||||
bin_path = os.path.dirname(os.path.abspath(__file__))
|
||||
if bin_path == "/usr/bin":
|
||||
example_dir = "/usr/share/doc/ubuntu-dev-tools/examples"
|
||||
else:
|
||||
example_dir = "%s/examples" % bin_path
|
||||
|
||||
if not os.path.exists("instructions"):
|
||||
os.system("cp %s/massfile.instructions instructions" % example_dir)
|
||||
print >> sys.stderr, \
|
||||
"No 'instructions' file found. Copied template from %s." % \
|
||||
example_dir
|
||||
result = False
|
||||
|
||||
if not os.path.exists("list"):
|
||||
os.system("cp %s/massfile.list list" % example_dir)
|
||||
print >> sys.stderr, \
|
||||
"No 'list' file found. Copied template from %s." % example_dir
|
||||
result = False
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def file_bug(config):
|
||||
Bug = Connector.ConnectBug()
|
||||
Bug.authentication = os.path.expanduser("~/.lpcookie")
|
||||
|
||||
try:
|
||||
summary = config["subject"].replace("$pack", config["sourcepackage"])
|
||||
description = config["text"].replace("$pack", config["sourcepackage"])
|
||||
|
||||
bug = Bug.New(product={"name": config["sourcepackage"],
|
||||
"target": "ubuntu"},
|
||||
summary=summary,
|
||||
description=description)
|
||||
print "Successfully filed bug %s: http://launchpad.net/bugs/%s" % \
|
||||
(bug.bugnumber, bug.bugnumber)
|
||||
for sub in config["subscribers"].split(","):
|
||||
if sub.strip("\n").strip():
|
||||
bug.subscribers.add(sub.strip("\n").strip())
|
||||
for tag in config["tags"].split(","):
|
||||
if tag.strip("\n").strip():
|
||||
bug.tags.append(tag.strip("\n").strip())
|
||||
bug.assignee = config["assignee"]
|
||||
bug.commit()
|
||||
except:
|
||||
"Bug for '%s' was not filed." % config["sourcepackage"]
|
||||
|
||||
def read_buglist(url):
|
||||
BugList = Connector.ConnectBugList()
|
||||
packages = set()
|
||||
|
||||
if url:
|
||||
buglist = BugList(url)
|
||||
for bug in buglist.bugs:
|
||||
packages.add(bug.sourcepackage)
|
||||
|
||||
return packages
|
||||
|
||||
|
||||
def main():
|
||||
if not check_configfiles():
|
||||
sys.exit(1)
|
||||
|
||||
if not os.path.exists(os.path.expanduser("~/.lpcookie")):
|
||||
print >> sys.stderr, \
|
||||
"Launchpad cookie not found in ~/.lpcookie."
|
||||
sys.exit(1)
|
||||
|
||||
config = read_config()
|
||||
pack_list = read_list()
|
||||
buglist = read_buglist(config["buglist-url"])
|
||||
|
||||
for pack in pack_list:
|
||||
if pack not in buglist:
|
||||
config["sourcepackage"] = pack
|
||||
file_bug(config)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
50
mk-sbuild-lv
50
mk-sbuild-lv
@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Script to create LVM snapshot chroots via schroot and sbuild.
|
||||
# Copyright 2006-2007 (C) Canonical Ltd.
|
||||
# Created by Kees Cook <kees@ubuntu.com>
|
||||
# License: GPLv2
|
||||
#
|
||||
# This script creates LVM snapshot chroots via schroot and sbuild.
|
||||
# Much love to "man sbuild-setup", https://wiki.ubuntu.com/PbuilderHowto,
|
||||
# and https://help.ubuntu.com/community/SbuildLVMHowto.
|
||||
#
|
||||
# This script assumes that sbuild has not be installed and configured before.
|
||||
# It assumes that sbuild has not be installed and configured before.
|
||||
#
|
||||
# If using schroot earlier than 1.1.4-1, it's a good idea to apply the
|
||||
# process-cleaning patch to /etc/schroot/setup.d/10mount. Without this, any
|
||||
@ -17,9 +21,7 @@
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392992
|
||||
#
|
||||
# Version: 0.11
|
||||
#
|
||||
# Copyright 2006-2007, Canonical Ltd, Kees Cook <kees@ubuntu.com>
|
||||
# License: GPLv2
|
||||
|
||||
set -e
|
||||
|
||||
# Make sure we've got a regular user
|
||||
@ -52,11 +54,6 @@ if [ ! -w /var/lib/sbuild ]; then
|
||||
# (mandatory, no default!).
|
||||
\$maintainer_name='$USER <$USER@localhost>';
|
||||
|
||||
# Chroot behaviour; possible values are "split" (apt and dpkg are run
|
||||
# from the host system) and "schroot" (all package operations are done in
|
||||
# the chroot with schroot, but the chroot must allow networking)
|
||||
\$chroot_mode = "schroot";
|
||||
|
||||
# Directory for chroot symlinks and sbuild logs. Defaults to the
|
||||
# current directory if unspecified.
|
||||
#\$build_dir='$HOME/ubuntu/build';
|
||||
@ -88,9 +85,11 @@ function usage()
|
||||
{
|
||||
echo "Usage: $0 [OPTIONS] VG Release" >&2
|
||||
echo "Options:"
|
||||
echo " --arch=ARCH What architecture to select"
|
||||
echo " --name=NAME Base name for the schroot (arch is appended)"
|
||||
echo " --debug Turn on script debugging"
|
||||
echo " --arch=ARCH What architecture to select"
|
||||
echo " --name=NAME Base name for the schroot (arch is appended)"
|
||||
echo " --debug Turn on script debugging"
|
||||
echo " --source-template=FILE Use FILE as the sources.list template"
|
||||
echo " --debootstrap-mirror=URL Use URL as the debootstrap source"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -98,7 +97,7 @@ function usage()
|
||||
if [ -z "$1" ]; then
|
||||
usage
|
||||
fi
|
||||
OPTS=`getopt -o '' --long "help,debug,arch:,name::" -- "$@"`
|
||||
OPTS=`getopt -o '' --long "help,debug,arch:,name:,source-template:,debootstrap-mirror:" -- "$@"`
|
||||
eval set -- "$OPTS"
|
||||
|
||||
name=""
|
||||
@ -118,6 +117,18 @@ while :; do
|
||||
name="$2"
|
||||
shift 2
|
||||
;;
|
||||
--source-template)
|
||||
TEMPLATE_SOURCES="$2"
|
||||
shift 2
|
||||
if [ ! -r $TEMPLATE_SOURCES ]; then
|
||||
echo "W: Template file $TEMPLATE_SOURCES is not readable"
|
||||
echo "W: Continuing with default sources!"
|
||||
fi
|
||||
;;
|
||||
--debootstrap-mirror)
|
||||
DEBOOTSTRAP_MIRROR="$2"
|
||||
shift 2
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
break
|
||||
@ -156,10 +167,7 @@ if [ ! -f "/usr/lib/debootstrap/scripts/$RELEASE" ]; then
|
||||
echo "Specified release not known to debootstrap" >&2
|
||||
exit 1
|
||||
else
|
||||
# Look for a buildd variant to work with
|
||||
if [ -f "/usr/lib/debootstrap/scripts/${RELEASE}.buildd" ]; then
|
||||
variant_opt="--variant=buildd"
|
||||
fi
|
||||
variant_opt="--variant=buildd"
|
||||
fi
|
||||
|
||||
# Allocate the "golden" chroot LV
|
||||
@ -172,7 +180,9 @@ sudo mount "$CHROOT_PATH" "$MNT"
|
||||
sudo debootstrap $arch_opt $variant_opt "$RELEASE" "$MNT" "${DEBOOTSTRAP_MIRROR:-http://archive.ubuntu.com/ubuntu}"
|
||||
# Update the package sources
|
||||
TEMP_SOURCES=`mktemp -t sources-XXXXXX`
|
||||
TEMPLATE_SOURCES=~/.mk-sbuild-lv.sources
|
||||
if [ -z "$TEMPLATE_SOURCES" ]; then
|
||||
TEMPLATE_SOURCES=~/.mk-sbuild-lv.sources
|
||||
fi
|
||||
if [ -r "$TEMPLATE_SOURCES" ]; then
|
||||
cat "$TEMPLATE_SOURCES" > "$TEMP_SOURCES"
|
||||
else
|
||||
@ -196,7 +206,7 @@ TEMPLATE_SCHROOTCONF=~/.mk-sbuild-lv.schroot.conf
|
||||
if [ -r "$TEMPLATE_SCHROOTCONF" ]; then
|
||||
cat "$TEMPLATE_SCHROOTCONF" > "$TEMP_SCHROOTCONF"
|
||||
else
|
||||
cat > "$TEMPLATE_SCHROOTCONF" <<EOM
|
||||
cat > "$TEMP_SCHROOTCONF" <<EOM
|
||||
|
||||
[CHROOT_NAME]
|
||||
type=lvm-snapshot
|
||||
|
194
pbuilder-dist
194
pbuilder-dist
@ -1,36 +1,172 @@
|
||||
#!/bin/sh
|
||||
# script from Jamin W. Collins BTS: #255165
|
||||
# name this script 'pbuilder-dapper', 'pbuilder-edgy', 'pbuilder-feisty' etc.
|
||||
# Copyright (C) Jamin W. Collins <jcollins@asgardsrealm.net>
|
||||
# and Jordan Mantha <mantha@ubuntu.com>
|
||||
# Copyright 2007 (C) Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
# License: GPLv2 or later
|
||||
#
|
||||
# The only variable you really might need to change is BASE_DIR if you don't want pbuilder stuff in ~/
|
||||
# This script is a wrapper to use pbuilder with many different
|
||||
# distributions / versions. (It was originally created because of
|
||||
# bug #255165 in Debian.)
|
||||
#
|
||||
# If you want to use this copy of the script only for a single distribution
|
||||
# / version, rename it to 'pbuilder-dapper', 'pbuilder-feisty', 'pbuilder-gutsy',
|
||||
# or whatever it is. If you have an amd64, you can also use names like
|
||||
# 'pbuilder-feisty-i386', etc.
|
||||
|
||||
# Base directory where pbuilder will put all the files it creates
|
||||
BASE_DIR="$HOME/pbuilder"
|
||||
|
||||
# Enable additional repositories by default? (universe and multiverse in Ubuntu,
|
||||
# contrib and non-free in Debian.)
|
||||
EXTRACOMP=1
|
||||
|
||||
# Save the log of the last operation in a dot-file? ('.lastlog' in BASE_DIR)
|
||||
SAVELOG=0
|
||||
|
||||
# Allow this script to use /var/cache/apt/archives/ when possible
|
||||
SYSCACHE=1
|
||||
|
||||
|
||||
################################
|
||||
|
||||
ARCH=`dpkg-architecture -qDEB_HOST_ARCH`
|
||||
SYSDIST=`lsb_release -cs`
|
||||
|
||||
help()
|
||||
{
|
||||
echo "Insufficient number of arguments."
|
||||
echo "Usage: $0 "$( [ "$1" != 'show-dist-flag' ] || echo "<distribution> " )$( [ $ARCH != "amd64" ] || echo "[i386|amd64] " )"[mainonly|allcomp] [withlog|nolog] <operation>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ ! -z `echo \`basename $0\` | grep -- '-'` ] && [ `basename $0` != 'pbuilder-dist' ]
|
||||
then
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
help
|
||||
fi
|
||||
|
||||
BINARCH=`basename $0 | cut -f3 -d '-'`
|
||||
DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
|
||||
else
|
||||
if [ $# -lt 2 ]
|
||||
then
|
||||
help show-dist-flag
|
||||
fi
|
||||
|
||||
DISTRIBUTION=$1
|
||||
shift 1
|
||||
fi
|
||||
|
||||
|
||||
if [ $1 = "i386" ] || [ $1 = "amd64" ]
|
||||
then
|
||||
if [ $ARCH = "amd64" ]; then
|
||||
BINARCH=$1
|
||||
else
|
||||
echo "Warning: Architecture switching is not supported on your system; ignoring argument."
|
||||
fi
|
||||
|
||||
shift 1
|
||||
fi
|
||||
|
||||
|
||||
if [ $1 = "mainonly" ]; then
|
||||
EXTRACOMP=0
|
||||
shift 1
|
||||
elif [ $1 = "allcomp" ]; then
|
||||
EXTRACOMP=1
|
||||
shift 1
|
||||
fi
|
||||
|
||||
|
||||
if [ $1 = "withlog" ]; then
|
||||
SAVELOG=1
|
||||
shift 1
|
||||
elif [ $1 = "nolog" ]; then
|
||||
SAVELOG=0
|
||||
shift 1
|
||||
fi
|
||||
|
||||
|
||||
distdata()
|
||||
{
|
||||
if [ "$1" = "debian" ]
|
||||
then
|
||||
# Set Debian specific data
|
||||
ARCHIVE="http://ftp.debian.org"
|
||||
COMPONENTS="main"$( [ $EXTRACOMP = 0 ] || echo " contrib non-free" )
|
||||
else
|
||||
# Set Ubuntu specific data
|
||||
ARCHIVE="http://archive.ubuntu.com/ubuntu"
|
||||
COMPONENTS="main restricted"$( [ $EXTRACOMP = 0 ] || echo " universe multiverse" )
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
case $DISTRIBUTION in
|
||||
dapper|edgy|feisty|gutsy|hardy) # warty|hoary|breezy
|
||||
distdata ubuntu
|
||||
;;
|
||||
|
||||
oldstable|sarge|stable|etch|testing|lenny|unstable|sid|experimental)
|
||||
distdata debian
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Warning: Unknown distribution «$DISTRIBUTION»."
|
||||
echo -n "Continue [y/N]? "
|
||||
read continue
|
||||
|
||||
if [ "$continue" != 'y' ] && [ "$continue" != 'Y' ]
|
||||
then
|
||||
echo "Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
distdata
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
OPERATION=$1
|
||||
DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
|
||||
PROCEED=false
|
||||
BASE_DIR="$HOME/pbuilder"
|
||||
|
||||
case $OPERATION in
|
||||
create|update|build|clean|login|execute )
|
||||
PROCEED=true
|
||||
;;
|
||||
create|update|build|clean|login|execute)
|
||||
shift 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unrecognized argument. Please use one of those:"
|
||||
echo " create"
|
||||
echo " update"
|
||||
echo " build"
|
||||
echo " clean"
|
||||
echo " login"
|
||||
echo " execute"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
if [ $PROCEED = true ]; then
|
||||
shift
|
||||
if [ ! -d $BASE_DIR/${DISTRIBUTION}_result ]
|
||||
then mkdir -p $BASE_DIR/${DISTRIBUTION}_result/
|
||||
fi
|
||||
sudo pbuilder $OPERATION \
|
||||
--basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \
|
||||
--distribution $DISTRIBUTION \
|
||||
--buildresult $BASE_DIR/$DISTRIBUTION_result \
|
||||
--othermirror "deb http://archive.ubuntu.com/ubuntu $DISTRIBUTION universe multiverse" $@
|
||||
else
|
||||
echo "Invalid command..."
|
||||
echo "Valid commands are:"
|
||||
echo " create"
|
||||
echo " update"
|
||||
echo " build"
|
||||
echo " clean"
|
||||
echo " login"
|
||||
echo " execute"
|
||||
exit 1
|
||||
|
||||
FOLDERBASE="${DISTRIBUTION}-$( ([ "$BINARCH" != "" ] && echo $BINARCH) || echo $ARCH )"
|
||||
|
||||
if [ ! -d $BASE_DIR/${FOLDERBASE}_result ]
|
||||
then
|
||||
mkdir -p $BASE_DIR/${FOLDERBASE}_result
|
||||
fi
|
||||
|
||||
if [ $SYSCACHE != 0 ] && [ "$SYSDIST" = "$DISTRIBUTION" ] && [ "$ARCH" = "$BINARCH" -o -z $BINARCH ]
|
||||
then
|
||||
DEBCACHE='/var/cache/apt/archives/'
|
||||
fi
|
||||
|
||||
sudo pbuilder $OPERATION \
|
||||
--basetgz $BASE_DIR/$FOLDERBASE-base.tgz \
|
||||
--distribution $DISTRIBUTION \
|
||||
$( [ -z $BINARCH ] || echo "--debootstrapopts \"--arch\" --debootstrapopts \"$BINARCH\"" ) \
|
||||
$( [ $SAVELOG = 0 ] || echo "--logfile $BASE_DIR/.lastlog" ) \
|
||||
$( [ -z $DEBCACHE ] || echo "--aptcache $DEBCACHE" ) \
|
||||
--buildresult $BASE_DIR/${FOLDERBASE}_result \
|
||||
--mirror "$ARCHIVE" \
|
||||
--othermirror "deb $ARCHIVE $DISTRIBUTION $COMPONENTS" \
|
||||
$@
|
||||
|
276
ppaput
Executable file
276
ppaput
Executable file
@ -0,0 +1,276 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# Copyright 2007, Canonical, Daniel Holbach
|
||||
#
|
||||
# GPL 3
|
||||
#
|
||||
#
|
||||
# 11:57:27 < dholbach> but what it does is: build a source package of
|
||||
# the current source tree you're in, upload it to PPA
|
||||
# and follow up on a bug report, subscribe the right
|
||||
# sponsors, set the right status - if you pass "-n"
|
||||
# it will file a bug report, add a (LP: #....) to
|
||||
# the changelog also
|
||||
# 11:57:37 < dholbach> I thought it'd help with our sponsoring process
|
||||
#
|
||||
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
import string
|
||||
|
||||
try:
|
||||
import launchpadbugs.connector as Connector
|
||||
except:
|
||||
print >> sys.stderr, \
|
||||
"You need python-launchpad-bugs (>= 0.2.14) installed to use ppaput."
|
||||
sys.exit(1)
|
||||
|
||||
#try:
|
||||
# import apt
|
||||
#except:
|
||||
# print >> sys.stderr, "You need python-apt installed to use ppaput."
|
||||
# sys.exit(1)
|
||||
|
||||
|
||||
USAGE = \
|
||||
"""Usage: ppaput [-n] [<location>] [<debuild options>]
|
||||
|
||||
-n to file a new bug
|
||||
<location> dput alias
|
||||
<debuild options> options that are passed to debuild(1)
|
||||
"""
|
||||
|
||||
|
||||
def dput_check():
|
||||
if not os.path.exists("/usr/bin/dput"):
|
||||
print >> sys.stderr, "You need to install the dput package."
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def find_fixed_launchpad_bug(changesfile):
|
||||
changes = open(changesfile).readlines()
|
||||
for line in changes:
|
||||
if line.startswith("Launchpad-Bugs-Fixed"):
|
||||
return line.split(":")[1].split()
|
||||
return []
|
||||
|
||||
|
||||
def call_dput(location, changes):
|
||||
dput_check()
|
||||
|
||||
incoming = ""
|
||||
res = False
|
||||
|
||||
(dummy, output, dummy) = os.popen3("dput --debug %s %s" % (location, changes))
|
||||
text = output.readlines()
|
||||
for line in text:
|
||||
if line.startswith("D: Incoming: "):
|
||||
incoming = line.split("D: Incoming: ")[1].strip()
|
||||
if incoming[-1] == "/":
|
||||
incoming = incoming[:-1]
|
||||
if line.startswith("Successfully uploaded packages."):
|
||||
res = True
|
||||
return (res, incoming)
|
||||
|
||||
|
||||
def lookup_dput_host(host):
|
||||
dput_check()
|
||||
(dummy, output, dummy) = os.popen3("dput -H | grep ^%s" % host)
|
||||
text = output.read()
|
||||
if text:
|
||||
return text.split()[2]
|
||||
return ""
|
||||
|
||||
|
||||
def call_debuild(options):
|
||||
# FIXME: this requires magic, that figures out when to use --native --working,
|
||||
# etc.
|
||||
# if os.path.exists(".bzr") and os.path.exists("/usr/bin/bzr-buildpackage"):
|
||||
# return os.system("bzr bd -S --builder='-k%s %s'" % \
|
||||
# (os.getenv("DEBEMAIL"), \
|
||||
# string.join(options, " "))) == 0
|
||||
# else:
|
||||
return os.system("debuild -S -k%s %s" % \
|
||||
(os.getenv("DEBEMAIL"), \
|
||||
string.join(options, " "))) == 0
|
||||
|
||||
def get_name_version_section_and_release():
|
||||
changelogfile = "debian/changelog"
|
||||
if not os.path.exists(changelogfile):
|
||||
print >> sys.stderr, "%s not found." % changelogfile
|
||||
sys.exit(1)
|
||||
controlfile = "debian/control"
|
||||
if not os.path.exists(controlfile):
|
||||
print >> sys.stderr, "%s not found." % controlfile
|
||||
sys.exit(1)
|
||||
|
||||
head = open(changelogfile).readline()
|
||||
(name, \
|
||||
version, \
|
||||
release) = re.findall(r'^(.*)\ \((.*)\)\ (.*?)\;\ .*', head)[0]
|
||||
section = "main"
|
||||
|
||||
for line in open(controlfile).readlines():
|
||||
if line.startswith("Section"):
|
||||
if line.split("Section: ")[1].count("/")>0:
|
||||
section = line.split("Section: ")[1].split("/")[0].strip()
|
||||
return (name, version, section)
|
||||
|
||||
return (name, version, section, release)
|
||||
|
||||
def assemble_bug_comment_text(host, incoming, section, sourcepackage, version,
|
||||
release):
|
||||
if host == "ppa.launchpad.net":
|
||||
dsc_file_location = "http://%s/%s/pool/%s/%s/%s/%s_%s.dsc" % \
|
||||
(host, incoming[1:], section, sourcepackage[0], sourcepackage, \
|
||||
sourcepackage, version)
|
||||
else:
|
||||
# FIXME: this needs to be much much cleverer at some stage
|
||||
dsc_file_location = "http://%s/%s/pool/%s/%s/%s/%s_%s.dsc" % \
|
||||
(host, incoming, section, sourcepackage[0], sourcepackage, version)
|
||||
return """A new version of %s was uploaded to fix this bug.
|
||||
|
||||
To review the source the current version, please run
|
||||
|
||||
dget -x %s
|
||||
|
||||
|
||||
The package will get built by Launchpad in a while. If you want to test it,
|
||||
please run the following commands:
|
||||
|
||||
sudo -s
|
||||
echo >> /etc/apt/sources.list
|
||||
echo "deb http://%s/%s %s main universe multiverse restricted" >> /etc/apt/sources.list
|
||||
apt-get update
|
||||
apt-get install <package>
|
||||
""" % (sourcepackage, dsc_file_location, host, incoming[1:], release)
|
||||
|
||||
|
||||
def deal_with_bugreport(bugnumbers, host, section, incoming, sourcepackage,
|
||||
version, release):
|
||||
if not os.path.exists(os.path.expanduser("~/.lpcookie")):
|
||||
print >> sys.stderr, \
|
||||
"You need your Launchpad Cookie to be stored in ~/.lpcookie"
|
||||
sys.exit(1)
|
||||
|
||||
#print apt.Cache()[sourcepackage].section.split("/")[0].count("verse")
|
||||
(dummy, output, dummy) = os.popen3(
|
||||
"apt-cache showsrc %s | grep Directory | cut -d' ' -f2 | cut -d'/' -f2" % \
|
||||
sourcepackage)
|
||||
component = output.read().strip()
|
||||
|
||||
Bug = Connector.ConnectBug()
|
||||
Bug.authentication = os.path.expanduser("~/.lpcookie")
|
||||
|
||||
for bugnumber in bugnumbers:
|
||||
bug = Bug(int(bugnumber))
|
||||
if component in ["main", "restricted"] and \
|
||||
'ubuntu-main-sponsors' not in [str(s) for s in bug.subscribers]:
|
||||
bug.subscribers.add('ubuntu-main-sponsors')
|
||||
if component in ["universe", "multiverse"] and \
|
||||
'ubuntu-universe-sponsors' not in [str(s) for s in bug.subscribers]:
|
||||
bug.subscribers.add('ubuntu-universe-sponsors')
|
||||
if not component:
|
||||
bug.tags.append("needs-packaging")
|
||||
|
||||
comment = Bug.NewComment(text=assemble_bug_comment_text(host, incoming,
|
||||
section,
|
||||
sourcepackage,
|
||||
version,
|
||||
release),
|
||||
subject="Fix in %s (%s)" % \
|
||||
(sourcepackage, version))
|
||||
bug.comments.add(comment)
|
||||
|
||||
if bug.status != "Fix Committed":
|
||||
bug.status = "Fix Committed"
|
||||
bug.commit()
|
||||
|
||||
|
||||
def check_arguments(args):
|
||||
new_bug = False
|
||||
location = 'default'
|
||||
debuild_args = list()
|
||||
|
||||
if len(sys.argv) == 2 and sys.argv[1] in ["--help", "-H"]:
|
||||
print USAGE
|
||||
sys.exit(0)
|
||||
|
||||
if len(sys.argv) == 1:
|
||||
return (new_bug, location, debuild_args)
|
||||
|
||||
if sys.argv[1] == "-n":
|
||||
new_bug = True
|
||||
if len(sys.argv)>2:
|
||||
if sys.argv[2].startswith("-"):
|
||||
debuild_args = sys.argv[2:]
|
||||
else:
|
||||
location = sys.argv[2]
|
||||
if len(sys.argv)>3:
|
||||
debuild_args = sys.argv[3:]
|
||||
else:
|
||||
if sys.argv[1].startswith("-"):
|
||||
debuild_args.append(sys.argv[1:])
|
||||
else:
|
||||
location = sys.argv[1]
|
||||
if len(sys.argv)>2:
|
||||
debuild_args = sys.argv[2:]
|
||||
|
||||
return (new_bug, location, debuild_args)
|
||||
|
||||
|
||||
def file_bug(sourcepackage, version):
|
||||
Bug = Connector.ConnectBug()
|
||||
Bug.authentication = os.path.expanduser("~/.lpcookie")
|
||||
|
||||
try:
|
||||
bug = Bug.New(product={"name": sourcepackage, "target": "ubuntu"},
|
||||
summary="Please sponsor %s %s" % \
|
||||
(sourcepackage, version),
|
||||
description=\
|
||||
"The new package will be uploaded to PPA shortly.")
|
||||
except:
|
||||
bug = Bug.New(product={"name": "ubuntu"},
|
||||
summary="Please sponsor %s %s" % \
|
||||
(sourcepackage, version),
|
||||
description=\
|
||||
"The new package will be uploaded to PPA shortly.")
|
||||
|
||||
print "Successfully filed bug %s: http://launchpad.net/bugs/%s" % \
|
||||
(bug.bugnumber, bug.bugnumber)
|
||||
|
||||
return bug.bugnumber
|
||||
|
||||
|
||||
def main():
|
||||
(new_bug, location, debuild_args) = check_arguments(sys.argv)
|
||||
(sourcepackage, version, \
|
||||
section, release) = get_name_version_section_and_release()
|
||||
|
||||
if new_bug:
|
||||
bugnumber = file_bug(sourcepackage, version)
|
||||
os.system("dch -a 'Fixes (LP: #%s)'" % bugnumber)
|
||||
if not 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 = lookup_dput_host(location)
|
||||
(dput_res, incoming) = call_dput(location, changesfile)
|
||||
if not dput_res:
|
||||
print >> sys.stderr, "%s was not uploaded." % changesfile
|
||||
sys.exit(1)
|
||||
|
||||
fixed_lp_bugs = 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()
|
@ -1,12 +1,16 @@
|
||||
#!/usr/bin/perl
|
||||
# Copyright 2007 Kees Cook <kees@ubuntu.com>
|
||||
# License GPLv2
|
||||
# Copyright 2007 (C) Kees Cook <kees@ubuntu.com>
|
||||
# License: GPLv2
|
||||
#
|
||||
# This script attempts to find and download a specific version of a Debian
|
||||
# package and its immediate parent to generate a debdiff.
|
||||
# Requires: devscripts diffstat dpkg-dev
|
||||
#
|
||||
# Requirements: devscripts diffstat dpkg-dev
|
||||
#
|
||||
# Cleanups needed:
|
||||
# - general cleanup
|
||||
# - parse diff.gz/orig.tar.gz from .dsc file instead of guessing version
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
@ -90,7 +94,6 @@ sub download_source
|
||||
}
|
||||
|
||||
|
||||
|
||||
my $pkg = $ARGV[0];
|
||||
my $version = $ARGV[1];
|
||||
my $skip = $ARGV[2] || 1;
|
||||
|
230
requestsync
Executable file
230
requestsync
Executable file
@ -0,0 +1,230 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# (C) 2007 Canonical Ltd, Steve Kowalik
|
||||
# Authors:
|
||||
# Martin Pitt <martin.pitt@ubuntu.com>
|
||||
# Steve Kowalik <stevenk@ubuntu.com>
|
||||
# GPLv2, see /usr/share/common-licenses/GPL
|
||||
|
||||
import os, os.path, sys, urllib, subprocess, smtplib, getopt
|
||||
|
||||
changelog = 1
|
||||
|
||||
def cur_version_component(sourcepkg, release):
|
||||
madison = subprocess.Popen(['rmadison', '-u', 'ubuntu', '-a', 'source', \
|
||||
'-s', release, sourcepkg], \
|
||||
stdout=subprocess.PIPE)
|
||||
out = madison.communicate()[0]
|
||||
assert (madison.returncode == 0)
|
||||
|
||||
for l in out.splitlines():
|
||||
(pkg, version, rel, builds) = l.split('|')
|
||||
component = 'main'
|
||||
if rel.find('/') != -1:
|
||||
component = rel.split('/')[1]
|
||||
return (version.strip(), component.strip())
|
||||
|
||||
print "%s doesn't appear to exist in %s, specify -n for a package not in Ubuntu." % (sourcepkg, release)
|
||||
sys.exit(1)
|
||||
|
||||
def cur_deb_version(sourcepkg):
|
||||
''' Return the current debian version of a package in unstable '''
|
||||
madison = subprocess.Popen(['rmadison', '-u', 'debian', '-a', 'source', \
|
||||
'-s', 'unstable', sourcepkg], \
|
||||
stdout=subprocess.PIPE)
|
||||
out = madison.communicate()[0]
|
||||
assert (madison.returncode == 0)
|
||||
|
||||
try:
|
||||
assert out
|
||||
except AssertionError:
|
||||
print "%s doesn't appear to exist in Debian." % sourcepkg
|
||||
sys.exit(1)
|
||||
|
||||
return out.split('|')[1].rstrip('[]''').lstrip()
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
def debian_changelog(sourcepkg, component, version):
|
||||
'''Return the Debian changelog from the latest up to the given version
|
||||
(exclusive).'''
|
||||
|
||||
ch = ''
|
||||
subdir = sourcepkg[0]
|
||||
if sourcepkg.startswith('lib'):
|
||||
subdir = 'lib%s' % sourcepkg[3]
|
||||
for l in urllib.urlopen('http://packages.debian.org/changelogs/pool/%s/%s/%s/current/changelog.txt' % (component, subdir, sourcepkg)):
|
||||
if l.startswith(sourcepkg) and l.find(version + ')') > 0:
|
||||
break
|
||||
ch += l
|
||||
|
||||
return ch
|
||||
|
||||
def debian_component(sourcepkg):
|
||||
'''Return the Debian component for the source package.'''
|
||||
madison = subprocess.Popen(['rmadison', '-a', 'source', '-s', 'unstable', \
|
||||
sourcepkg], stdout=subprocess.PIPE)
|
||||
out = madison.communicate()[0]
|
||||
assert (madison.returncode == 0)
|
||||
|
||||
try:
|
||||
assert out
|
||||
except AssertionError:
|
||||
print "%s doesn't appear to exist in Debian." % sourcepkg
|
||||
sys.exit(1)
|
||||
raw_comp = out.split('|')[2].split('/')
|
||||
component = 'main'
|
||||
if len(raw_comp) == 2:
|
||||
component = raw_comp[1]
|
||||
return component
|
||||
|
||||
def usage():
|
||||
print """Usage: requestsync [-n|-s|-k <keyid>] <source package> <target release> [basever]
|
||||
|
||||
In some cases, the base version (fork point from Debian) cannot be determined
|
||||
automatically, and you'll get a complete Debian changelog. Specify the correct
|
||||
base version of the package in Ubuntu."""
|
||||
sys.exit(1)
|
||||
|
||||
#
|
||||
# entry point
|
||||
#
|
||||
|
||||
newsource = False
|
||||
sponsorship = False
|
||||
keyid = None
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'nsk:')
|
||||
except getopt.GetoptError:
|
||||
usage()
|
||||
for o, a in opts:
|
||||
if o == "-n":
|
||||
newsource = True
|
||||
if o == "-s":
|
||||
sponsorship = True
|
||||
if o == "-k":
|
||||
keyid = a
|
||||
|
||||
if len(args) not in (2, 3):
|
||||
usage()
|
||||
|
||||
(srcpkg, release) = args[:2]
|
||||
force_base_ver = None
|
||||
if len(args) == 3:
|
||||
force_base_ver = args[2]
|
||||
(cur_ver, component) = ('0', 'universe') # Let's assume universe
|
||||
if not newsource:
|
||||
(cur_ver, component) = cur_version_component(srcpkg, release)
|
||||
|
||||
debiancomponent = debian_component(srcpkg)
|
||||
|
||||
# generate bug report
|
||||
status = "confirmed"
|
||||
subscribe = "ubuntu-archive"
|
||||
deb_version = cur_deb_version(srcpkg)
|
||||
if sponsorship:
|
||||
status = "new"
|
||||
if component in ['main', 'restricted']:
|
||||
subscribe = "ubuntu-main-sponsors"
|
||||
else:
|
||||
subscribe = "ubuntu-universe-sponsors"
|
||||
|
||||
affects = '/%s' % srcpkg
|
||||
if newsource:
|
||||
affects = ''
|
||||
|
||||
report = ''' affects ubuntu%s
|
||||
status %s
|
||||
subscribe %s
|
||||
|
||||
Please sync %s %s (%s) from Debian unstable (%s).
|
||||
''' % (affects, status, subscribe, srcpkg, deb_version, component, debiancomponent)
|
||||
|
||||
base_ver = cur_ver
|
||||
uidx = base_ver.find('ubuntu')
|
||||
if uidx > 0:
|
||||
base_ver = base_ver[:uidx]
|
||||
|
||||
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'
|
||||
while (explanation[-2:] != '\n\n'):
|
||||
explanation += sys.stdin.readline()
|
||||
report += explanation
|
||||
|
||||
if changelog:
|
||||
uidx = base_ver.find('build')
|
||||
if uidx > 0:
|
||||
base_ver = base_ver[:uidx]
|
||||
|
||||
if force_base_ver:
|
||||
base_ver = force_base_ver
|
||||
|
||||
report += 'Changelog since current %s version %s:\n\n' % (release, cur_ver)
|
||||
report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
|
||||
|
||||
# sign it
|
||||
sign_command = 'gpg'
|
||||
for cmd in ('gpg2', 'gnome-gpg'):
|
||||
if os.access('/usr/bin/%s' % cmd, os.X_OK):
|
||||
sign_command = cmd
|
||||
|
||||
gpg_command = [sign_command, '--clearsign']
|
||||
if keyid:
|
||||
gpg_command.extend(('-u', keyid))
|
||||
|
||||
gpg = subprocess.Popen(gpg_command, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
signed_report = gpg.communicate(report)[0]
|
||||
assert gpg.returncode == 0
|
||||
|
||||
# generate email
|
||||
myemailaddr = os.getenv('DEBEMAIL')
|
||||
if not myemailaddr:
|
||||
print "The environment variable DEBEMAIL needs to be set to make use of this script."
|
||||
sys.exit(1)
|
||||
to = 'new@bugs.launchpad.net'
|
||||
|
||||
mail = '''From: %s
|
||||
To: %s
|
||||
Subject: Please sync %s %s (%s) from Debian unstable (%s)
|
||||
|
||||
%s''' % (myemailaddr, to, srcpkg, deb_version, component, debiancomponent, signed_report)
|
||||
|
||||
print mail
|
||||
|
||||
print 'Press enter to file this bug, Control-C to abort'
|
||||
|
||||
sys.stdin.readline()
|
||||
|
||||
# get server address
|
||||
mailserver = os.getenv('DEBSMTP')
|
||||
if mailserver:
|
||||
print 'Using custom SMTP server:', mailserver
|
||||
else :
|
||||
mailserver = 'fiordland.ubuntu.com'
|
||||
|
||||
# get server port
|
||||
mailserver_port = os.getenv('DEBSMTP_PORT')
|
||||
if mailserver_port:
|
||||
print 'Using custom SMTP port:', mailserver_port
|
||||
else:
|
||||
mailserver_port = 25
|
||||
|
||||
# connect to the server
|
||||
s = smtplib.SMTP(mailserver, mailserver_port)
|
||||
|
||||
# authenticate to the server
|
||||
mailserver_user = os.getenv('DEBSMTP_USER')
|
||||
mailserver_pass = os.getenv('DEBSMTP_PASS')
|
||||
if mailserver_user and mailserver_pass:
|
||||
try:
|
||||
s.login(mailserver_user, mailserver_pass)
|
||||
except smtplib.SMTPAuthenticationError:
|
||||
print 'Error authenticating to the server: invalid username and password.'
|
||||
s.quit(); sys.exit(1)
|
||||
except:
|
||||
print 'Unknown SMTP error.'
|
||||
s.quit(); sys.exit(1)
|
||||
|
||||
|
||||
s.sendmail(myemailaddr, to, mail)
|
||||
s.quit()
|
18
setup.py
18
setup.py
@ -15,7 +15,21 @@ if os.path.exists(changelog):
|
||||
|
||||
setup(name='ubuntu-dev-tools',
|
||||
version=version,
|
||||
scripts=['404main', 'check-symbols', 'pbuilder-dist', 'ubuntu-cd',
|
||||
'ubuntu-sync', 'update-maintainer'],
|
||||
scripts=['404main',
|
||||
'check-symbols',
|
||||
'get-branches',
|
||||
'pbuilder-dist',
|
||||
'update-maintainer',
|
||||
'dch-repeat',
|
||||
'mk-sbuild-lv',
|
||||
'pull-debian-debdiff',
|
||||
'what-patch',
|
||||
'suspicious-source',
|
||||
'ppaput',
|
||||
'requestsync',
|
||||
'hugdaylist',
|
||||
'massfile',
|
||||
'submittodebian'
|
||||
],
|
||||
)
|
||||
|
||||
|
91
submittodebian
Executable file
91
submittodebian
Executable file
@ -0,0 +1,91 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# submittodebian - tool to submit patches to Debian's bts
|
||||
# Copyright (C) 2007 Canonical Ltd.
|
||||
# Author: Soren Hansen <soren@ubuntu.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
|
||||
from debian_bundle.changelog import Changelog
|
||||
import re, os, sys
|
||||
from tempfile import mkstemp
|
||||
|
||||
def get_most_recent_debian_version(changelog):
|
||||
for v in changelog.get_versions():
|
||||
if not re.search('(ubuntu|build)', v.full_version):
|
||||
return v.full_version
|
||||
|
||||
def get_bug_body(changelog):
|
||||
return '''In Ubuntu, we've applied the attached patch to achieve the following:
|
||||
%s
|
||||
We thought you might be interested in doing the same.
|
||||
''' % ("\n".join([a for a in changelog._blocks[0].changes()]))
|
||||
|
||||
def gen_debdiff(changelog):
|
||||
pkg = changelog.package
|
||||
|
||||
oldver = changelog._blocks[1].version
|
||||
newver = changelog._blocks[0].version
|
||||
|
||||
olddsc = '../%s_%s.dsc' % (pkg, oldver)
|
||||
newdsc = '../%s_%s.dsc' % (pkg, newver)
|
||||
|
||||
check_file(olddsc)
|
||||
check_file(newdsc)
|
||||
|
||||
print "Generating debdiff between %s and %s" % (oldver, newver)
|
||||
(fd, debdiff) = mkstemp()
|
||||
os.close(fd)
|
||||
cmd = 'debdiff %s %s | filterdiff -x "*changelog*" > %s' % (olddsc, newdsc, debdiff)
|
||||
run_cmd(cmd)
|
||||
|
||||
return debdiff
|
||||
|
||||
def check_file(fname):
|
||||
if not os.path.exists(fname):
|
||||
print "Couldn't find %s\n" % fname
|
||||
sys.exit(1)
|
||||
|
||||
def edit_debdiff(debdiff):
|
||||
cmd = 'sensible-editor %s' % (debdiff)
|
||||
run_cmd(cmd)
|
||||
|
||||
def submit_bugreport(body, debdiff, changelog):
|
||||
cmd = 'reportbug -A %s -B debian -i %s -V %s %s' % (debdiff, body, deb_version, changelog.package)
|
||||
run_cmd(cmd)
|
||||
|
||||
def run_cmd(cmd):
|
||||
if os.getenv('DEBUG'):
|
||||
print "%s\n" % cmd
|
||||
os.system(cmd)
|
||||
|
||||
check_file('debian/changelog')
|
||||
|
||||
changelog = Changelog(file('debian/changelog').read())
|
||||
|
||||
deb_version = get_most_recent_debian_version(changelog)
|
||||
bug_body = get_bug_body(changelog)
|
||||
|
||||
fd, body = mkstemp()
|
||||
fp = os.fdopen(fd, 'w')
|
||||
fp.write(bug_body)
|
||||
fp.close()
|
||||
|
||||
debdiff = gen_debdiff(changelog)
|
||||
edit_debdiff(debdiff)
|
||||
submit_bugreport(body, debdiff, changelog)
|
||||
os.unlink(body)
|
||||
os.unlink(debdiff)
|
48
suspicious-source
Executable file
48
suspicious-source
Executable file
@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2007 (C) Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
# Based upon a script by Martin Pitt <martin.pitt@ubuntu.com>
|
||||
# License: GPLv3 or later
|
||||
#
|
||||
# This script outputs a list of files which are not common source files. This
|
||||
# should be run in the root of a source tree to find files which might not be
|
||||
# the "preferred form of modification" that the GPL and other licenses require.
|
||||
|
||||
FILES="*.h *.c *.cc *.cpp *.py *.sh *.txt *.text *.3 *.m4 *.xml *.html *.php \
|
||||
*.php3 *.php4 *.class *.form *.module *.cfg *.conf *.config *.odt \
|
||||
*.odp *.tex *.sla *.scd Makefile Makefile.am Makefile.in configure \
|
||||
configure.ac *.diff *.debdiff *.patch *.dpatch config.sub config.guess \
|
||||
depcomp *.docbook *.desktop *.menu AUTHORS INSTALL NEWS README TODO \
|
||||
COPYING LICENSE ChangeLog *.ui *.glade *.gladep *.po *.pot *.ts *.pro \
|
||||
*.svg *.png *.bmp *.gif *.xpm *.hh"
|
||||
|
||||
IGNORE=".bzr CVS .svn debian"
|
||||
|
||||
|
||||
COMMAND=(find ! \( )
|
||||
|
||||
firstDone=False
|
||||
for pattern in $FILES
|
||||
do
|
||||
if [[ $firstDone != True ]]; then
|
||||
COMMAND+=( -name $pattern); firstDone=True
|
||||
else
|
||||
COMMAND+=( -o -name $pattern)
|
||||
fi
|
||||
done
|
||||
|
||||
COMMAND+=( \) \( )
|
||||
|
||||
firstDone=False
|
||||
for pattern in $IGNORE
|
||||
do
|
||||
if [[ $firstDone != True ]]; then
|
||||
COMMAND+=( -name $pattern -prune); firstDone=True
|
||||
else
|
||||
COMMAND+=( -o -name $pattern -prune)
|
||||
fi
|
||||
done
|
||||
|
||||
COMMAND+=( -o -type f -print \))
|
||||
COMMAND="${COMMAND[@]}"
|
||||
|
||||
$COMMAND # Execute the command
|
40
ubuntu-cd
40
ubuntu-cd
@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Get the latest CD snapshot release.
|
||||
Distro="$1"
|
||||
if [ -z "$Distro" ]; then
|
||||
echo "Which distro?" >&2
|
||||
exit 1
|
||||
fi
|
||||
Release="$2"
|
||||
if [ -z "$Release" ]; then
|
||||
echo "Which ISO release?" >&2
|
||||
exit 1
|
||||
fi
|
||||
Ver=gutsy
|
||||
Code=tribe
|
||||
|
||||
cd ~/distros/ubuntu/"${Distro}"/"${Ver}"
|
||||
mkdir -p "${Code}"-"${Release}"
|
||||
cd "${Code}"-"${Release}"
|
||||
|
||||
cp ../*.iso . || true
|
||||
|
||||
if [ "${Distro}" == "ubuntu" ]; then
|
||||
Origin="releases"
|
||||
Flavors="alternate desktop server"
|
||||
Archs="i386"
|
||||
#Archs="i386 amd64 powerpc"
|
||||
else
|
||||
Origin="${Distro}/releases"
|
||||
Flavors="alternate desktop"
|
||||
Archs="i386"
|
||||
#Archs="i386 amd64"
|
||||
fi
|
||||
|
||||
for arch in $Archs; do
|
||||
for flavor in $Flavors; do
|
||||
rsync "rsync://cdimage.ubuntu.com/cdimage/${Origin}/${Ver}/${Code}-${Release}/${Ver}-${flavor}-${arch}.iso" "${Ver}-${flavor}-${arch}.iso"
|
||||
done
|
||||
done
|
91
ubuntu-sync
91
ubuntu-sync
@ -1,91 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Syncronise new ubuntu CD images, depending on command-line flags given.
|
||||
# If none are given, sync all images.
|
||||
|
||||
if [ -e /tmp/ubuntu-sync.01532-lock ]; then
|
||||
echo "Another copy of the script is running."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Ubuntu_Distro_Dir="$HOME/distros/ubuntu"
|
||||
Dist=gutsy
|
||||
|
||||
# Only sync the oldest images, and only i386 images if low bandwidth.
|
||||
Low_Bandwidth=1
|
||||
|
||||
while [ -n "$1" ]; do
|
||||
case "$1" in
|
||||
-u)
|
||||
Image_Sets="${Image_Sets} ubuntu"
|
||||
break
|
||||
;;
|
||||
-k)
|
||||
Image_Sets="${Image_Sets} kubuntu"
|
||||
break
|
||||
;;
|
||||
-e)
|
||||
Image_Sets="${Image_Sets} edubuntu"
|
||||
break
|
||||
;;
|
||||
-x)
|
||||
Image_Sets="${Image_Sets} xubuntu"
|
||||
break
|
||||
;;
|
||||
-s)
|
||||
Image_Sets="${Image_Sets} ubuntu-server"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
shift || true
|
||||
done
|
||||
if [ "${Low_Bandwidth}" == 1 ] && [ "${Image_Sets}" == "" ]; then
|
||||
cd "${Ubuntu_Distro_Dir}"
|
||||
Image_Sets=`ls -td1 */"${Dist}" | tail -1 | cut -f 1 -d /`
|
||||
elif [ "${Low_Bandwidth}" == 0 ] && [ "${Image_Sets}" == "" ]; then
|
||||
Image_Sets="ubuntu xubuntu ubuntu-server edubuntu kubuntu"
|
||||
fi
|
||||
|
||||
# Sync images.
|
||||
if [ ! -e /tmp/ubuntu-sync.01532-lock ]; then
|
||||
touch /tmp/ubuntu-sync.01532-lock
|
||||
fi
|
||||
for Current_Set in ${Image_Sets}
|
||||
do
|
||||
mkdir -p "${Ubuntu_Distro_Dir}/${Current_Set}/${Dist}"/.partial
|
||||
cd "${Ubuntu_Distro_Dir}/${Current_Set}/${Dist}"
|
||||
|
||||
# Figure out remote path
|
||||
if [ "${Current_Set}" == "ubuntu" ]; then
|
||||
Origin=""
|
||||
else
|
||||
Origin="${Current_Set}"
|
||||
fi
|
||||
|
||||
# Which flavors to download
|
||||
if [ "${Current_Set}" == "edubuntu" ]; then
|
||||
Flavors="install live"
|
||||
elif [ "${Current_Set}" == "ubuntu-server" ]; then
|
||||
Flavors="server live"
|
||||
else
|
||||
Flavors="alternate desktop"
|
||||
fi
|
||||
|
||||
# Which archs to download
|
||||
if [ "${Low_Bandwidth}" == 0 ]; then
|
||||
Archs="i386 powerpc"
|
||||
#Archs="i386 amd64 powerpc"
|
||||
else
|
||||
Archs="i386"
|
||||
fi
|
||||
|
||||
for arch in $Archs; do
|
||||
for flavor in $Flavors; do
|
||||
if rsync --partial-dir="${Ubuntu_Distro_Dir}/${Current_Set}/${Dist}/.partial" "rsync://cdimage.ubuntu.com/cdimage/${Origin}/daily/current/${Dist}-${flavor}-${arch}.iso" "${Dist}-${flavor}-${arch}.iso" ; then
|
||||
date > "${flavor}-${arch}-sync"
|
||||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
rm /tmp/ubuntu-sync.01532-lock
|
@ -1,21 +1,20 @@
|
||||
#!/bin/bash
|
||||
#update-maintainer
|
||||
#small - thus not perfect - script to update maintainer field in ubuntu packages
|
||||
#written and (c) 2007 by Albin Tonnerre <lut1n.tne@gmail.com> (Lutin)
|
||||
#this code is under the GNU GPL V2 licence
|
||||
# Copyright 2007 (C) Albin Tonnerre (Lutin) <lut1n.tne@gmail.com>
|
||||
# License: GPLv2
|
||||
#
|
||||
# This script is used to update the maintainer field of an Ubuntu package
|
||||
# to match the DebianMaintainerField specification.
|
||||
|
||||
if [ ${#@} -ge 1 ]; then
|
||||
for argv in "$@"; do
|
||||
param=`echo $argv | cut -d'=' -f1`
|
||||
value=`echo $argv | cut -d'=' -f2`
|
||||
case $param in
|
||||
"--path") path="$value" ;;
|
||||
"--section") section=$value ;;
|
||||
"--help") echo -e "Options: \n --path=PATH : specify the path of the source folder\n --section=SECTION : specify the section of the package (if the package is not yet in the archive or if you don't have the gutsy source repo in your sources.list)"; exit 0 ;;
|
||||
*) echo "Bad parameter, please use --help" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
for argv in "$@"; do
|
||||
param=${argv%=*}
|
||||
value=${argv#*=}
|
||||
case $param in
|
||||
"--path") path="$value" ;;
|
||||
"--section") section=$value ;;
|
||||
"--help") echo -e "Options: \n --path=PATH : specify the path of the source folder\n --section=SECTION : specify the section of the package (if the package is not yet in the archive or if you don't have the gutsy source repo in your sources.list)"; exit 0 ;;
|
||||
*) echo "Bad parameter, please use --help" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
cd ${path-.}
|
||||
|
||||
@ -25,39 +24,33 @@ if [ -f debian/control -a -f debian/changelog ]; then
|
||||
elif [ -f control -a -f changelog ]; then
|
||||
DEBIANDIR=.
|
||||
else
|
||||
echo "Please run that script in the source folder" >&2 && exit 1
|
||||
echo "Please execute «$0» in the source folder." >&2 && exit 1
|
||||
fi
|
||||
|
||||
IGNORE_DOMAINS="ubuntu\.com|ubuntu\.com\.au"
|
||||
[ -n "$(head -1 $DEBIANDIR/changelog | grep -E '\(*ubuntu.*\)')" ] &&
|
||||
! grep -E "^Maintainer: .*@.*ubuntu.*>" $DEBIANDIR/control >/dev/null || \
|
||||
{ echo "Not an Ubuntu package or already maintained by the Ubuntu team." >&2; \
|
||||
exit 1; }
|
||||
|
||||
[ -n "`head -n 1 $DEBIANDIR/changelog | grep -E "\(*ubuntu.*\)"`" ] &&
|
||||
[ -z "`grep -E "^Maintainer: .*($IGNORE_DOMAINS)>" $DEBIANDIR/control`" ] || \
|
||||
{ echo "Not an ubuntu package or already maintained by the ubuntu team" >&2 && \
|
||||
exit 1; }
|
||||
|
||||
mail=$(grep -E "^Maintainer" $DEBIANDIR/control | sed -r 's/.*<(.*)>/\1/')
|
||||
case $mail in
|
||||
"adconrad@0c3.net") email="Adam Conrad <adconrad@ubuntu.com>" ;;
|
||||
"mpitt@debian.org") email="Martin Pitt <martin.pitt@ubuntu.com>" ;;
|
||||
if [ -z "$section" ]; then
|
||||
DISTRO=$(sed -r '1!d;s/.*\) (.*);.*/\1/' $DEBIANDIR/changelog|cut -d'-' -f1)
|
||||
pkgline=$(apt-cache madison $(head -1 $DEBIANDIR/changelog| cut -d' ' -f1)|\
|
||||
grep -m 1 "$DISTRO.*Sources")
|
||||
if [ -z "$pkgline" ]; then
|
||||
echo "You don't have $DISTRO in your source repos." >&2
|
||||
exit 1
|
||||
fi
|
||||
section=$(echo $pkgline | grep -Eo "main|universe|multiverse|restricted")
|
||||
fi
|
||||
case $section in
|
||||
"main"|"restricted") email="Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>" ;;
|
||||
"universe"|"multiverse") email="Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>" ;;
|
||||
*) echo "No section found for this package; aborting" >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
if [ -z "$email" ]; then
|
||||
if [ -z "$section" ]; then
|
||||
DISTRO=$(head -n 1 $DEBIANDIR/changelog|sed -r 's/.*\) (.*);.*/\1/' | cut -d'-' -f1)
|
||||
pkgline=$(apt-cache madison `head -n 1 $DEBIANDIR/changelog | cut -d' ' \
|
||||
-f1`| grep -m 1 "$DISTRO.*Sources")
|
||||
[ -z "$pkgline" ] && echo "You don't have $DISTRO in your source repos" \
|
||||
>&2 && exit 1
|
||||
section=$(echo $pkgline | grep -Eo "main|universe|multiverse|restricted")
|
||||
fi
|
||||
case $section in
|
||||
"main"|"restricted") email="Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>" ;;
|
||||
"universe"|"multiverse") email="Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>" ;;
|
||||
esac
|
||||
fi
|
||||
for file in control{,.in,.real}; do
|
||||
[ -f $DEBIANDIR/$file ] && sed -ri "s/(^Maintainer:) (.*)/\1 $email\nXSBC-Original-\1 \2/" $DEBIANDIR/$file
|
||||
done
|
||||
|
||||
sed -ri "s/(^Maintainer:) (.*)/\1 $email\nXSBC-Original-\1 \2/" $DEBIANDIR/control
|
||||
[ -f $DEBIANDIR/control.in ] && sed -ri "s/(^Maintainer:) (.*)/\1 $email\nXSBC-Original-\1 \2/" $DEBIANDIR/control.in
|
||||
|
||||
dch "Modify Maintainer value to match Debian-Maintainer-Field Spec"
|
||||
echo "Maintainer changed to $email"
|
||||
dch --changelog $DEBIANDIR/changelog "Modify Maintainer value to match the DebianMaintainerField specification."
|
||||
echo "Maintainer changed to $email."
|
||||
|
14
what-patch
14
what-patch
@ -1,6 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2006,2007 (C) Kees Cook <kees@ubuntu.com>
|
||||
# Copyright 2006-2007 (C) Kees Cook <kees@ubuntu.com>
|
||||
# Modified by Siegfried-A. Gevatter <siggi.gevatter@gmail.com>
|
||||
# License: GPLv2
|
||||
|
||||
if [[ -d debian ]]; then
|
||||
cd . # pass
|
||||
elif [[ -d ../debian ]]; then
|
||||
cd ..
|
||||
elif [[ -d ../patches ]]; then
|
||||
cd ../..
|
||||
else
|
||||
echo "Can't find debian/rules."; exit
|
||||
fi
|
||||
|
||||
for filename in $(echo "debian/rules"; grep ^include debian/rules | fgrep -v '$(' | awk '{print $2}')
|
||||
do
|
||||
fgrep -q patchsys.mk "$filename" && { echo "cdbs"; exit; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user