[paludis-commits] paludis-scripts.git (master) -- 968685d by Mike Kelly
git at git.pioto.org
git at git.pioto.org
Sun Sep 14 20:42:36 EDT 2008
Module: paludis-scripts.git
Branch: master
Commit: 968685d5b586f56f8c148581b505dde84160e921
URL: http://git.pioto.org/?p=paludis-scripts.git;a=commit;h=968685d5b586f56f8c148581b505dde84160e921
Author: Mike Kelly <pioto at pioto.org>
Committer: Mike Kelly <pioto at pioto.org>
Date: Sun Sep 14 20:41:36 2008 -0400
----
Fix a bug with splitting comments in portage2paludis.
Reported by Robert Annessi.
----
portage2paludis.bash | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/portage2paludis.bash b/portage2paludis.bash
index b2706a3..85d8cf5 100755
--- a/portage2paludis.bash
+++ b/portage2paludis.bash
@@ -110,7 +110,7 @@ function get_sync_url() {
# Given a file path, will separate comments from the rest
# and output the result on stdout
function split_comments() {
- sed 's/^\(.\+\)#\(.\+\)$/#\2\n\1/' $1
+ sed 's/^\([^#]\+\)#\(.\+\)$/#\2\n\1/' $1
}
# needs 3 params, value to test, var to show if true, var to show if false
---
More information about the paludis-commits
mailing list