1. 18 Aug, 2015 1 commit
    • Kirill Smelkov's avatar
      Fix regression when updating a part with several unicode paths in __buildout_installed__ · 236667c6
      Kirill Smelkov authored
      Commit 57f3dd73 (Write .installed.cfg only once, in safe way and only if
      there's any change) changed the way how __buildout_installed__ is read
      and then written back on part upgrade.
      
      In particular, before it was always:
      
          on install:
          - get [] of installed parts from recipe.install()
      
          on update:
          - read __buildout_installed__
          - split it by \n
      
          on write back for both:
          - join by \n
          - write to __buildout_installed__
      
      but after that patch on-update stopped doing that split by \n and on
      writeback the code checks for installed_files to be string and does not
      split it if it is.
      
      Except the check does not work for unicode strings. Look e.g. what
      currently happens with fluentd:
      
      After first install it is
      
      __buildout_installed__ =
      !py!u'/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/parts/fluentd\n/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/bin/fluent-cat\n/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/bin/fluent-gem\n/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/bin/fluent-debug\n/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/bin/fluentd\n/srv/slapgrid/slappart6/srv/runner/software/73a7bf66fea06c703a70faaced67dabf/bin/gem'
      
      but after update it becomes
      
      __buildout_installed__ =
      !py!u'/\ns\nr\nv\n/\ns\nl\na\np\ng\nr\ni\nd\n/\ns\nl\na\np\np\na\nr\nt\n6\n/\ns\nr\nv\n/\nr\nu\nn\nn\ne\nr\n/\ns\no\nf\nt\nw\na\nr\ne\n/\n7\n3\na\n7\nb\nf\n6\n6\nf\ne\na\n0\n6\nc\n7\n0\n3\na\n7\n0\nf\na\na\nc\ne\nd\n6\n7\nd\na\nb\nf\n/\np\na\nr\nt\ns\n/\nf\nl\nu\ne\nn\nt\nd\n\n\n/\ns\nr\nv\n/\ns\nl\na\np\ng\nr\ni\nd\n/\ns\nl\na\np\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ng\nr\ni\nd\n/\ns\nl\na\np\np\na\nr\nt\n6\n/\ns\nr\nv\n/\nr\nu\nn\nn\ne\nr\n/\ns\no\nf\nt\nw\na\nr\ne\n/\n7\n3\na\n7\nb\nf\n6\n6\nf\ne\na\n0\n6\nc\n7\n0\n3\na\n7\n0\nf\na\na\nc\ne\nd\n6\n7\nd\na\nb\nf\n/\nb\ni\nn\n/\ng\ne\nm'
      
      Correct the check to take unicode strings into account.
      
      /cc @jm
      236667c6
  2. 09 Jul, 2015 2 commits
  3. 06 Jul, 2015 1 commit
  4. 01 Jul, 2015 1 commit
  5. 10 Jun, 2015 6 commits
  6. 26 May, 2015 2 commits
  7. 25 May, 2015 2 commits
  8. 19 Apr, 2015 2 commits
  9. 17 Apr, 2015 1 commit
  10. 12 Jan, 2015 1 commit
  11. 13 Dec, 2014 1 commit
  12. 12 Dec, 2014 1 commit
  13. 22 Oct, 2014 1 commit
  14. 11 Sep, 2014 2 commits
  15. 09 Sep, 2014 2 commits
  16. 29 Aug, 2014 1 commit
  17. 27 Aug, 2014 1 commit
    • Kazuhiko Shiozaki's avatar
      Merge tag '1.7.1' into rebase_1.7.1 · f91c2a08
      Kazuhiko Shiozaki authored
      Conflicts:
      	.gitignore
      	setup.py
      	src/zc/buildout/buildout.py
      	src/zc/buildout/download.py
      	src/zc/buildout/easy_install.py
      	src/zc/buildout/testing.py
      	src/zc/buildout/tests.py
      f91c2a08
  18. 25 Aug, 2014 2 commits
  19. 12 Aug, 2014 2 commits
  20. 10 Jul, 2013 2 commits
  21. 11 Apr, 2013 1 commit
  22. 21 Feb, 2013 1 commit
  23. 20 Feb, 2013 1 commit
  24. 19 Jan, 2013 1 commit
  25. 11 Jan, 2013 1 commit
  26. 06 Jan, 2013 1 commit