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

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

    <bug>
          <bug_id>31882</bug_id>
          
          <creation_ts>2016-03-13 22:05:08 +0300</creation_ts>
          <short_desc>empty/absent .gear/rules should be allowed perhaps?</short_desc>
          <delta_ts>2016-03-15 01:24:13 +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>perl-Gear-Rules</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="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="viy">viy</assigned_to>
          <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>155690</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-03-13 22:05:08 +0300</bug_when>
    <thetext>perl-Gear-Rules-0.17-alt1

Some gear repos have no .gear/rules indeed. And girar-nmu-prepare fails in such cases like this:

Cloning into &apos;python-module-zc.git&apos;...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 39 (delta 8), reused 39 (delta 8)
Receiving objects: 100% (39/39), 6.09 KiB | 0 bytes/s, done.
Resolving deltas: 100% (8/8), done.
Checking connectivity... done.
/tmp/.private/imz/OUT.gits/python-module-zc.git /tmp/.private/imz/OUT.gits
Switched to a new branch &apos;nmu&apos;
/tmp/.private/imz/OUT.gits
Not a gear repository: gear rules file not found.


But it&apos;s a valid gear repo:

python-module-zc.git $ find . ! -path &apos;*/.git/*&apos;
.
./.git
./.gear
./.gear/tags
./.gear/tags/list
./python-module-zc.spec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155691</commentid>
    <comment_count>1</comment_count>
    <who name="viy">viy</who>
    <bug_when>2016-03-13 22:14:51 +0300</bug_when>
    <thetext>thanks for the report!
But not for tonight. I will look at the code tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155692</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-03-13 23:03:22 +0300</bug_when>
    <thetext>Thanks! That&apos;s not a big problem really, because one can easily perform manually the actions instead of girar-nmu-prepare for a single repo.

$ rpm -q perl-Gear-Rules -l | xargs fgrep -nH &apos;Not a gear&apos; 2&gt; /dev/null
/usr/share/perl5/Gear/Rules.pm:89:    die &quot;Not a gear repository: gear rules file not found.\n&quot; unless defined $gearrules;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155720</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-03-15 01:24:13 +0300</bug_when>
    <thetext>perl-Gear-Rules-0.18-alt1 -&gt; sisyphus:

* Mon Mar 14 2016 Igor Vlasenko &lt;viy@altlinux&gt; 0.18-alt1
- new version (closes: #31882)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>