Debian Bug report logs -
#17314
dpkg-dev: dpkg-source -x and tar which unpacks into `pwd`
Reported by: Roderick Schertler <roderick@argon.org>
Date: Tue, 20 Jan 1998 15:48:01 UTC
Severity: normal
Found in version 1.4.0.20
Done: Adam Heath <adam@doogie.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
:
Bug#17314
; Package dpkg-dev
.
(full text, mbox, link).
Acknowledgement sent to Roderick Schertler <roderick@argon.org>
:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dpkg-dev
Version: 1.4.0.20
Here's a patch for dpkg-source which allows -x to handle a source
tar which unpacks into the current directory. I hope you'll consider
including it or something like it in the distribution.
--- /usr/bin/dpkg-source Mon Jul 14 01:51:09 1997
+++ ./dpkg-source Tue Jan 13 18:16:28 1998
@@ -895,11 +895,19 @@
opendir(D,"$dirchdir") || &syserr("Unable to open dir $dirchdir");
@dirchdirfiles = grep($_ ne "." && $_ ne "..",readdir(D));
closedir(D) || &syserr("Unable to close dir $dirchdir");
- (@dirchdirfiles==1 && -d "$dirchdir/$dirchdirfiles[0]") ||
- &error("$tarfileread extracted into >1 directory");
- rename("$dirchdir/$dirchdirfiles[0]", "$dirchdir/$newtopdir") ||
- &syserr("Unable to rename $dirchdir/$dirchdirfiles[0] to ".
- "$dirchdir/$newtopdir");
+ if (@dirchdirfiles==1 && -d "$dirchdir/$dirchdirfiles[0]") {
+ rename("$dirchdir/$dirchdirfiles[0]", "$dirchdir/$newtopdir") ||
+ &syserr("Unable to rename $dirchdir/$dirchdirfiles[0] to ".
+ "$dirchdir/$newtopdir");
+ } else {
+ mkdir("$dirchdir/$newtopdir", 0777) ||
+ &syserr("Unable to mkdir $dirchdir/$newtopdir");
+ for (@dirchdirfiles) {
+ rename("$dirchdir/$_", "$dirchdir/$newtopdir/$_") ||
+ &syserr("Unable to rename $dirchdir/$_ to ".
+ "$dirchdir/$newtopdir/$_");
+ }
+ }
}
sub cpiostderr {
-- System Information
Debian Release: 1.3
Kernel Version: Linux jones 2.0.32 #1 Fri Nov 28 04:45:10 /etc/localtime 1997 i586 unknown
Reply sent to Adam Heath <adam@doogie.org>
:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Roderick Schertler <roderick@argon.org>
:
Bug acknowledged by developer.
(full text, mbox, link).
Message #10 received at 17314-done@bugs.debian.org (full text, mbox, reply):
This was fixed with a checkin to cvs on Oct 22, 1999, which was part of dpkg
sometime after 1.4.1.17.
----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <doogie@debian.org> Finger Print | KeyID
67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Apr 24 07:50:00 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.