tentacle 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -1
- data/bin/tentacle +2 -2
- data/lib/tentacle.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -29,7 +29,7 @@ Command line YUM repository browser/agregattor.
|
|
29
29
|
|
30
30
|
tentacle search ruby
|
31
31
|
|
32
|
-
Searches for package names matching ruby. Regexp may be used.
|
32
|
+
Searches for package names matching ruby. Regexp may be used. Package name search is case insensitive
|
33
33
|
|
34
34
|
**Regexp search**
|
35
35
|
|
@@ -56,6 +56,12 @@ Search for ruby packages in RBEL 5 repository. The list of available repo-ids is
|
|
56
56
|
|
57
57
|
Search for Source RPMS matching ruby-1.9
|
58
58
|
|
59
|
+
**List repo packages**
|
60
|
+
|
61
|
+
tentacle search --repo-id rbel5-src
|
62
|
+
|
63
|
+
Omitting the package name, tentacle lists all the packages in the rbel5-src repository
|
64
|
+
|
59
65
|
# Copyright
|
60
66
|
|
61
67
|
Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for
|
data/bin/tentacle
CHANGED
@@ -44,7 +44,7 @@ class SearchCommand < Clamp::Command
|
|
44
44
|
option "--distro-class", "CLASS", "Filter by distro class"
|
45
45
|
option "--repo-id", "CLASS", "Filter by distro class"
|
46
46
|
option "--source", :flag, "Search only SRPMS"
|
47
|
-
parameter "PKG", "Search for packages matching PKG", :attribute_name => :pkg
|
47
|
+
parameter "[PKG]", "Search for packages matching PKG", :attribute_name => :pkg, :default => '.*'
|
48
48
|
|
49
49
|
def execute
|
50
50
|
$stdout.sync = true
|
@@ -52,7 +52,7 @@ class SearchCommand < Clamp::Command
|
|
52
52
|
FeedCollection.all.each do |fc|
|
53
53
|
next if source? and not fc.repo_id =~ /-src$/
|
54
54
|
|
55
|
-
if repo_id and fc.repo_id
|
55
|
+
if repo_id and fc.repo_id !~ /#{repo_id}/i
|
56
56
|
next
|
57
57
|
end
|
58
58
|
if distro_class and fc.distro_class != distro_class
|
data/lib/tentacle.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tentacle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Rubio
|