summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20120104/19ecfd68
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/attachments/20120104/19ecfd68
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20120104/19ecfd68')
-rw-r--r--zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0001.bin47
-rw-r--r--zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0002.bin19
-rw-r--r--zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0003.bin47
-rw-r--r--zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment.bin19
4 files changed, 132 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0001.bin b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0001.bin
new file mode 100644
index 000000000..fc2a7f539
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0001.bin
@@ -0,0 +1,47 @@
+Name: task-obsolete
+Version: 1
+Release: %mkrel 1
+Summary: POC task-obsolete
+Group: Development/Other
+License: GPL
+BuildArch: noarch
+
+Obsoletes: null
+Obsoletes: null-dummy
+
+%description
+Proof of concept to test task-obsolete and conditionnal messages
+with README.*.obsolete.urpmi when obsoleting package.
+
+%prep
+
+%build
+
+
+%install
+install -d -m755 %{buildroot}%{_defaultdocdir}/%{name}
+touch %{buildroot}%{_defaultdocdir}/%{name}/README.null.obsolete.urpmi
+touch %{buildroot}%{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi
+
+
+%triggerin -- null
+cat > %{_defaultdocdir}/%{name}/README.null.obsolete.urpmi <<EOF
+null is installed on this system.
+it is an useless package on end user systems.
+it will be uninstalled.
+EOF
+
+%triggerin -- null-dummy
+cat > %{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi <<EOF
+null-dummy is installed on this system.
+it is an useless package on end user systems.
+it will be uninstalled.
+EOF
+
+%files
+%dir %{_defaultdocdir}/%{name}
+%ghost %{_defaultdocdir}/%{name}/README.null.obsolete.urpmi
+%ghost %{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi
+
+
+
diff --git a/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0002.bin b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0002.bin
new file mode 100644
index 000000000..f6b46fd95
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0002.bin
@@ -0,0 +1,19 @@
+Index: urpm/install.pm
+===================================================================
+--- urpm/install.pm (révision 2572)
++++ urpm/install.pm (copie de travail)
+@@ -109,11 +109,14 @@
+
+ foreach my $file ($pkg->files) {
+ my ($kind) = $file =~ m!/README([^/]*)\.urpmi$! or next;
++ -r $file or next;
+ my $valid;
+ if ($kind eq '') {
+ $valid = 1;
+ } elsif ($kind eq '.install' && !$pkg->flag_installed) {
+ $valid = 1;
++ } elsif ($kind =~ /(.*)\.(deprecated|obsolete)$/) {
++ $valid = 1;
+ } elsif ($kind =~ /(.*)\.(upgrade|update)$/ && $pkg->flag_installed) {
+ if (!$1) {
+ $valid = 1;
diff --git a/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0003.bin b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0003.bin
new file mode 100644
index 000000000..fc2a7f539
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment-0003.bin
@@ -0,0 +1,47 @@
+Name: task-obsolete
+Version: 1
+Release: %mkrel 1
+Summary: POC task-obsolete
+Group: Development/Other
+License: GPL
+BuildArch: noarch
+
+Obsoletes: null
+Obsoletes: null-dummy
+
+%description
+Proof of concept to test task-obsolete and conditionnal messages
+with README.*.obsolete.urpmi when obsoleting package.
+
+%prep
+
+%build
+
+
+%install
+install -d -m755 %{buildroot}%{_defaultdocdir}/%{name}
+touch %{buildroot}%{_defaultdocdir}/%{name}/README.null.obsolete.urpmi
+touch %{buildroot}%{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi
+
+
+%triggerin -- null
+cat > %{_defaultdocdir}/%{name}/README.null.obsolete.urpmi <<EOF
+null is installed on this system.
+it is an useless package on end user systems.
+it will be uninstalled.
+EOF
+
+%triggerin -- null-dummy
+cat > %{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi <<EOF
+null-dummy is installed on this system.
+it is an useless package on end user systems.
+it will be uninstalled.
+EOF
+
+%files
+%dir %{_defaultdocdir}/%{name}
+%ghost %{_defaultdocdir}/%{name}/README.null.obsolete.urpmi
+%ghost %{_defaultdocdir}/%{name}/README.null-dummy.obsolete.urpmi
+
+
+
diff --git a/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment.bin b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment.bin
new file mode 100644
index 000000000..f6b46fd95
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120104/19ecfd68/attachment.bin
@@ -0,0 +1,19 @@
+Index: urpm/install.pm
+===================================================================
+--- urpm/install.pm (révision 2572)
++++ urpm/install.pm (copie de travail)
+@@ -109,11 +109,14 @@
+
+ foreach my $file ($pkg->files) {
+ my ($kind) = $file =~ m!/README([^/]*)\.urpmi$! or next;
++ -r $file or next;
+ my $valid;
+ if ($kind eq '') {
+ $valid = 1;
+ } elsif ($kind eq '.install' && !$pkg->flag_installed) {
+ $valid = 1;
++ } elsif ($kind =~ /(.*)\.(deprecated|obsolete)$/) {
++ $valid = 1;
+ } elsif ($kind =~ /(.*)\.(upgrade|update)$/ && $pkg->flag_installed) {
+ if (!$1) {
+ $valid = 1;