<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>203984</bug_id>
          
          <creation_ts>2008-01-01 18:41 0000</creation_ts>
          <short_desc>app-portage/etc-proposals-1.4: Initializing DB fails</short_desc>
          <delta_ts>2008-01-03 00:56:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>r.schedel@yahoo.de</reporter>
          <assigned_to>dertobi123@gentoo.org</assigned_to>
          <cc>bjoern.michaelsen@gmail.com</cc>
    
    <cc>tanderson@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>r.schedel@yahoo.de</who>
            <bug_when>2008-01-01 18:41:48 0000</bug_when>
            <thetext>The emerge succeeds and prints out that one should call &quot;etc-proposals --init-db&quot;.

However, initializing the DB fails:

# etc-proposals --init-db
init_state_db() takes no arguments (4 given)

Reproducible: Always

Steps to Reproduce:
1. emerge etc-proposals
2. etc-proposals --init-db

Actual Results:  
# etc-proposals --init-db
init_state_db() takes no arguments (4 given)

Expected Results:  
Call should build the initial DB.

In fact in v1.4 of etc-proposals the function init_state_db does not have any args. Issue can be fixed by appending &quot;(option, opt_str, value, parser)&quot; in /usr/sbin/etc-proposals, similar to the other callback function in this file. v1.3 of etc-proposals did not yet use the OptionParser.

Looks like an upstream bug.

However, wondering how this could slip through at all and get into unstable (maybe older python version used in ebuild test?). Tested python version was:

# python -V
Python 2.4.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2008-01-01 21:39:01 0000</bug_when>
            <thetext>This is an upstream bug. Sorry for that. Its fixed in svn, I will release etc-proposals 1.4.1 tonight, so it can get version bumped to that version ASAP.

Again sorry for the inconvenience. As for this slipping through: There is no unittest for the starter script, and initializing the DB is done only once on most installations.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bjoern.michaelsen@gmail.com</who>
            <bug_when>2008-01-01 22:44:06 0000</bug_when>
            <thetext>Created an attachment (id=139830)
etcproposals-1.4.1.ebuild

I fixed the issue in the 1.4.1 version. The ebuild for it is attached.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2008-01-02 16:00:56 0000</bug_when>
            <thetext>1.4.1 in CVS. Thanks for the fast response :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2008-01-03 00:56:57 0000</bug_when>
            <thetext>*** Bug 204146 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>139830</attachid>
            <date>2008-01-01 22:44 0000</date>
            <desc>etcproposals-1.4.1.ebuild</desc>
            <filename>etc-proposals-1.4.1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMjAwNy0yMDA4IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgZGlzdHV0aWxzCgpERVNDUklQVElPTj0iYSBzZXQgb2YgdG9vbHMgZm9y
IHVwZGF0aW5nIGdlbnRvbyBjb25maWcgZmlsZXMiCkhPTUVQQUd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