Bug#463832: /usr/bin/git-import-orig: git-import-orig assume that all upstream sources as in a sub-directory

2008-02-07 Thread Anand Kumria
On 2/4/08, Guido Guenther [EMAIL PROTECTED] wrote:
 On Sun, Feb 03, 2008 at 05:56:05PM +, Anand Kumria wrote:
  git-import-orig seems to assume that the upstream tarball will nicely
  have everything in a sub-directory. Alas not every upstream is
  enlightened:
 Yes, this is basically a known issue - I have to rewrite parts of the
 importing code anwyways, I will fix this then too. Since it might not be
 clear how many subdirs to strip I think adding an option like patch's -pNum
 might probably be best.

I don't think so.

I'm interested importing the upstream tarball, warts and all.

Then I can create a branch of 'upstream' called 'dfsg-upstream', with
the warts corrected.

So I don't think there should be any mechanism to strip out directory
levels, any cleanup should be done in the revision control system.

Cheers,
Anand



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#463832: /usr/bin/git-import-orig: git-import-orig assume that all upstream sources as in a sub-directory

2008-02-04 Thread Guido Guenther
On Sun, Feb 03, 2008 at 05:56:05PM +, Anand Kumria wrote:
 git-import-orig seems to assume that the upstream tarball will nicely
 have everything in a sub-directory. Alas not every upstream is
 enlightened:
Yes, this is basically a known issue - I have to rewrite parts of the
importing code anwyways, I will fix this then too. Since it might not be
clear how many subdirs to strip I think adding an option like patch's -pNum
might probably be best. 
Cheers,
 -- Guido



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#463832: /usr/bin/git-import-orig: git-import-orig assume that all upstream sources as in a sub-directory

2008-02-03 Thread Anand Kumria
Package: git-buildpackage
Version: 0.4.13
Severity: normal
File: /usr/bin/git-import-orig

Hi,

git-import-orig seems to assume that the upstream tarball will nicely
have everything in a sub-directory. Alas not every upstream is
enlightened:

eve:[~/Debian/gw6c/gw6c]% git-import-orig -v -u 5.0 
../gw6c-5_0-RELEASE-src.tar.gz
Upstream version is 5.0
tar ['', '-C', '../tmptfzIgv', '--gzip', '-xf', 
'../gw6c-5_0-RELEASE-src.tar.gz'] []
Unpacked ../gw6c-5_0-RELEASE-src.tar.gz to '../tmptfzIgv'
Initial import of '../gw6c-5_0-RELEASE-src.tar.gz'...
Cannot copy files: [Errno 20] Not a directory: 
'../tmptfzIgv/HEX_DC_0007_Gateway6_Client_Release_Notes.pdf'
rm ['-rf', '../tmptfzIgv'] []

eve:[~/Debian/gw6c/gw6c]% tar ztvf ../gw6c-5_0-RELEASE-src.tar.gz | tail
-rwxr-xr-x root/root 10205 2007-03-06 21:29 
gw6c-messaging/src/servermsgsender.cc
-rwxr-xr-x root/root  9204 2007-04-02 21:12 
gw6c-messaging/src/servermsgtranslator.cc
drwxr-xr-x root/root 0 2007-05-15 16:15 gw6c-messaging/src/windows/
-rwxr-xr-x root/root  4845 2007-01-30 18:53 
gw6c-messaging/src/windows/pipeclient.cc
-rwxr-xr-x root/root  5753 2007-01-30 18:53 
gw6c-messaging/src/windows/pipeio.cc
-rwxr-xr-x root/root  5924 2007-01-30 18:53 
gw6c-messaging/src/windows/pipeserver.cc
-rwxr-xr-x root/root  3397 2007-01-30 18:53 
gw6c-messaging/src/windows/semaphore.cc
-rwxr-xr-x root/root  4521 2007-01-30 18:53 
gw6c-messaging/src/windows/threadwrapper.cc
-rw-r--r-- root/root   1571536 2007-05-15 16:15 
HEX_DC_0005_Gateway6_Client_Guide.pdf
-rw-r--r-- root/root775598 2007-05-15 16:15 
HEX_DC_0007_Gateway6_Client_Release_Notes.pdf

Thanks,
Anand

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git-buildpackage depends on:
ii  devscripts   2.10.14 scripts to make the life of a Debi
ii  git-core 1:1.5.3.8-1 fast, scalable, distributed revisi
ii  python   2.4.4-6 An interactive high-level object-o
ii  python-support   0.7.6   automated rebuilding support for p

git-buildpackage recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]