Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
ADDED: some changes around the user rpmbuild directory creation
Browse files Browse the repository at this point in the history
FIXED: minor formatting changed to the default macros template
  • Loading branch information
diego committed Dec 23, 2013
1 parent f337767 commit 488b006
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion manifests/env/userhome.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
owner => $username,
group => $username,
mode => 0644,
require => File ["/home/${username}"],
}

if $usedefaultmacros == 'yes' {
Expand Down
1 change: 0 additions & 1 deletion spec/fixtures/modules/rpmbuild/manifests/env/userhome.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
owner => $username,
group => $username,
mode => 0644,
require => File ["/home/${username}"],
}

if $usedefaultmacros == 'yes' {
Expand Down
4 changes: 1 addition & 3 deletions spec/fixtures/modules/rpmbuild/templates/default_macros.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

%_topdir %(echo $HOME)/rpmbuild
%packager <%= @userfirstname %> <%= @userlastname %> <<%= @emailaddress %>>
<% if @companyname != ' ' %>%vendor <%= @companyname %>
<% else %>%vendor <%= @userfirstname %> <%= @userlastname %>
<% end %>
<% if @companyname != ' ' %>%vendor <%= @companyname %> <% else %>%vendor <%= @userfirstname %> <%= @userlastname %> <% end %>
%_tmppath %(echo $HOME)/rpmbuild/tmp
%debug_package %{nil}
4 changes: 1 addition & 3 deletions templates/default_macros.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

%_topdir %(echo $HOME)/rpmbuild
%packager <%= @userfirstname %> <%= @userlastname %> <<%= @emailaddress %>>
<% if @companyname != ' ' %>%vendor <%= @companyname %>
<% else %>%vendor <%= @userfirstname %> <%= @userlastname %>
<% end %>
<% if @companyname != ' ' %>%vendor <%= @companyname %> <% else %>%vendor <%= @userfirstname %> <%= @userlastname %> <% end %>
%_tmppath %(echo $HOME)/rpmbuild/tmp
%debug_package %{nil}

0 comments on commit 488b006

Please sign in to comment.