-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: Download only /usr/share/rpm in check-diff
This improves on the check-diff option by only downloading the /usr/share/rpm directory to do a package diff. This prevents downloading the whole deployment and the necessity to do a cleanup later. upgrade: Add check-only option to test if a new version is ready This option queries the ostree repo to compare the checksums of versions to determine if a new update is available. This allows a sysadmin to check for updates without commiting to deploying the new version. Future iterations could include a package diff instead of a simple true/false.
- Loading branch information
Showing
6 changed files
with
243 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- | ||
* | ||
* Copyright (C) 2014 Anne LoVerso <anne.loverso@students.olin.edu> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published | ||
* by the Free Software Foundation; either version 2 of the licence or (at | ||
* your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General | ||
* Public License along with this library; if not, write to the | ||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, | ||
* Boston, MA 02111-1307, USA. | ||
*/ | ||
|
||
#include <rpm/rpmlib.h> | ||
#include <rpm/rpmlog.h> | ||
|
||
struct RpmRevisionData | ||
{ | ||
struct RpmHeaders *rpmdb; | ||
GFile *root; | ||
char *commit; | ||
}; | ||
|
||
struct RpmHeadersDiff * | ||
rpmhdrs_diff (struct RpmHeaders *l1, | ||
struct RpmHeaders *l2); | ||
|
||
void | ||
rpmhdrs_diff_prnt_diff (GFile *root1, GFile *root2, struct RpmHeadersDiff *diff, | ||
GCancellable *cancellable, | ||
GError **error); | ||
|
||
struct RpmRevisionData * | ||
rpmrev_new (OstreeRepo *repo, GFile *rpmdbdir, const char *rev, | ||
const GPtrArray *patterns, | ||
GCancellable *cancellable, | ||
GError **error); |
Oops, something went wrong.