Bug 31882 - empty/absent .gear/rules should be allowed perhaps?
Summary: empty/absent .gear/rules should be allowed perhaps?
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: perl-Gear-Rules (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-13 22:05 MSK by Ivan Zakharyaschev
Modified: 2016-03-15 01:24 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2016-03-13 22:05:08 MSK
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 'python-module-zc.git'...
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 'nmu'
/tmp/.private/imz/OUT.gits
Not a gear repository: gear rules file not found.


But it's a valid gear repo:

python-module-zc.git $ find . ! -path '*/.git/*'
.
./.git
./.gear
./.gear/tags
./.gear/tags/list
./python-module-zc.spec
Comment 1 viy 2016-03-13 22:14:51 MSK
thanks for the report!
But not for tonight. I will look at the code tomorrow.
Comment 2 Ivan Zakharyaschev 2016-03-13 23:03:22 MSK
Thanks! That'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 'Not a gear' 2> /dev/null
/usr/share/perl5/Gear/Rules.pm:89:    die "Not a gear repository: gear rules file not found.\n" unless defined $gearrules;
Comment 3 Repository Robot 2016-03-15 01:24:13 MSK
perl-Gear-Rules-0.18-alt1 -> sisyphus:

* Mon Mar 14 2016 Igor Vlasenko <viy@altlinux> 0.18-alt1
- new version (closes: #31882)