diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 17:09:49 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 17:10:35 -0500 | 
| commit | cff810db4c2e2ba9a776f96ab1748e9b5975286b (patch) | |
| tree | 3545f036b690f5173d43544ca7643e63a08f2bfb | |
| parent | 737ca87de72779af8a1b194a3c64c7450eeaacbd (diff) | |
do incoming-devel/
| -rw-r--r-- | doIncoming.go | 18 | 
1 files changed, 14 insertions, 4 deletions
diff --git a/doIncoming.go b/doIncoming.go index a6a6cbd..f592cad 100644 --- a/doIncoming.go +++ b/doIncoming.go @@ -27,10 +27,9 @@ func moveOutOfIncoming(fullname string) error {  		log.Printf("%s  move incoming oldname %s newname: %s\n", packageName, fullname, newfilename)  		log.Fatal("Failed to create destination directory: %v", err)  	} -	log.Printf("%s  move incoming oldname %s newname: %s\n", packageName, fullname, newfilename) +	// log.Printf("%s  move incoming oldname %s newname: %s\n", packageName, fullname, newfilename)  	if config.Exists(newfilename) { -		log.Info("DEBIAN POLICY: YOU CAN NEVER REBUILD THE SAME FILE. APT WILL NOT REINSTALL IT.") -		log.Info("AUTO REMOVING", fullname) +		log.Info("DEBIAN POLICY: YOU CAN NEVER REBUILD THE SAME FILE. APT WILL NOT REINSTALL IT. AUTO REMOVE: ", fullname)  		return os.Remove(fullname)  	}  	if argv.Force { @@ -53,7 +52,18 @@ func doIncoming(pb *zoopb.Packages) (string, error) {  	}  	for _, filename := range files { -		log.Info("need to move", filename) +		// log.Info("need to move", filename) +		moveOutOfIncoming(filename) +	} + +	globPattern = "/home/mirrors/wit/incoming-devel/*.deb" +	files, err = filepath.Glob(globPattern) +	if err != nil { +		return "glob error", err +	} + +	for _, filename := range files { +		// log.Info("need to move", filename)  		moveOutOfIncoming(filename)  	}  | 
