File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed
Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,7 @@ impl CreateDistroboxDialog {
674674 pub async fn extract_create_args ( & self ) -> Result < CreateArgs , Error > {
675675 let imp = self . imp ( ) ;
676676 let image = imp. selected_image . borrow ( ) . clone ( ) ;
677- if image. is_empty ( ) {
677+ if image. is_empty ( ) && imp . clone_src . borrow ( ) . is_none ( ) {
678678 return Err ( Error :: InvalidField (
679679 "image" . into ( ) ,
680680 "No image selected" . into ( ) ,
Original file line number Diff line number Diff line change @@ -916,7 +916,6 @@ impl Distrobox {
916916 ) -> Result < Box < dyn Child + Send > , Error > {
917917 let mut cmd = Self :: create_cmd ( args) ;
918918 cmd. remove_flag_value_arg ( "--image" ) ;
919- cmd. remove_flag_arg ( "--yes" ) ;
920919 cmd. arg ( "--clone" ) . arg ( source_name) ;
921920 self . cmd_spawn ( cmd)
922921 }
Original file line number Diff line number Diff line change @@ -254,7 +254,6 @@ impl RootStore {
254254 this. imp ( ) . downloaded_images_query . set_fetcher ( move || {
255255 let this_clone = this_clone. clone ( ) ;
256256 async move {
257- dbg ! ( "Fetching downloaded images" ) ;
258257 this_clone. fetch_downloaded_images ( ) . await
259258 }
260259 } ) ;
@@ -735,7 +734,6 @@ impl RootStore {
735734 cmd. arg ( "images" ) . arg ( "--format" ) . arg ( "json" ) ;
736735
737736 let output = self . run_to_string ( cmd) . await ?;
738- dbg ! ( & output) ;
739737 // Some versions of podman/docker might return empty string if no images?
740738 if output. trim ( ) . is_empty ( ) {
741739 return Ok ( HashSet :: new ( ) ) ;
You can’t perform that action at this time.
0 commit comments