Skip to content

Commit

Permalink
Add note about why we create dnf destdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmjones committed Feb 16, 2015
1 parent c9eaa92 commit 462e425
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ let rec fedora_download_all_packages pkgs dir =
rpm_unpack tdir dir

and fedora_download_all_packages_with_dnf pkgs dir tdir =
(* dnf doesn't create the download directory. *)
(* dnf doesn't create the download directory, and if you use
* --destdir without an existing directory then it downloads each
* package on top of each other to --destdir as a file. WTF?
*)
mkdir tdir 0o700;

let rpms = pkgs_as_NA_rpms pkgs in
Expand Down

0 comments on commit 462e425

Please sign in to comment.