Mailing List Archive

[bricoleurs/bricolage] f559ae: Not fix for Bug # 139.
Branch: refs/heads/master
Home: http://github.com/bricoleurs/bricolage

Commit: f559aefcfdac48bc36ff5982b636b91aadc27cc4
http://github.com/bricoleurs/bricolage/commit/f559aefcfdac48bc36ff5982b636b91aadc27cc4
Author: David E. Wheeler <david@justatheory.com>
Date: 2010-04-11 (Sun, 11 Apr 2010)

Changed paths:
M lib/Bric/Changes.pod

Log Message:
-----------
Not fix for Bug # 139.


Commit: 631db647ae41d0a41150e97c27d0a4331600692e
http://github.com/bricoleurs/bricolage/commit/631db647ae41d0a41150e97c27d0a4331600692e
Author: David E. Wheeler <david@justatheory.com>
Date: 2010-04-11 (Sun, 11 Apr 2010)

Changed paths:
M lib/Bric/App/Callback/Publish.pm
M lib/Bric/Changes.pod
M lib/Bric/Util/Burner.pm

Log Message:
-----------
Don't delete preview files on publish.

This happened for stories in multiple categories -- and probably for stories
with multiple pages, too. The problem was that `not_uri => ANY(@files)` was
doing `(uri NOT LIKE $file OR uri NOT LIKE $file)`. That `OR` need to be an
`AND`. But I realized that the `NONE` function works better. So now it's `uri
=> NONE(@file)`, which becomes `NOT( uri LIKE $file OR uri LIKE $file)`, which
is more correct.

Now to figure out how to backport, since there's no `NONE` in 1.10.


Commit: c92173cfc4717f6077498f2f9f6e8eba45dc34da
http://github.com/bricoleurs/bricolage/commit/c92173cfc4717f6077498f2f9f6e8eba45dc34da
Author: David E. Wheeler <david@justatheory.com>
Date: 2010-04-11 (Sun, 11 Apr 2010)

Changed paths:
M lib/Bric/Util/DBI.pm

Log Message:
-----------
Port `NOT LIKE` fix from rev_1_10.

I already fixed the preview deletion issue in
631db647ae41d0a41150e97c27d0a4331600692e, but that option wasn't available in
rev_1_10. While poking there, I realized that the correct fix was to fix
`any_where` to recognize "NOT LIKE" and to switch to `AND`ing items instead of
`OR`ing them in that case. This matches what it was already doing for `<>` and
`!=`. So it makes sense to fix that issue here, too.