[Bug 1239416] Re: Alien fails to create deb if directory already exists

Michal Grňo 1239416 at bugs.launchpad.net
Mon Feb 23 18:54:09 UTC 2015


Changing to `mkdir -p` won't help if files were already created.
To fix this issue, insert this line before `mkdir`:
	$this->do("rm -rf $workdir");

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to alien in Ubuntu.
https://bugs.launchpad.net/bugs/1239416

Title:
  Alien fails to create deb if directory already exists

Status in alien package in Ubuntu:
  Confirmed

Bug description:
  1) alien -i any-rpm-file.rpm
  2) ctrl+ c to cancel (for example: oh no! I wanted to use --to-deb instead)
  3) alien -i any-rpm-file.rmp
  4) mkdir: cannot create directory ‘oracle-instantclient12.1-basic-12.1.0.1.0’: File exists

  Files affected:
  /usr/share/perl5/Alien/Package.pm line 257.
  /usr/share/perl5/Alien/Package/Deb.pm line 299

  Solution:

  Replace mkdir with mkdir -p

   -p, --parents
                no error if existing, make parent directories as needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alien/+bug/1239416/+subscriptions



More information about the foundations-bugs mailing list