Frank Kobzik has posted comments on this change. Change subject: core: Remove Windows ProductKey* from db ......................................................................
Patch Set 3: (2 comments) .................................................... File packaging/dbscripts/upgrade/03_03_0950_extract_product_keys.sh.in Line 42: execute_command "${CMD}" "${DATABASE}" "${SERVERNAME}" "${PORT}" | \ Line 43: tail -n+2 | \ Line 44: sed -e 's/^ *//' -e 's/ *$//' -e 's/ *| */|/g' | \ Line 45: grep -v '|$' | \ Line 46: sed -e $SED_RULES > $TMP_FILE i don't think i follow. the scenario could be 1, mktemp fails - how probable is this? is it really necessary to cross-test this? 2, execute_command block fails - it this case the whole script exits (execute_command is implemented this way). am i right? so i'll just add a trap that cleans the $TMP_FILE. Line 47: Line 48: if [ -s $TMP_FILE ]; then Line 49: cp $TMP_FILE $OSINFO_FILE Line 50: fi Line 47: Line 48: if [ -s $TMP_FILE ]; then Line 49: cp $TMP_FILE $OSINFO_FILE Line 50: fi Line 51: rm $TMP_FILE i'll add a trap. Line 52: Line 53: # cleanup Line 54: for O in $OPTIONS_NAMES; do Line 55: CMD="select fn_db_delete_config_value('$O', 'general');" -- To view, visit http://gerrit.ovirt.org/19743 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I876894e7ba5fcd28ee0d435b4a2561f662140174 Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Frank Kobzik <fkob...@redhat.com> Gerrit-Reviewer: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Frank Kobzik <fkob...@redhat.com> Gerrit-Reviewer: Itamar Heim <ih...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches