This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, core110 has been updated
via ca52b1895f2ff316317b3cf71f2bd6f55520ef74 (commit)
via d986a632cb9a9f77eeaf8f39f0baee4e5b668b08 (commit)
via 621dcd8609a26ffe98fcb7fff05202bf5eb41112 (commit)
via 67d99eeda887a625da2fa7dc43c89098478a14bf (commit)
from 32d805980e0a92daeecea46ae138417ab5a4b3df (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ca52b1895f2ff316317b3cf71f2bd6f55520ef74
Merge: 67d99ee d986a63
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Fri Apr 7 17:35:05 2017 +0200
Merge remote-tracking branch 'origin/master' into core110
commit 67d99eeda887a625da2fa7dc43c89098478a14bf
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Fri Apr 7 12:09:51 2017 +0200
attr: update rootfile
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
config/rootfiles/common/attr | 6 ++--
config/rootfiles/core/110/filelists/files | 2 ++
src/pakfire/lib/functions.pl | 47 +++++++++++++++++++------------
3 files changed, 35 insertions(+), 20 deletions(-)
Difference in files:
diff --git a/config/rootfiles/common/attr b/config/rootfiles/common/attr
index 6a594f7..14a9493 100644
--- a/config/rootfiles/common/attr
+++ b/config/rootfiles/common/attr
@@ -28,8 +28,10 @@ usr/lib/libattr.so.1.1.0
#usr/share/man/man1/attr.1
#usr/share/man/man1/getfattr.1
#usr/share/man/man1/setfattr.1
-#usr/share/man/man2/fgetxattr.2
-#usr/share/man/man2/fsetxattr.2
+#usr/share/man/man2/flistxattr.2
+#usr/share/man/man2/fremovexattr.2
+#usr/share/man/man2/llistxattr.2
+#usr/share/man/man2/lremovexattr.2
#usr/share/man/man3/attr_get.3
#usr/share/man/man3/attr_getf.3
#usr/share/man/man3/attr_list.3
diff --git a/config/rootfiles/core/110/filelists/files b/config/rootfiles/core/110/filelists/files
index 4a7d710..e8f9d2d 100644
--- a/config/rootfiles/core/110/filelists/files
+++ b/config/rootfiles/core/110/filelists/files
@@ -3,6 +3,7 @@ etc/issue
etc/httpd/conf/server-tuning.conf
etc/rc.d/init.d/unbound
etc/sysctl.conf
+opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/entropy.cgi
srv/web/ipfire/cgi-bin/hardwaregraphs.cgi
srv/web/ipfire/cgi-bin/index.cgi
@@ -12,6 +13,7 @@ srv/web/ipfire/cgi-bin/system.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
srv/web/ipfire/html/themes/darkdos/include/style.css
srv/web/ipfire/html/themes/ipfire/include/css/style.css
+srv/web/ipfire/html/themes/ipfire-legacy/include/css/style.css
srv/web/ipfire/html/themes/maniac/include/style.css
usr/lib/firewall/ipsec-block
usr/lib/libssp.so.0
diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl
index 11b1e37..c347916 100644
--- a/src/pakfire/lib/functions.pl
+++ b/src/pakfire/lib/functions.pl
@@ -541,7 +541,7 @@ sub dblist {
}
}
-sub resolvedeps {
+sub resolvedeps_one {
my $pak = shift;
getmetafile("$pak");
@@ -553,7 +553,7 @@ sub resolvedeps {
close(FILE);
my $line;
- my (@templine, @deps, @tempdeps, @all);
+ my (@templine, @deps, @all);
foreach $line (@file) {
@templine = split(/\: /,$line);
if ("$templine[0]" eq "Dependencies") {
@@ -568,30 +568,41 @@ sub resolvedeps {
message("PAKFIRE RESV: $pak: Dependency is already installed: $_");
} else {
message("PAKFIRE RESV: $pak: Need to install dependency: $_");
- push(@tempdeps,$_);
push(@all,$_);
}
}
}
- foreach (@tempdeps) {
- if ($_) {
- my @newdeps = resolvedeps("$_");
- foreach(@newdeps) {
- unless (($_ eq " ") || ($_ eq "")) {
- my $return = &isinstalled($_);
- if ($return eq 0) {
- message("PAKFIRE RESV: $pak: Dependency is already installed: $_");
- } else {
- message("PAKFIRE RESV: $pak: Need to install dependency: $_");
- push(@all,$_);
- }
- }
+ return @all;
+}
+
+sub resolvedeps {
+ my $pak = shift;
+ my @all;
+
+ # Resolve all not yet installed dependencies of $pak
+ my @deps = &resolvedeps_one($pak);
+ push(@all, @deps);
+
+ # For each dependency, we check if more dependencies exist
+ while (@deps) {
+ my $dep = pop(@deps);
+
+ my @subdeps = &resolvedeps_one($dep);
+ foreach my $subdep (@subdeps) {
+ # Skip the package we are currently resolving for
+ next if ($pak eq $subdep);
+
+ # If the package is not already to be installed,
+ # we add it to the list (@all) and check if it has
+ # more dependencies on its own.
+ unless (grep {$_ eq $subdep} @all) {
+ push(@deps, $subdep);
+ push(@all, $subdep);
}
}
}
- message("");
- chomp (@all);
+
return @all;
}
hooks/post-receive
--
IPFire 2.x development tree