--- rsync-2.6.4/options.c.orig 2005-03-31 04:21:15 +0400 +++ rsync-2.6.4/options.c 2005-03-31 18:32:37 +0400 @@ -173,6 +173,8 @@ static char partialdir_for_delayupdate[] * address, or a hostname. **/ char *bind_address; +/** Print information needed for APT rsync method */ +int apt_support = 0; static void print_rsync_version(enum logcode f) { @@ -455,6 +457,7 @@ static struct poptOption long_options[] {"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 }, {"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 }, {"checksum-seed", 0, POPT_ARG_INT, &checksum_seed, 0, 0, 0 }, + {"apt-support", 0, POPT_ARG_NONE, &apt_support, 0, 0, 0 }, #ifdef INET6 {"ipv4", '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 }, {"ipv6", '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 }, --- rsync-2.6.4/receiver.c.orig 2005-03-30 02:05:33 +0400 +++ rsync-2.6.4/receiver.c 2005-03-31 18:36:03 +0400 @@ -48,6 +48,7 @@ extern int keep_partial; extern int checksum_seed; extern int inplace; extern int delay_updates; +extern int apt_support; extern struct stats stats; extern char *log_format; extern char *tmpdir; @@ -624,8 +625,16 @@ int recv_files(int f_in, struct file_lis /* log the transfer */ if (log_before_transfer) log_item(file, &initial_stats, iflags, NULL); - else if (!am_server && verbose && do_progress) - rprintf(FINFO, "%s\n", safe_fname(fname)); + else if (!am_server) { + if (verbose && do_progress) + rprintf(FINFO, "%s\n", safe_fname(fname)); + + if (apt_support) { + rprintf(FINFO, "Tmp-Filename: %s\n", fnametmp); + rprintf(FINFO, "Size: %lu\n", (unsigned long)file->length); + rprintf(FINFO, "Start: %s\n", fname); + } + } /* recv file data */ recv_ok = receive_data(f_in, fnamecmp, fd1, st.st_size, @@ -668,6 +677,9 @@ int recv_files(int f_in, struct file_lis || (preserve_hard_links && file->link_u.links)) { SIVAL(numbuf, 0, i); send_msg(MSG_SUCCESS, numbuf, 4); + + if (apt_support) + rprintf(FINFO,"Done: %s\n",fname); } } else if (!recv_ok) { int msgtype = phase || read_batch ? FERROR : FINFO;