Re: Replace a symlink to a directory with a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31. 12. 19 11:24, Miro Hrončok wrote:
Hello. I was hit by a infamous "replace a symlink to a directory with a directory" problem in https://bugzilla.redhat.com/show_bug.cgi?id=1787079

   /usr/lib/python3.8/site-packages/notebook/static/components/moment

This was a symbolic link, but now it is a directory. The error is:

Error: Transaction test error:
  file /usr/lib/python3.8/site-packages/notebook/static/components/moment/min/locales.js from install of python3-notebook-6.0.2-2.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch   file /usr/lib/python3.8/site-packages/notebook/static/components/moment/min/moment-with-locales.js from install of python3-notebook-6.0.2-2.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch   file /usr/lib/python3.8/site-packages/notebook/static/components/moment/moment.js from install of python3-notebook-6.0.2-2.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch   file /usr/lib/python3.8/site-packages/notebook/static/components/moment from install of python3-notebook-6.0.2-2.fc32.noarch conflicts with file from package python3-notebook-6.0.2-1.fc32.noarch


When I add:

$ rpm -q --scripts -p python3-notebook-6.0.2-3.fc32.noarch.rpm
pretrans scriptlet (using <lua>):
path = "/usr/lib/python3.8/site-packages/notebook/static/components/moment"
st = posix.stat(path)
if st and st.type == "link" then
   os.remove(path)
end

Code: https://src.fedoraproject.org/rpms/python-notebook/pull-request/17

I still get:

Error: Transaction test error:
  file /usr/lib/python3.8/site-packages/notebook/static/components/moment/min/locales.js from install of python3-notebook-6.0.2-3.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch   file /usr/lib/python3.8/site-packages/notebook/static/components/moment/min/moment-with-locales.js from install of python3-notebook-6.0.2-3.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch   file /usr/lib/python3.8/site-packages/notebook/static/components/moment/moment.js from install of python3-notebook-6.0.2-3.fc32.noarch conflicts with file from package js-moment-2.18.1-6.fc30.noarch


What am I doing wrong?



Note that I have tried to add this workaround instead:

   mv moment moment.bundled
   ln -vfs moment.bundled moment

But that clears the update path from 6.0.2-1, but breaks it from 6.0.2-2.

Error: Transaction test error:
  file /usr/lib/python3.8/site-packages/notebook/static/components/moment from install of python3-notebook-6.0.2-3.fc32.noarch conflicts with file from package python3-notebook-6.0.2-2.fc32.noarch


And I would need to add the other (uglier) scriptlet to replace a directory with a symbolic link :(


Does anybody know what's wrong with this? I am clueless. Thanks.


--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux