Changeset 4559


Ignore:
Timestamp:
07/28/08 11:50:19 (5 years ago)
Author:
tick
Message:

opkg: make .opk as the default opkg file extension

Location:
trunk/src/target/opkg/libopkg
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/args.c

    r4491 r4559  
    245245     printf("\tupgrade                  Upgrade all installed packages to latest version\n"); 
    246246     printf("\tinstall <pkg>            Download and install <pkg> (and dependencies)\n"); 
    247      printf("\tinstall <file.ipk>       Install package <file.ipk>\n"); 
     247     printf("\tinstall <file.opk>       Install package <file.opk>\n"); 
    248248     printf("\tconfigure [<pkg>]        Configure unpacked packages\n"); 
    249249     printf("\tremove <pkg|regexp>      Remove package <pkg|packages following regexp>\n"); 
  • trunk/src/target/opkg/libopkg/opkg_defines.h

    r4345 r4559  
    1717#define OPKG_DEFINES_H 
    1818 
    19 #define OPKG_PKG_EXTENSION ".ipk" 
     19#define OPKG_PKG_EXTENSION ".opk" 
     20#define IPKG_PKG_EXTENSION ".ipk" 
    2021#define DPKG_PKG_EXTENSION ".deb" 
    2122 
  • trunk/src/target/opkg/libopkg/opkg_download.c

    r4481 r4559  
    155155 
    156156    /* XXX: BUG: The pkg->filename might be something like 
    157        "../../foo.ipk". While this is correct, and exactly what we 
     157       "../../foo.opk". While this is correct, and exactly what we 
    158158       want to use to construct url above, here we actually need to 
    159159       use just the filename part, without any directory. */ 
     
    203203 
    204204     } else if (strcmp(&url[strlen(url) - 4], OPKG_PKG_EXTENSION) == 0 
     205                || strcmp(&url[strlen(url) - 4], IPKG_PKG_EXTENSION) == 0 
    205206                || strcmp(&url[strlen(url) - 4], DPKG_PKG_EXTENSION) == 0) { 
    206207 
  • trunk/src/target/opkg/libopkg/opkg_install.c

    r4558 r4559  
    522522     * 1) please point the call below to the correct current root destination 
    523523     * 2) we need to resolve how to check the required space for a pending pkg,  
    524      *    my diddling with the .ipk file size below isn't going to cut it. 
     524     *    my diddling with the .opk file size below isn't going to cut it. 
    525525     * 3) return a proper error code instead of 1 
    526526     */ 
  • trunk/src/target/opkg/libopkg/pkg.c

    r4558 r4559  
    10801080 
    10811081        But, someone proposed the idea to make it possible to 
    1082         reconstruct a .ipk from an installed package, (ie. for beaming 
     1082        reconstruct a .opk from an installed package, (ie. for beaming 
    10831083        from one handheld to another). So, maybe we actually want a few 
    10841084        more fields here, (depends, suggests, etc.), so that that would 
  • trunk/src/target/opkg/libopkg/pkg_parse.c

    r4448 r4559  
    370370     
    371371    *raw = lines; 
    372 /* If the ipk has not a Provides line, we insert our false line */  
     372/* If the opk has not a Provides line, we insert our false line */  
    373373    if ( pkg_false_provides==1) 
    374374    { 
Note: See TracChangeset for help on using the changeset viewer.