Release Engineering

Tasklist

FS#14148 - TARGET_PACKAGES_EXCLUDE

Attached to Project: Release Engineering
Opened by Jud (judfilm) - Thursday, 09 April 2009, 08:37 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Friday, 24 July 2009, 19:43 GMT
Task Type Feature Request
Category AIF
Status Closed
Assigned To Dieter Plaetinck (Dieter_be)
Architecture All
Severity Medium
Priority Normal
Reported Version 2009.02
Due in Version 2010.04.05-testbuild
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

From the mailinglist:
http://www.archlinux.org/pipermail/arch-releng/2009-April/000474.html

Just to get the ball rolling.

#!/bin/bash
# Proof of Concept

# ToDo:
# Work out best place to add into the aif code
# Sanity Checks?

var="coreutils vi vsftpd kernel26 kernel26-firmware gcc gcc-libs file
vi pam man-pages jfsutils perl iptables"

remove="vi man-pages jfsutils iptables"

result=$var

for each_name in $remove; do
result=$(echo ${result//$each_name/})
done

echo $var

echo $remove

echo $result

# End of File

I'd like to work with Dieter to make this ready for inclusion into AIF.
This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
Friday, 24 July 2009, 19:43 GMT
Reason for closing:  Implemented
Comment by Dieter Plaetinck (Dieter_be) - Thursday, 09 April 2009, 19:48 GMT
have a look at lib-pacman.sh, especially the installpkg. look how that function get's called by the procedures and also notice how the procedures first make sure the necessary variables are set (automatic procedure through loading config, interactive procedure asks the user.) implementing this for the interactive procedure is not needed (user picks all packages himself anyway). but for the automatic procedure it would be nice.
Comment by Jud (judfilm) - Monday, 13 April 2009, 08:15 GMT
lib-software.sh - installpkg()

if [ -n "$TARGET_PACKAGES_EXCLUDE" ]; then
for remove_name in $TARGET_PACKAGES_EXCLUDE; do
ALL_PACKAGES=${ALL_PACKAGES//$remove_name/}
done
fi

Haven't allowed for the formatting of $ALL_PACKAGES yet.
Should this go in after line 25 or line 28?
What do you think?
Comment by Dieter Plaetinck (Dieter_be) - Monday, 13 April 2009, 20:27 GMT
Well, explaining how I want it would actually be more complicated then just implementing it, so I did the latter.
See http://github.com/Dieterbe/aif/commit/5ebd3565e58ce30f91bbba9ce5f25871dddcd2e8
Comment by Jud (judfilm) - Tuesday, 14 April 2009, 01:33 GMT
Thanks Dieter, looking forward to testing this
Comment by Dieter Plaetinck (Dieter_be) - Friday, 24 July 2009, 19:43 GMT
okay i tested this and works fine for me.

Loading...