[Midnightbsd-cvs] src: lib/libmport: Introduce new functions: mport_version() (public) to

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Sep 7 15:49:51 EDT 2013


Log Message:
-----------
Introduce new functions:

mport_version() (public) to display bundle version and currently running os.

mport_get_osrelease() (private util) to get the os release from sysctl

Packate stubs now include the OS version the package was created for in the meta table as os_release key. This way, we know what OS version the package was built for. Fetching packages currently relies on a static define in the mport tool and this may go dynamic in the future. 

It might be useful to install old packages in newer os versions in some scenarios such as jails.

Also, bump the fetch url to 0.5 for 0.5-CURRENT as we're starting to tinker with the package format.  The idea is to assume packages are for old releases if they don't include the meta[os_release] and allow a new mechanism to upgrade all packages for those built on the current release when we do major updates.

Modified Files:
--------------
    src/lib/libmport:
        db.c (r1.9 -> r1.10)
        (http://cvsweb.midnightbsd.org/src/lib/libmport/db.c?r1=1.9&r2=1.10)
        mport.h (r1.26 -> r1.27)
        (http://cvsweb.midnightbsd.org/src/lib/libmport/mport.h?r1=1.26&r2=1.27)
        mport_private.h (r1.11 -> r1.12)
        (http://cvsweb.midnightbsd.org/src/lib/libmport/mport_private.h?r1=1.11&r2=1.12)
        util.c (r1.35 -> r1.36)
        (http://cvsweb.midnightbsd.org/src/lib/libmport/util.c?r1=1.35&r2=1.36)


More information about the Midnightbsd-cvs mailing list