Displaying 11 results from an estimated 11 matches for "installed_flag".
2014 Nov 17
1
[PATCH] inspection: deb: Seperate epoch field from version
...c1 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.c
@@ -439,6 +439,7 @@ list_applications_deb (guestfs_h *g, struct inspect_fs *fs)
FILE *fp;
char line[1024];
size_t len;
+ int32_t epoch = 0;
CLEANUP_FREE char *name = NULL, *version = NULL, *release = NULL, *arch = NULL;
int installed_flag = 0;
@@ -482,23 +483,31 @@ list_applications_deb (guestfs_h *g, struct inspect_fs *fs)
else if (STRPREFIX (line, "Version: ")) {
free (version);
free (release);
- char *p = strchr (&line[9], '-');
- if (p) {
- *p = '\0';
- v...
2012 Nov 05
2
[PATCH 0/1] lib: debian support for package arch inspection
This adds package arch inspection for deb-based systems. The patch
returns package arch as given by dpkg, which means that it returns
'amd64' instead of 'x86_64', for example. Whether or not we should
standardize this to match rpm output is up for debate. I see other
places such as guestfs_file_architecture that use the rpm-style arch.
I can understand though where a user of
2017 Feb 23
2
[PATCH 1/3] inspect: add source and summary to internal add_application
...ot;");
+ arch ? arch : "", "", "", "", "", "", "");
return 0;
}
@@ -504,7 +504,7 @@ list_applications_deb (guestfs_h *g, struct inspect_fs *fs)
else if (STREQ (line, "")) {
if (installed_flag && name && version && (epoch >= 0))
add_application (g, apps, name, "", epoch, version, release ? : "",
- arch ? : "", "", "", "", "");
+ arch ?...
2017 Feb 24
3
[PATCH v2 1/3] inspect: add source and summary to internal add_application
...ot;");
+ arch ? arch : "", "", "", "", "", "", "");
return 0;
}
@@ -504,7 +504,7 @@ list_applications_deb (guestfs_h *g, struct inspect_fs *fs)
else if (STREQ (line, "")) {
if (installed_flag && name && version && (epoch >= 0))
add_application (g, apps, name, "", epoch, version, release ? : "",
- arch ? : "", "", "", "", "");
+ arch ?...
2012 Oct 15
1
[PATCH for discussion] lib: update inspect_list_applications to return app_arch
Here's a partially implemented fix for RHBZ#859949. Seeing as this is
my first libguestfs patch, I'd like some other eyeballs on it to make
sure I've not done anything completely crazy.
If the rpm case looks ok, I'll update the deb and windows cases
if/where applicable.
2012 Nov 01
2
[PATCH 0/2] New inspect_list_applications2 API
Here's the new API method and update to virt-inspector. I still need
to implement app_arch for debian and windows (if applicable), for now
they just return empty strings.
2012 Nov 01
4
[PATCH v2 0/3] New inspect_list_applications2 API
Here's the new API method and update to virt-inspector. I still need
to implement app_arch for debian and windows (if applicable), for now
they just return empty strings.
New in v2: incorporated feedback from v1, also added patch #3 which
updates the documentation where it references the deprecated API.
Take it or leave it.
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use
__attribute__((cleanup(...))) to automatically free memory when
pointers go out of the current scope.
In general terms this seems to be a small win although you do have to
use it carefully. For functions where you can completely get rid of
the "exit code paths", it can simplify things. For a good example,
see the
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...ackages",
- MAX_PKG_DB_SIZE);
+ "/var/lib/rpm/Packages", "rpm_Packages",
+ MAX_PKG_DB_SIZE);
if (Packages == NULL)
goto error;
@@ -446,7 +446,7 @@ list_applications_deb (guestfs_h *g, struct inspect_fs *fs)
int installed_flag = 0;
status = guestfs_int_download_to_tmp (g, fs, "/var/lib/dpkg/status", "status",
- MAX_PKG_DB_SIZE);
+ MAX_PKG_DB_SIZE);
if (status == NULL)
return NULL;
@@ -617,8 +617,8 @@ list_applications_pacman (guestfs_h *g, struct...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste.
---
align/scan.c | 35 ++++++++++---------
cat/cat.c | 39 +++++++++++----------
cat/filesystems.c | 69 +++++++++++++++++++-------------------
cat/log.c | 35 ++++++++++---------
cat/ls.c | 61 +++++++++++++++++----------------
df/main.c | 43 ++++++++++++------------
diff/diff.c | 67
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.