Changeset 483


Ignore:
Timestamp:
Dec 23, 2014, 5:00:37 PM (11 years ago)
Author:
Yuri Dario
Message:

rpm: fix rebuild code. ticket#99.

Location:
rpm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • rpm/branches/rpm-4.8.1/lib/rpmdb.c

    r112 r483  
    31573157    }
    31583158    dbpath = rootdbpath = rpmGetPath(prefix, tfn, NULL);
    3159     if (!(prefix[0] == '/' && prefix[1] == '\0'))
     3159    if (strcmp(prefix, "/@unixroot/"))
    31603160        dbpath += strlen(prefix) - 1;
    31613161    tfn = _free(tfn);
     
    31693169    }
    31703170    newdbpath = newrootdbpath = rpmGetPath(prefix, tfn, NULL);
    3171     if (!(prefix[0] == '/' && prefix[1] == '\0'))
     3171    if (strcmp(prefix, "/@unixroot/"))
    31723172        newdbpath += strlen(prefix) - 1;
    31733173    tfn = _free(tfn);
  • rpm/branches/rpm-4.8.1/macros.in

    r242 r483  
    159159
    160160#       The location of the rpm database file(s) after "rpm --rebuilddb".
    161 %_dbpath_rebuild        %{_var}/lib/rpm.rebuild
     161%_dbpath_rebuild        %{_dbpath}
    162162
    163163%_keyringpath           %{_dbpath}/pubkeys/
  • rpm/branches/rpm-4.8.1/rpmio/rpmfileutil.c

    r8 r483  
    403403    if (s[2] == ':')
    404404        s++;
     405    // clean '/@unixroot///@unixroot/...'
     406    if (strncmp( s, AT_UNIXROOT "//" AT_UNIXROOT, AT_UNIXROOT_LEN*2) == 0)
     407       s += (AT_UNIXROOT_LEN+2);
    405408    // clean '/@unixroot//@unixroot/...'
    406409    if (strncmp( s, AT_UNIXROOT "/" AT_UNIXROOT, AT_UNIXROOT_LEN*2) == 0)
  • rpm/trunk/macros.in

    r376 r483  
    169169
    170170#       The location of the rpm database file(s) after "rpm --rebuilddb".
    171 %_dbpath_rebuild        %{_var}/lib/rpm.rebuild
     171%_dbpath_rebuild        %{_dbpath}
    172172
    173173%_keyringpath           %{_dbpath}/pubkeys/
  • rpm/trunk/rpmio/rpmfileutil.c

    r375 r483  
    400400    if (s[2] == ':')
    401401        s++;
     402    // clean '/@unixroot///@unixroot/...'
     403    if (strncmp( s, AT_UNIXROOT "//" AT_UNIXROOT, AT_UNIXROOT_LEN*2) == 0)
     404       s += (AT_UNIXROOT_LEN+2);
    402405    // clean '/@unixroot//@unixroot/...'
    403406    if (strncmp( s, AT_UNIXROOT "/" AT_UNIXROOT, AT_UNIXROOT_LEN*2) == 0)
Note: See TracChangeset for help on using the changeset viewer.