Changeset 11272


Ignore:
Timestamp:
Sep 30, 2010, 5:22:33 AM (11 years ago)
Author:
Longinus00
Message:

(libt) r11244 introduced a regression when making single file torrents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r11244 r11272  
    337337    uint8_t * pch;
    338338    char    * base;
    339     const tr_bool single_file_mode = ( builder->fileCount == 1 ) && ( strchr( builder->files[0].filename, '/' ) == NULL );
    340339
    341340    tr_bencDictReserve( dict, 5 );
    342341
    343     if( single_file_mode )
     342    if( builder->isSingleFile )
    344343    {
    345344        tr_bencDictAddInt( dict, "length", builder->files[0].size );
    346345    }
    347     else /* multiple file mode */
     346    else /* root node is a directory */
    348347    {
    349348        uint32_t  i;
Note: See TracChangeset for help on using the changeset viewer.