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

Re: how to provide pristine source package



Hi,
>>"Marcus" == Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

Marcus> Hello!

Marcus> I sometimes read something like "as we can now easily provide
Marcus> pristine source packages...".
Marcus> I wonder how I can provide the original tar ball if it

Marcus> a) has not the right name (ok, could rename it)

	Correct.

Marcus> b) does not extract in the right directory (for example,
Marcus> foo-version instead foo-version.orig).

	Do not worry about the name of the directory it installs
 in. We can handle it as long as it unpacks into a single directory. 

	manoj
 for the curious: the relevant excerpts from dpkg-source:
    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");


-- 
 "I will make no bargains with terrorist hardware." Peter da Silva
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


Reply to: