Commit 8da597ac authored by Leigh B Stoller's avatar Leigh B Stoller

Change renaming convention to use imagename:version,imageid. We were

using a colon instead of the comma, but Mike noticed that can cause a
conflict if the image ids are low numbered.
parent c3a25980
......@@ -225,7 +225,7 @@ if ($purge || $rename) {
}
else {
my $newname = dirname($dirname) . "/" . basename($dirname) .
":" . $image->imageid();
"," . $image->imageid();
if ($impotent) {
print "Would rename $dirname to $newname\n" if (-e $dirname);
......@@ -317,7 +317,7 @@ if ($purge || $rename) {
$EUID = 0;
if (@torename) {
my $dirname = dirname($imageversion->path()) .
"/" . $image->imagename() . ":" . $image->imageid();
"/" . $image->imagename() . "," . $image->imageid();
if (! -e $dirname && !$impotent) {
if (! mkdir("$dirname", 0775)) {
......
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