On Thursday 21 July 2005 20:03, Patrys :: Patryk Zawadzki wrote: > Dnia 21-07-2005, czw o godzinie 18:46 +0300, Elan Ruusamäe napisał(a): > > so... mysql (or anything that uses %userremove/%groupremove) must depend > > on rpm package? > > > > what about embedding the scripts into %scriptlets, than using the > > external shell script? same goes for %banner i guess. > > > > then can put dependencies on actual programs being used, be it /bin/id > > or /usr/sbin/userdel. > > > > # vpoldek mysql-slave -- -e mysql > > vpoldek: operating on vserver mysql-slave > > There are 1 package to remove: > > R mysql-4.1.12-2.5 > > Proceed? [y/N] > > Running vrpm-preload --erase --root /vservers/mysql-slave... > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found > > error: %postun(mysql-4.1.12-2.5.i686) scriptlet failed, exit status 127 > > vpoldek failed on vserver 'mysql-slave' with errorcode 1 > > Then doing fixes in the scripts would require all the packages to be > rebuilt. Now you only have to rebuild the rpm package. i heard of idea of putting these scripts to 'setup' package.
but then should the setup package have userdel/groupdel dependencies? how would it be solved then for vserver? -- glen _______________________________________________ pld-devel-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
