fpm 0.2.34 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fpm/target/deb.rb +9 -3
- metadata +3 -3
data/lib/fpm/target/deb.rb
CHANGED
|
@@ -34,13 +34,19 @@ class FPM::Target::Deb < FPM::Package
|
|
|
34
34
|
|
|
35
35
|
def name
|
|
36
36
|
if @name =~ /[A-Z]/
|
|
37
|
-
@logger.
|
|
37
|
+
@logger.warn("Debian tools (dpkg/apt) don't do well with packages " \
|
|
38
38
|
"that use capital letters in the name. In some cases it will " \
|
|
39
39
|
"automatically downcase them, in others it will not. It is confusing." \
|
|
40
40
|
"Best to not use any capital letters at all.")
|
|
41
|
-
|
|
42
|
-
"package name '#{@name}' contains capital letters, bad.")
|
|
41
|
+
@name = @name.downcase
|
|
43
42
|
end
|
|
43
|
+
|
|
44
|
+
if @name.include?("_")
|
|
45
|
+
@logger.info("Package name '#{@name}' includes underscores, converting" \
|
|
46
|
+
" to dashes")
|
|
47
|
+
@name = @name.gsub(/[_]/, "-")
|
|
48
|
+
end
|
|
49
|
+
|
|
44
50
|
return @name
|
|
45
51
|
end
|
|
46
52
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fpm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 81
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 35
|
|
10
|
+
version: 0.2.35
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jordan Sissel
|