really depends on the packages involved, what is trying to be achieved..
for example, when i update the 003-xfce module, there are some gtk3 deps(eg. adwaita-icon-theme..etc) that i don't want/need..
another approach could be to use --ignore <packages> variable
this kind of script was really only meant to streamline upgrading of a desktop type module...to save rebuilding from scratch each time..
for most software, just using pman should be sufficent..