Package: dgit
Version: 0.7
Severity: wishlist

dgit downloads files multiple times in a typical fetch / build / push
workflow.

joey@gnu:~/tmp/alien[sid]>dgit push
canonical suite name for unstable is sid
downloading http://http.debian.net/debian//pool/main/a/alien/alien_8.88.dsc...
downloading http://http.debian.net/debian//pool/main/a/alien/alien_8.88.dsc...

Surely the above redundant download can be optimised away.

last upload to archive has NO git hash
dget: retrieving http://http.debian.net/debian//pool/main/a/alien/alien_8.88.dsc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  1436  100  1436    0     0    221      0  0:00:06  0:00:06 --:--:--   349
dget: retrieving 
http://http.debian.net/debian//pool/main/a/alien/alien_8.88.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
100 64380  100 64380    0     0   1444      0  0:00:44  0:00:44 --:--:--  1808
alien_8.88.dsc:
      Good signature found
   validating alien_8.88.tar.gz
All files validated successfully.
dpkg-source: info: extracting alien in alien-8.88
dpkg-source: info: unpacking alien_8.88.tar.gz

I assume it didn't look at remotes/dgit/dgit/sid because it has no
proof that this corresponds to the last upload in the archive.
So that's probably excusable. But then, dgit pull already downloaded
these same source files, and seemingly threw them away after setting up
the git repository.

Do you think it would make sense for dgit to cache these on its own,
or will I need to throw a caching proxy in front of it to make it
usable in bandwidth contstrained environments? 

The caching proxy option is complicated by dgit push uploading files
to the archive, which a later dgit push is apparently going to want to
download back

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.10-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dgit depends on:
ii  devscripts      2.13.2
ii  dpkg-dev        1.17.1
ii  git [git-core]  1:1.8.4~rc2-1
ii  git-core        1:1.8.4~rc2-1
ii  libdpkg-perl    1.17.1
ii  libwww-perl     6.05-1
ii  perl            5.14.2-21

Versions of packages dgit recommends:
ii  openssh-client [ssh-client]  1:6.2p2-6

Versions of packages dgit suggests:
pn  sbuild  <none>

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to