<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34017</bug_id>
          
          <creation_ts>2017-10-16 19:42:44 +0300</creation_ts>
          <short_desc>genspec fails when only some optional arguments are provided</short_desc>
          <delta_ts>2017-10-20 16:05:01 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>genspec</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Savchenko">bircoph</reporter>
          <assigned_to name="obirvalger@altlinux.org">obirvalger</assigned_to>
          <cc>cas</cc>
    
    <cc>mike</cc>
    
    <cc>obirvalger</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>166371</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Savchenko">bircoph</who>
    <bug_when>2017-10-16 19:42:44 +0300</bug_when>
    <thetext>$ genspec
(without arguments) works

$ genspec -n name -t common -v 0.2 -s &quot;summary&quot; -l &quot;GPL-2&quot; -u &quot;http://url&quot; -d &quot;nice test&quot; -c &quot;commit&quot;
also works

$ genspec -t common
Traceback (most recent call last):
  File &quot;/usr/bin/genspec&quot;, line 238, in &lt;module&gt;
    spec.deploy()
  File &quot;/usr/bin/genspec&quot;, line 105, in deploy
    self.apply( self.keys[&apos;spec_type&apos;] )
  File &quot;/usr/bin/genspec&quot;, line 96, in apply
    + &apos; &apos; + self.keys[&apos;version&apos;]
TypeError: Can&apos;t convert &apos;NoneType&apos; object to str implicitly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166400</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-10-19 14:47:28 +0300</bug_when>
    <thetext>genspec-1.2.13-alt1 -&gt; sisyphus:

Thu Oct 19 2017 Mikhail Gordeev &lt;obirvalger@altlinux.org&gt; 1.2.13-alt1
- (ALT #34017) Use deafult value for optional arguments</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>