+1 with the following fixes and improvements to the documentation. Had Jacob
review the changes in person. Merged into `next`.

-igal

###

diff --git a/lib/tasks/package.rake b/lib/tasks/package.rake
index 8626f19..c3bd76c 100644
--- a/lib/tasks/package.rake
+++ b/lib/tasks/package.rake
@@ -1,5 +1,5 @@
 namespace :package do
-  desc "Create .deb from this git repository, optionally set UNSIGNED=1 to
leave unsigned."
+  desc "Create .deb from this git repository, set KEY_ID=your_key to use a
specific key or UNSIGNED=1 to leave unsigned."
   task :deb => :build_environment do
     build_dir = create_workspace('deb')

@@ -19,16 +19,17 @@ namespace :package do

     rake package:deb UNSIGNED=1

-!! Or provide a specific key id:
+!! Or provide a specific key id, e.g.:

     rake package:deb KEY_ID=4BD6EC30
+    rake package:deb [email protected]

         HERE
       end
     end
   end

-  desc "Create .rpm from this git repository, optionally set UNSIGNED=1 to
leave unsigned.."
+  desc "Create .rpm from this git repository, set UNSIGNED=1 to leave
unsigned."
   task :rpm => :build_environment do
     unless File.exists?(File.expand_path('~/.rpmmacros'))
       puts <<-HERE


On Thu, Oct 7, 2010 at 4:32 PM, Jacob Helwig <[email protected]> wrote:

>
> Signed-off-by: Jacob Helwig <[email protected]>
> ---
>
> Also available in:
>
> git://github.com/jhelwig/puppet-dashboard.git ticket/next/4513
>
>  lib/tasks/package.rake |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/lib/tasks/package.rake b/lib/tasks/package.rake
> index 7edcdad..8626f19 100644
> --- a/lib/tasks/package.rake
> +++ b/lib/tasks/package.rake
> @@ -7,6 +7,7 @@ namespace :package do
>       cp_r File.join('ext', 'packaging', 'debian'), '.'
>       cmd = 'dpkg-buildpackage -a'
>       cmd << ' -us -uc' if ENV['UNSIGNED'] == '1'
> +      cmd << " -k#{ENV['KEY_ID']}" if ENV['KEY_ID']
>
>       begin
>         sh cmd
> @@ -17,6 +18,11 @@ namespace :package do
>  !! Perhaps you want to run:
>
>     rake package:deb UNSIGNED=1
> +
> +!! Or provide a specific key id:
> +
> +    rake package:deb KEY_ID=4BD6EC30
> +
>         HERE
>       end
>     end
> --
> 1.7.3.1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to