<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sense Egbert Hofstede &#187; tool</title>
	<atom:link href="http://www.sehofstede.nl/tag/tool/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sehofstede.nl</link>
	<description>Personal site of a tech enthusiast</description>
	<lastBuildDate>Fri, 13 Jan 2012 15:01:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tiny little BugSquad tool: AdoptionStats</title>
		<link>http://www.sehofstede.nl/adoptionstats</link>
		<comments>http://www.sehofstede.nl/adoptionstats#comments</comments>
		<pubDate>Thu, 21 Jan 2010 16:17:36 +0000</pubDate>
		<dc:creator>Sense Egbert Hofstede</dc:creator>
				<category><![CDATA[English Posts]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[qa]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://qense.nl/?p=412</guid>
		<description><![CDATA[In order to make fetching a the number of bugs in each status against a certain package easy I&#8217;ve written a small script called AdoptionStats. We&#8217;re currently working on the Adopt-a-Package project for the Ubuntu Bug Squad and if you &#8230; <a href="http://www.sehofstede.nl/adoptionstats">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In order to make fetching a the number of bugs in each status against a certain package easy I&#8217;ve written a small script called AdoptionStats. We&#8217;re currently working on the <a title="AdoptPackage - Ubuntu Wiki" href="https://wiki.ubuntu.com/BugSquad/AdoptPackage">Adopt-a-Package project</a> for the <a title="BugSquad - Ubuntu Wiki" href="https://wiki.ubuntu.com/BugSquad">Ubuntu Bug Squad</a> and if you want to be able to keep track of how a package is doing you need data: information about the current status and information about past statuses for comparison.</p>
<p>AdoptionStats generates a data list and constantly returns it in the same format and therefore the results can easily be manipulated by other scripts, e.g. for generating graphs.<br />
<span id="more-412"></span></p>
<p><strong>Use</strong></p>
<p>I&#8217;ve pushed to script to a Bazaar branch on Launchpad: <a title="adoptionstats : Branches : Sense Hofstede" href="https://code.launchpad.net/~qense/+junk/adoptionstats">lp:~qense/+junk/adoptionstats</a>. If you haven&#8217;t done it yet, <a href="apt:bazaar">install Bazaar</a> and download the code with the command <em>&#8220;bzr branch lp:~qense/+junk/adoptionstats&#8221;</em> .</p>
<p>The script depends on the package &#8216;python-launchpad-bugs&#8217;, execute the command <em>&#8220;sudo apt-get install python-launchpadlib&#8221; <span style="text-decoration: line-through;">python-launchpad-bugs</span></em> or <a href="apt:python-launchpadlib">click here</a> <span style="text-decoration: line-through;"><a href="apt:python-launchpad-bugs">click here</a></span> to install it if you haven&#8217;t installed it yet.<br />
<em>(now using python-launchpadlib, thanks to thekorn)</em></p>
<p>The usage is very simple, but make sure you&#8217;ve made the script executable &#8212; right-click-&gt;Properties-&gt;Permissions-&gt;check &#8216;Allow execution of this file&#8217;, or just <em>&#8220;chmod +x ./adoptionstats&#8221; </em>. For getting a report on the current status of the <a title="“nautilus” package : Ubuntu" href="https://launchpad.net/ubuntu/+source/nautilus">&#8216;nautilus&#8217; source package</a> you enter the command <em>&#8220;./adoptionstats -p nautilus&#8221;</em> in the directory you save the file. The result is like this:</p>
<blockquote>
<pre>2010-01-21 16:15 {'need_forwarding': 5, 'per_status': {'In Progress': 3, 'Confirmed': 0, 'Invalid': 2279, 'New': 34, 'Fix Committed': 1, 'Triaged': 583, 'Fix Released': 754, 'Incomplete': 158, "Won't Fix": 16}}</pre>
</blockquote>
<p>Since the application uses <em>optparse</em> you can get the help text with <em>&#8220;./adoptionstats -h&#8221;</em>, but the only other option next to &#8216;-p&#8217; and &#8216;-h&#8217; is &#8216;-v&#8217;, which enables the printing of debug-level messages to your commandline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehofstede.nl/adoptionstats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

