sitecopy does not work with multiple sites in .sitecopyrc file
Bug #90121 reported by
David Megginson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sitecopy (Debian) |
Fix Released
|
Unknown
|
|||
sitecopy (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Feisty |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Binary package hint: sitecopy
In Feisty, sitecopy 0.16.3-6 (uploaded March 5) reads only the first site definition in .sitecopyrc and ignores the rest. The previous version correctly read all of the site definitions.
Changed in sitecopy: | |
status: | Unknown → Fix Released |
To post a comment you must log in.
####### ####### ####### ####### #### ####### ####### ####### ####
# STEP 1
#######
I can confirm the bug here with an up-to-date Feisty.
I installed sitecopy and created this sample .sitecopyrc:
site site1 lab/sitecopy/ remote- site1 lab/sitecopy/ local-site1 lab/sitecopy/ remote- site2 lab/sitecopy/ local-site2
server localhost
remote /home/nico/
local /home/nico/
username nico
site site2
server localhost
remote /home/nico/
local /home/nico/
username nico
As you can see below, the behaviour is ok for site1, but buggy for site2:
$ sitecopy --init site1 lab/sitecopy/ remote- site1/)
sitecopy: Initializing site `site1' (on localhost in /home/nico/
sitecopy: All the files and directories are marked as NOT updated remotely.
$ sitecopy --init site2
sitecopy: No valid sites specified.
Try `sitecopy --help' for more information.
####### ####### ####### ####### #### ####### ####### ####### ####
# STEP 2
#######
I downloaded sitecopy from the original http:// www.lyra. org/sitecopy/, I built it and tried it. It works well:
nico@aikawa: ~/lab/sitecopy/ sitecopy- 0.16.3- orig$ ./sitecopy --init site1 lab/sitecopy/ remote- site1/) ~/lab/sitecopy/ sitecopy- 0.16.3- orig$ ./sitecopy --init site2 lab/sitecopy/ remote- site2/)
sitecopy: Initializing site `site1' (on localhost in /home/nico/
sitecopy: All the files and directories are marked as NOT updated remotely.
nico@aikawa:
sitecopy: Initializing site `site2' (on localhost in /home/nico/
sitecopy: All the files and directories are marked as NOT updated remotely.
####### ####### ####### ####### #### ####### ####### ####### ####
# STEP 3
#######
So I thought: the bug has been introduced since 0.16.3, by the Ubuntu patch. 0.16.3. orig.tar. gz found on https:/ /bugs.launchpad .net/ubuntu/ +source/ sitecopy/ 1:0.16. 3-6 is strictly identical to the one that I used in STEP 2, found on the author's website. 0.16.3- 6.diff. gz, built, and ran it, it works just as well:
The file sitecopy_
I patched it with the diff sitecopy_
nico@aikawa: ~/lab/sitecopy/ sitecopy- 0.16.3$ ./sitecopy --init site1 lab/sitecopy/ remote- site1/) ~/lab/sitecopy/ sitecopy- 0.16.3$ ./sitecopy --init site2 lab/sitecopy/ remote- site2/)
sitecopy: Initializing site `site1' (on localhost in /home/nico/
sitecopy: All the files and directories are marked as NOT updated remotely.
nico@aikawa:
sitecopy: Initializing site `site2' (on localhost in /home/nico/
sitecopy: All the files and directories are marked as NOT updated remotely.
####### ####### ####### ####### #### ####### ####### ####### ####
# Conclusion (or lack of)
#######
So I am really surprised, it seems to mean that the source does not correspond to what I got from APT ?