mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Merge branch 'fix/use_date_from_apk' into 'master'
Fix --use-date-from-apk flag Closes #947 See merge request fdroid/fdroidserver!1067
This commit is contained in:
		
						commit
						5ec952ab8a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1500,8 +1500,8 @@ def process_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk=Fal
 | 
			
		|||
        # resize existing icons for densities missing in the APK
 | 
			
		||||
        fill_missing_icon_densities(empty_densities, iconfilename, apk, repodir)
 | 
			
		||||
 | 
			
		||||
        if use_date_from_apk and manifest.date_time[1] != 0:
 | 
			
		||||
            default_date_param = datetime(*manifest.date_time)
 | 
			
		||||
        if use_date_from_apk:
 | 
			
		||||
            default_date_param = datetime.fromtimestamp(os.stat(apkfile).st_mtime)
 | 
			
		||||
        else:
 | 
			
		||||
            default_date_param = None
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue