mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-10-04 16:08:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b417fc4391 | ||
|
|
478cdc5272 | ||
|
|
2992dc1978 | ||
|
|
ec31238e1a | ||
|
|
9148ea8a8e | ||
|
|
74c8f86a94 | ||
|
|
a43964b110 | ||
|
|
983b17d68d | ||
|
|
5420a1ea1b | ||
|
|
1c75f53604 | ||
|
|
2890a11c5a | ||
|
|
2401aae76e | ||
|
|
30b46b9027 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.66])
|
AC_PREREQ([2.66])
|
||||||
AC_INIT(swupd-server, 3.2.8, timothy.c.pepper@linux.intel.com)
|
AC_INIT(swupd-server, 3.3.1, tudor.marcu@intel.com)
|
||||||
AM_INIT_AUTOMAKE([foreign -Wall -W subdir-objects])
|
AM_INIT_AUTOMAKE([foreign -Wall -W subdir-objects])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|||||||
+2
-2
@@ -353,7 +353,7 @@ static void iterate_directory(struct manifest *manifest, char *pathprefix,
|
|||||||
populate_file_struct(file, fullname);
|
populate_file_struct(file, fullname);
|
||||||
free(fullname);
|
free(fullname);
|
||||||
|
|
||||||
if (entry->d_type == DT_DIR) {
|
if (file->is_dir) {
|
||||||
iterate_directory(manifest, pathprefix, file->filename, do_hash);
|
iterate_directory(manifest, pathprefix, file->filename, do_hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,7 +418,7 @@ GList *get_sub_manifest_includes(char *component, int version)
|
|||||||
char *included;
|
char *included;
|
||||||
char line[8192];
|
char line[8192];
|
||||||
|
|
||||||
conf = config_output_dir();
|
conf = config_image_base();
|
||||||
if (conf == NULL) {
|
if (conf == NULL) {
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -212,6 +212,25 @@ static int check_build_env(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int check_group_file(void)
|
||||||
|
{
|
||||||
|
int ret = -1;
|
||||||
|
|
||||||
|
// Ensure the os-core group is defined
|
||||||
|
while (1) {
|
||||||
|
char *group = next_group();
|
||||||
|
if (!group) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (strcmp(group, "os-core") == 0) {
|
||||||
|
ret = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct manifest *new_core = NULL;
|
struct manifest *new_core = NULL;
|
||||||
@@ -270,6 +289,11 @@ int main(int argc, char **argv)
|
|||||||
string_or_die(&file_path, "%s/groups.ini", state_dir);
|
string_or_die(&file_path, "%s/groups.ini", state_dir);
|
||||||
read_group_file(file_path);
|
read_group_file(file_path);
|
||||||
free(file_path);
|
free(file_path);
|
||||||
|
ret = check_group_file();
|
||||||
|
if (ret != 0) {
|
||||||
|
printf("os-core bundle is not listed in groups.ini, this is required.\n");
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
read_current_version("LAST_VER");
|
read_current_version("LAST_VER");
|
||||||
printf("Last processed version is %i\n", current_version);
|
printf("Last processed version is %i\n", current_version);
|
||||||
|
|||||||
+1
-1
@@ -97,7 +97,7 @@ void __create_delta(struct file *file, int from_version, char *from_hash)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
xattrs_copy(original, newfile);
|
xattrs_copy(original, testnewfile);
|
||||||
|
|
||||||
/* does xattrs have been correctly copied?*/
|
/* does xattrs have been correctly copied?*/
|
||||||
if (xattrs_compare(original, testnewfile) != 0) {
|
if (xattrs_compare(original, testnewfile) != 0) {
|
||||||
|
|||||||
+1
-1
@@ -252,7 +252,7 @@ static GList *get_deduplicated_fullfile_list(struct manifest *manifest)
|
|||||||
manifest->files = g_list_sort(manifest->files, file_sort_hash);
|
manifest->files = g_list_sort(manifest->files, file_sort_hash);
|
||||||
|
|
||||||
list = g_list_first(manifest->files);
|
list = g_list_first(manifest->files);
|
||||||
while (prev == NULL) {
|
while (prev == NULL && list != NULL) {
|
||||||
tmp = list->data;
|
tmp = list->data;
|
||||||
list = g_list_next(list);
|
list = g_list_next(list);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ int file_sort_version(gconstpointer a, gconstpointer b)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return strcmp(B->filename, A->filename);
|
return strcmp(A->filename, B->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
int file_sort_filename(gconstpointer a, gconstpointer b)
|
int file_sort_filename(gconstpointer a, gconstpointer b)
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ gen_includes_file() {
|
|||||||
local bundle=$1
|
local bundle=$1
|
||||||
local ver=$2
|
local ver=$2
|
||||||
local includes="${@:3}"
|
local includes="${@:3}"
|
||||||
mkdir -p $DIR/www/$ver/noship
|
mkdir -p $DIR/image/$ver/noship
|
||||||
for b in $includes; do
|
for b in $includes; do
|
||||||
cat >> $DIR/www/$ver/noship/"$bundle"-includes << EOF
|
cat >> $DIR/image/$ver/noship/"$bundle"-includes << EOF
|
||||||
$b
|
$b
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user