LCOV - code coverage report
Current view: top level - libpkg - pkg_repo_update.c (source / functions) Hit Total Coverage
Test: cov.info Lines: 2 2 100.0 %
Date: 2015-08-15 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /*-
       2             :  * Copyright (c) 2012-2014 Baptiste Daroussin <bapt@FreeBSD.org>
       3             :  * Copyright (c) 2012 Julien Laffaye <jlaffaye@FreeBSD.org>
       4             :  * Copyright (c) 2014 Vsevolod Stakhov <vsevolod@FreeBSD.org>
       5             :  * All rights reserved.
       6             :  *
       7             :  * Redistribution and use in source and binary forms, with or without
       8             :  * modification, are permitted provided that the following conditions
       9             :  * are met:
      10             :  * 1. Redistributions of source code must retain the above copyright
      11             :  *    notice, this list of conditions and the following disclaimer
      12             :  *    in this position and unchanged.
      13             :  * 2. Redistributions in binary form must reproduce the above copyright
      14             :  *    notice, this list of conditions and the following disclaimer in the
      15             :  *    documentation and/or other materials provided with the distribution.
      16             :  *
      17             :  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
      18             :  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
      19             :  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
      20             :  * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
      21             :  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
      22             :  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
      23             :  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
      24             :  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
      25             :  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
      26             :  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      27             :  */
      28             : 
      29             : #include <sys/stat.h>
      30             : #include <sys/param.h>
      31             : #include <sys/mman.h>
      32             : 
      33             : #define _WITH_GETLINE
      34             : #include <stdio.h>
      35             : #include <stdlib.h>
      36             : #include <string.h>
      37             : #include <unistd.h>
      38             : #include <errno.h>
      39             : #include <limits.h>
      40             : 
      41             : #include <archive.h>
      42             : #include <archive_entry.h>
      43             : 
      44             : #include "pkg.h"
      45             : #include "private/event.h"
      46             : #include "private/utils.h"
      47             : #include "private/pkgdb.h"
      48             : #include "private/pkg.h"
      49             : 
      50             : int
      51           8 : pkg_update(struct pkg_repo *repo, bool force)
      52             : {
      53           8 :         return (repo->ops->update(repo, force));
      54             : }

Generated by: LCOV version 1.10