Alien fails to create deb if directory already exists

Bug #1239416 reported by ndefontenay
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
alien (Ubuntu)
Confirmed
Undecided
Unassigned

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alien (Ubuntu):
status: New → Confirmed
Revision history for this message
Michal Grňo (michal-grno) wrote :

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");

Revision history for this message
Manee Osman (manee.osman) wrote :

@Michal Grňo (michal-grno) fix help me, thank you.
why they don't include it already?

Revision history for this message
hayssam (pnnoob) wrote :

hi i am new on Ubuntu
please can you tell me how to install virtual box .rpm on Ubuntu
tnx so much

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.