[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#576752: apt: should dpkg-source be run automatically when apt-getting a new source version?



On Wed, 7 Apr 2010 14:32:55 +0200 David Kalnischkies wrote:

> Hi Michael Gilbert!
> 
> 2010/4/7 Michael Gilbert <michael.s.gilbert@gmail.com>:
> > hi, currently, "apt-get source" will refuse to run dpkg-source when
> > there is an existing version of the source package in the current
> > directory.
> mhhh. Could you describe it a bit more - at best with a series of
> commandline invocations leading you to your problem?
> 
> I have no problems with calling "apt-get source" multiple times
> in a row, so i guess i have missed an important detail, e.g.
> 
> $ apt-get source apt
> [apply patches, modify debian/changelog, do whatever]
> $ apt-get source apt -b
> 
> works for me as expected (= compiles my modified apt).

hi, thanks for looking into this.  the two apt-gotted versions need to differ.
for example getting kernel source from squeeze, then sid demonstrates the
problem.

$ apt-get source linux-2.6=2.6.32-9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 83.5MB of source archives.
Get:1 http://ftp.us.debian.org sid/main linux-2.6 2.6.32-9 (dsc) [5,390B]
Get:2 http://ftp.us.debian.org sid/main linux-2.6 2.6.32-9 (tar) [82.2MB]
Get:3 http://ftp.us.debian.org sid/main linux-2.6 2.6.32-9 (diff) [1,343kB]                   
Fetched 83.5MB in 2min 1s (687kB/s)
dpkg-source: info: extracting linux-2.6 in linux-2.6-2.6.32
dpkg-source: info: unpacking linux-2.6_2.6.32.orig.tar.gz
dpkg-source: info: applying linux-2.6_2.6.32-9.diff.gz
dpkg-source: info: upstream files that have been modified: 
 linux-2.6-2.6.32/patch-2.6.32.9-rc1
$ apt-get source linux-2.6=2.6.32-11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Skipping already downloaded file 'linux-2.6_2.6.32.orig.tar.gz'
Need to get 6,318kB of source archives.
Get:1 http://ftp.us.debian.org sid/main linux-2.6 2.6.32-11 (dsc) [5,914B]
Get:2 http://ftp.us.debian.org sid/main linux-2.6 2.6.32-11 (diff) [6,312kB]
Fetched 6,318kB in (687kB/s)
Skipping unpack of already unpacked source in linux-2.6-2.6.32



Reply to: