'falcon sync' syncs $CWD

Bug #50626 reported by Craig Box
2
Affects Status Importance Assigned to Milestone
Falcon
Fix Released
Undecided
Dennis Kaarsemaker

Bug Description

itpartners@akarua:~$ falcon sync -v

Falcon repository builder 1.1.0 (C)2005-2006 Dennis Kaarsemaker <email address hidden>
* Synchronizing with hermitage
D: Executing in workdir /var/www/ubuntu: rsync -ruRlt --progress --filter '+ pool/' --filter '+ pool/dapper' --filter '+ pool/dapper/firewall' --filter '+ **deb' --filter '+ **dsc' --filter '+ **tar.gz' --filter '+ **diff.gz' --filter '+ **changes' --filter '- **' pool/dapper pool/dapper/firewall '<email address hidden>:/var/www/debian'
building file list ...
36 files to consider

sent 801 bytes received 20 bytes 547.33 bytes/sec
total size is 383926 speedup is 467.63
D: Executing in workdir /var/www/ubuntu/base-hermitage: rsync -ruRlt --progress --delete --force * '<email address hidden>:/var/www/debian'
sh: line 0: cd: /var/www/ubuntu/base-hermitage: No such file or directory
building file list ...
11584 files to consider
rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(163)
W: Synchronizing with hermitage failed

Because base-hermitage does not exist, it starts synchronizing the cwd to the remote server.

Revision history for this message
Craig Box (craig.box) wrote :

Maybe this will shed some light on why:

itpartners@akarua:/var/www/ubuntu$ falcon html
Falcon repository builder 1.1.0 (C)2005-2006 Dennis Kaarsemaker <email address hidden>
* Creating html files for dapper
W: Section all does not contain any packages
W: File 'falcon.png' not found
W: File 'favicon.ico' not found
Traceback (most recent call last):
  File "/usr/bin/falcon", line 175, in ?
    falcon.mirror.html(mirror, release)
  File "/usr/lib/python2.4/site-packages/falcon/mirror.py", line 42, in html
    falcon.html.generate(mirror['basedir'], mirror) # Preferably this is moved outside the loop
  File "/usr/lib/python2.4/site-packages/falcon/html.py", line 63, in generate
    falcon.util.writefile(os.path.join(dir, '%s.gpg' % falcon.conf.gpgkey),cache['falcon-gpgkey'])
  File "/usr/lib/python2.4/site-packages/falcon/util.py", line 11, in writefile
    fd = open(path, 'w')
IOError: [Errno 2] No such file or directory: '/var/www/ubuntu/base-hermitage/B82A1B72.gpg'

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Right, results of mkdir should be checked.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

And of course 'sync' shouldn't fail on that

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

BTW: did you run 'falcon update' after adding the mirror and before running 'falcon sync'?

Changed in falcon:
assignee: nobody → dennis
status: Unconfirmed → Fix Committed
Revision history for this message
Craig Box (craig.box) wrote : RE: [Bug 50626] Re: 'falcon sync' syncs $CWD

Dennis Kaarsemaker wrote:
> BTW: did you run 'falcon update' after adding the mirror and before
> running 'falcon sync'?

Probably not; this seems to have calmed it down somewhat. Oops!

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Falcon now first checks for the existence of the dir and will not attempt syncing if the dir does not exist.

Changed in falcon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.