Help save net neutrality! Learn more.
Close

#33 Archive: 'pull_up' change

closed-rejected
None
5
2001-05-23
2001-05-22
No

I don't like the behaviour of Archive to unpack
archives into a directory named after the basename of
the archive file (e.g. 'archive-0.1.2.tgz' ->
'archive-0.1.2') even if the archive contains only one
directory.

I think for such archives, the result should be the
same as with unpacking via normal shell commands.

If, for example, I have several snapshots of CVS rox,
named 'rox-05042001.tgz',
'rox-22052001.tgz' and so on, but each of them contains
only one toplevel directory called 'rox', I want to
have exactly this director after unpacking.

With this scheme, one can also distribute ROX apps with
the version numer in the archive filename but
containing only one unversioned toplevel directory.

This behaviour could be a bit confusing to users,
because the resulting directory is not always named as
specified in the savebox Archive shows, and from which
you drag. Maybe this behaviour should be switchable by
an option.

Discussion

  • Thomas Leonard

    Thomas Leonard - 2001-05-23
    • assigned_to: nobody --> tal197
    • status: open --> open-rejected
     
  • Thomas Leonard

    Thomas Leonard - 2001-05-23

    Logged In: YES
    user_id=40461

    Creating a directory with a different name to what the user
    typed is very bad!

    Two possibilities:
    - Scan the archive to find the name (very slow)
    - Strip version numbers from the name 'Archive-0.1.2.tgz'
    would suggest
    'Archive' as the default name to extract to.

    The second one is probably the best... I'll have a go at it
    soon...

    Thanks,

     
  • Thomas Leonard

    Thomas Leonard - 2001-05-23
    • status: open-rejected --> closed-rejected
     
  • Thomas Leonard

    Thomas Leonard - 2001-05-23

    Logged In: YES
    user_id=40461

    OK, the current CVS version will strip a version number in
    the form -DD.DD.DD
    from the default extraction name.

     

Log in to post a comment.