Commit 2f8fad85 authored by Vincent Pelletier's avatar Vincent Pelletier

Make update-hash file path handling portable.

Filename is split as an URL path, and joined in OS-dependent manner.
Remove corresponding comment in all buildout.hash.cfg files.
parent ee6ca37f
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# - "^[" section beginings, copied verbatim # - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie. # - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file # - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# But avoid directories, they are not portable.
# Copied verbatim. # Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported # - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script. # by the re-generation script.
......
...@@ -79,7 +79,7 @@ def main(): ...@@ -79,7 +79,7 @@ def main():
open( open(
os.path.join( os.path.join(
infile_dirname, infile_dirname,
hash_file_path, *hash_file_path.split('/')
) )
).read() ).read()
).hexdigest(), ).hexdigest(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment