1. 17 Jul, 2012 2 commits
    • Antoine Catton's avatar
      0ce2eca0
    • Antoine Catton's avatar
      Add escape option in order to avoid script formatting · 125fdd0f
      Antoine Catton authored
      The script is formatted with self.options dictionnary.
      
      For example :
      
        [foobar]
        recipe = slapos.recipe.build
        foo = bar
        script =
          print '%(foo)s'
      
      Produces :
      
        Installing foobar.
        bar
      
      But this can mess up the python code, because there's no
      escaping. For example :
      
        [foobar]
        recipe = slapos.recipe.build
        foo = bar's
        script =
          print '%(foo)s'
      
      Produces :
      
        While:
          Installing foobar.
      
        An internal error occurred due to a bug in either zc.buildout or in a
        recipe being used:
        Traceback (most recent call last):
          File "<string>", line 2
            print 'bar's'
                       ^
        SyntaxError: invalid syntax
      
      We can workaround this by using :
      
        [foobar]
        recipe = slapos.recipe.build
        foo = bar's
        script =
            print '%%s' %% self.options['foo']
      
      But every percent sign has to be escaped. That's why, this
      commit introduces :
      
        [foobar]
        recipe = slapos.recipe.build
        foo = bar's
        format = no
        script =
            print '%s' % self.options['foo']
      
      NB: This commit doesn't remove formating for backward compatibility.
      125fdd0f
  2. 07 Jun, 2012 6 commits
  3. 29 Mar, 2012 4 commits
    • Cédric de Saint Martin's avatar
      Fill changelog · 58e863c6
      Cédric de Saint Martin authored
      58e863c6
    • Cédric de Saint Martin's avatar
      Fill changelog · 028dc723
      Cédric de Saint Martin authored
      028dc723
    • Cédric de Saint Martin's avatar
      Add support for 'path' argument · 911e09e5
      Cédric de Saint Martin authored
      911e09e5
    • Vincent Pelletier's avatar
      Assorted improvements. · cdc72d1f
      Vincent Pelletier authored
      - Do not use a property for a local variable.
      - Use new-style class.
      - Stop using logger.
      - Save a few getattr calls.
      - Do not keep references to buildout & options outside of __init__ .
      - Convert mode in __init__ to detect errors early.
      - Factorise several accesses (buildout['buildout'], properties)
      - Drop redundant "cache" download.Download parameter: it is automatically
        fetched from first parameter internally.
      - "Backward compatibility with other recipes" is just not "backward".
      - Return downloaded file path, not just the optionally-created directory.
      cdc72d1f
  4. 11 Nov, 2011 1 commit
  5. 08 Nov, 2011 3 commits
  6. 27 Sep, 2011 2 commits
  7. 26 Sep, 2011 1 commit
  8. 08 Sep, 2011 6 commits
  9. 07 Sep, 2011 1 commit
    • Łukasz Nowak's avatar
      Improve cmmi part even more. · 319c7223
      Łukasz Nowak authored
      Squashed commit of the following:
      
      commit 506d815ff7e1d7b7b5b3c5edcfcea744c5b2201e
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:54:59 2011 +0200
      
          Support multiline values.
      
      commit c5d9415000fb072a07164bbdd5c276e53470b265
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:48:54 2011 +0200
      
          Fix compatibility layer.
      
      commit 1e301c7ba51060d944fea9ff2be1aba00e3a48b6
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:41:41 2011 +0200
      
          Go back to development.
      
      commit 9f523c49
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:40:00 2011 +0200
      
          Prepare 0.5 release.
      
      commit fcaf5c04
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:39:28 2011 +0200
      
          Be more compatible.
      
      commit 5284491f
      Merge: 2d7dc0b3 f15bb155
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:28:40 2011 +0200
      
          Merge branch 'master' into cmmi
      
      commit 2d7dc0b3
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:22:13 2011 +0200
      
          Explain more about patches.
      
      commit d5df4cdc
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:18:55 2011 +0200
      
          Provide better looking patches.
      
      commit c6befb05
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:15:32 2011 +0200
      
          Support make-command and make-options.
      
          Fix configure-command.
      
      commit d2212cb7
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:04:05 2011 +0200
      
          Allow to override configure command.
      
      commit 4321b38a
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:49 2011 +0200
      
          Share applyPatchList with in base class.
      
      commit 4a2ea3b3
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:29 2011 +0200
      
          Support no md5sum.
      
      commit 2cd36cb7
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:16 2011 +0200
      
          Show how to patch.
      
      commit 8cd9ea9c
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:53:45 2011 +0200
      
          Allow options per patch.
      
      commit 84fea623
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:48:47 2011 +0200
      
          Allow patching.
      
      commit 8934eb92
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:30:46 2011 +0200
      
          Allow to keep directories in case of error.
      
          Default is to remove.
      
      commit 74d0b2bd
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:24:49 2011 +0200
      
          Allow to have a=b=c, where a is key and b=c is value.
      
      commit 034c2381
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:17:07 2011 +0200
      
          Another typo.
      
      commit f5abcde0
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:15:44 2011 +0200
      
          Follow fixed typo.
      
      commit 5b950e26
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:14:35 2011 +0200
      
          Extract does not need md5sum.
      
      commit 6f725632
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:14:14 2011 +0200
      
          Pass md5sum directly.
      
      commit 9f42d22a
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:13:53 2011 +0200
      
          Allow to pass empty md5sum.
      
      commit c91fafb1
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:13:15 2011 +0200
      
          Fix typos.
      
      commit 8919378d
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:12:31 2011 +0200
      
          Fix examples.
      319c7223
  10. 06 Sep, 2011 3 commits
    • Łukasz Nowak's avatar
      Go back to development. · f15bb155
      Łukasz Nowak authored
      f15bb155
    • Łukasz Nowak's avatar
      Prepare 0.4 release. · dbed321a
      Łukasz Nowak authored
      dbed321a
    • Łukasz Nowak's avatar
      Implement more of compatibility with known recipes. · 47bf55f2
      Łukasz Nowak authored
      Squashed commit of the following:
      
      commit 2d7dc0b3
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:22:13 2011 +0200
      
          Explain more about patches.
      
      commit d5df4cdc
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:18:55 2011 +0200
      
          Provide better looking patches.
      
      commit c6befb05
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:15:32 2011 +0200
      
          Support make-command and make-options.
      
          Fix configure-command.
      
      commit d2212cb7
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 17:04:05 2011 +0200
      
          Allow to override configure command.
      
      commit 4321b38a
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:49 2011 +0200
      
          Share applyPatchList with in base class.
      
      commit 4a2ea3b3
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:29 2011 +0200
      
          Support no md5sum.
      
      commit 2cd36cb7
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:56:16 2011 +0200
      
          Show how to patch.
      
      commit 8cd9ea9c
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:53:45 2011 +0200
      
          Allow options per patch.
      
      commit 84fea623
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:48:47 2011 +0200
      
          Allow patching.
      
      commit 8934eb92
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:30:46 2011 +0200
      
          Allow to keep directories in case of error.
      
          Default is to remove.
      
      commit 74d0b2bd
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:24:49 2011 +0200
      
          Allow to have a=b=c, where a is key and b=c is value.
      
      commit 034c2381
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:17:07 2011 +0200
      
          Another typo.
      
      commit f5abcde0
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:15:44 2011 +0200
      
          Follow fixed typo.
      
      commit 5b950e26
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:14:35 2011 +0200
      
          Extract does not need md5sum.
      
      commit 6f725632
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:14:14 2011 +0200
      
          Pass md5sum directly.
      
      commit 9f42d22a
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:13:53 2011 +0200
      
          Allow to pass empty md5sum.
      
      commit c91fafb1
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:13:15 2011 +0200
      
          Fix typos.
      
      commit 8919378d
      Author: Łukasz Nowak <luke@nexedi.com>
      Date:   Tue Sep 6 16:12:31 2011 +0200
      
          Fix examples.
      47bf55f2
  11. 05 Sep, 2011 11 commits