debstep 0.0.3 → 0.0.4
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/debstep/package.rb +3 -3
 - metadata +1 -1
 
    
        data/lib/debstep/package.rb
    CHANGED
    
    | 
         @@ -24,7 +24,7 @@ module Debstep 
     | 
|
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
                  instance_eval(&block)
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                  save 
     | 
| 
      
 27 
     | 
    
         
            +
                  save
         
     | 
| 
       28 
28 
     | 
    
         
             
                end
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
30 
     | 
    
         
             
                def install(path, &block)
         
     | 
| 
         @@ -80,7 +80,7 @@ module Debstep 
     | 
|
| 
       80 
80 
     | 
    
         
             
                  instance_variable_get(:"@#{script}")
         
     | 
| 
       81 
81 
     | 
    
         
             
                end
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
     | 
    
         
            -
                def save 
     | 
| 
      
 83 
     | 
    
         
            +
                def save
         
     | 
| 
       84 
84 
     | 
    
         
             
                  @@required_control_fields.each do |field|
         
     | 
| 
       85 
85 
     | 
    
         
             
                    raise Exception.new("#{field} is required") unless control_field_specified?(field)
         
     | 
| 
       86 
86 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -105,7 +105,7 @@ module Debstep 
     | 
|
| 
       105 
105 
     | 
    
         
             
                    write_script(script) if script_given?(script)
         
     | 
| 
       106 
106 
     | 
    
         
             
                  end
         
     | 
| 
       107 
107 
     | 
    
         | 
| 
       108 
     | 
    
         
            -
                  `dpkg-deb --build #{@workspace} 
     | 
| 
      
 108 
     | 
    
         
            +
                  `dpkg-deb --build #{@workspace} .`
         
     | 
| 
       109 
109 
     | 
    
         
             
                end
         
     | 
| 
       110 
110 
     | 
    
         
             
              end
         
     | 
| 
       111 
111 
     | 
    
         
             
            end
         
     |