• Repack source lacking root directory?

    From Christian Kastner@21:1/5 to All on Wed Aug 16 08:40:01 2023
    Hi,

    I have an upstream source that ships files as a ZIP file, with no root directory in that file. So contents are something like

    file1.txt
    file2.c
    subdir/file3.h
    file4.tx

    uscan will automatically repack the ZIP, but I couldn't figure out the
    magic incantation necessary in debian/watch to move these to a root
    folder 'srcname'.

    Can anyone help? Is this even possible with a plain debian/watch, or
    will it need a custom repacker?

    Best,
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mattia Rizzolo@21:1/5 to Christian Kastner on Wed Aug 16 13:30:02 2023
    On Wed, Aug 16, 2023 at 08:23:14AM +0200, Christian Kastner wrote:
    uscan will automatically repack the ZIP, but I couldn't figure out the
    magic incantation necessary in debian/watch to move these to a root
    folder 'srcname'.

    Why would you need to do so?

    dpkg-source handles tarballs with no top-level directory just fine,
    AFAIK.

    --
    regards,
    Mattia Rizzolo

    GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
    More about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'`
    Debian QA page: https://qa.debian.org/developer.php?login=mattia `-

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAmTcsscACgkQCBa54Yx2 K637MA/7BHTXJk0NfpcZ0sz09nYV3sIk0Kt4kfdeTGr0vIHde4Ih/L8n6L4ADhvT F7NyMeV/Ls1SD6qtELVtZmxR1VvZDsrXGZpRP++pF2gaacu4DWQ4wbsGi8J56a4C /AqIgnXRx9VXL0l96GGsBI/Tw1+/KNB6pJwkT73lMlQGv99bLx59+BonbH/6O+j/ 31BJEE7Q7dNltsdGR+pDxd01m9XjjpgpaV0pbl9V8RSix5e5RStN44unnN6JgNVx psFyGt0uimLebhMofd3jQrAnxlAnK13sEx0srolCwsDLoDJMWIGNtl73DOTSnSJW yuU4UTaOzW/5xsJjp2xtD1xEczj40JqDENRnf5C4BR4Ym9N0npc/h6LDvuwqycD/ hvgSRV80IwQrl850BeUXRD6xwxlqtx0ajWkEslFTD8zBZ1+TQI9NmfKf889NPO8G NI/ad80wns4JPBCr+0QNUSJ7l+cIqOlLsMrpzX+fjApqKRgWKQ1235CiVgfxbIMn fvhPupw7dpHHMFaQj7ASKqeT6CPjNk9Cr+7WyTyEYBa9HxafMqO
  • From Christian Kastner@21:1/5 to Mattia Rizzolo on Thu Aug 17 12:40:01 2023
    On 2023-08-16 13:28, Mattia Rizzolo wrote:
    On Wed, Aug 16, 2023 at 08:23:14AM +0200, Christian Kastner wrote:
    uscan will automatically repack the ZIP, but I couldn't figure out the
    magic incantation necessary in debian/watch to move these to a root
    folder 'srcname'.

    Why would you need to do so?

    dpkg-source handles tarballs with no top-level directory just fine,
    AFAIK.

    Huh, bad assumption on my part. Indeed, it works fine.

    Thanks!
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)