diff options
author | Dimitri John Ledkov <dimitri.j.ledkov@intel.com> | 2014-10-25 02:38:26 +0100 |
---|---|---|
committer | Dimitri John Ledkov <dimitri.j.ledkov@intel.com> | 2014-10-25 02:38:26 +0100 |
commit | aa1ab11899ef2ff2f2478db10312c4c11d4b7ffc (patch) | |
tree | 8fc0af6c6a2685703918ab7a0bf11d1c8bf5a1a4 /createrepomddeps | |
parent | 3a6ccf24c3e33917bc34cd5fe71bc6c641b3b432 (diff) | |
parent | 23590deedb2bf7d7482e1ec49eb735c64dce9883 (diff) |
merge patched-dgit/sid into dgit/sid
Diffstat (limited to 'createrepomddeps')
-rwxr-xr-x | createrepomddeps | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/createrepomddeps b/createrepomddeps index fad84e5..fe89a57 100755 --- a/createrepomddeps +++ b/createrepomddeps @@ -1,5 +1,25 @@ #!/usr/bin/perl -w +################################################################ +# +# Copyright (c) 1995-2014 SUSE Linux Products GmbH +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 or 3 as +# published by the Free Software Foundation. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program (see the file COPYING); if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# +################################################################ + BEGIN { unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build'); } @@ -359,6 +379,15 @@ sub printasbuildcachefile(@) $deps = deps2string(@{$pkg->{'requires'}}); print "R:$id$deps\n"; + if (@{$pkg->{'conflicts'} || []}) { + $deps = deps2string(@{$pkg->{'conflicts'}}); + print "C:$id$deps\n"; + } + if (@{$pkg->{'obsoletes'} || []}) { + $deps = deps2string(@{$pkg->{'obsoletes'}}); + print "O:$id$deps\n"; + } + my $tag = sprintf("%s-%s-%s %s", $pkg->{'name'}, $pkg->{'ver'}, |