mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	NoSourceSince Anti-Feature should only be added to index
Before, it was being added to the metadata, so that rewritemeta would output it. fdroid/fdroidserver!529 #508
This commit is contained in:
		
							parent
							
								
									6ca09e1bb2
								
							
						
					
					
						commit
						b03c4a7353
					
				
					 5 changed files with 20 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -993,9 +993,6 @@ def parse_metadata(metadatapath, check_vcs=False, refresh=True):
 | 
			
		|||
 | 
			
		||||
    post_metadata_parse(app)
 | 
			
		||||
 | 
			
		||||
    if app.NoSourceSince:
 | 
			
		||||
        app.AntiFeatures.append('NoSourceSince')
 | 
			
		||||
 | 
			
		||||
    if not app.id:
 | 
			
		||||
        if app.builds:
 | 
			
		||||
            build = app.builds[-1]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1652,6 +1652,9 @@ def apply_info_from_latest_apk(apps, apks):
 | 
			
		|||
                    bestver = apk['versionCode']
 | 
			
		||||
                    bestapk = apk
 | 
			
		||||
 | 
			
		||||
                if app.NoSourceSince:
 | 
			
		||||
                    apk['antiFeatures'].add('NoSourceSince')
 | 
			
		||||
 | 
			
		||||
                if 'added' in apk:
 | 
			
		||||
                    if not app.added or apk['added'] < app.added:
 | 
			
		||||
                        app.added = apk['added']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,11 +28,13 @@ Build:1.4,5
 | 
			
		|||
 | 
			
		||||
Build:1.5,6
 | 
			
		||||
    commit=v1.5
 | 
			
		||||
    gradle=yes
 | 
			
		||||
    sudo=echo 'this is just a test'
 | 
			
		||||
    gradle=yes
 | 
			
		||||
 | 
			
		||||
Archive Policy:4 versions
 | 
			
		||||
Auto Update Mode:Version v%v
 | 
			
		||||
Update Check Mode:Tags
 | 
			
		||||
Current Version:1.5
 | 
			
		||||
Current Version Code:6
 | 
			
		||||
 | 
			
		||||
No Source Since:1.5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -127,6 +127,9 @@
 | 
			
		|||
      }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "antiFeatures": [
 | 
			
		||||
        "NoSourceSince"
 | 
			
		||||
      ],
 | 
			
		||||
      "categories": [
 | 
			
		||||
        "Time"
 | 
			
		||||
      ],
 | 
			
		||||
| 
						 | 
				
			
			@ -180,6 +183,9 @@
 | 
			
		|||
    "com.politedroid": [
 | 
			
		||||
      {
 | 
			
		||||
        "added": 1498176000000,
 | 
			
		||||
        "antiFeatures": [
 | 
			
		||||
          "NoSourceSince"
 | 
			
		||||
        ],
 | 
			
		||||
        "apkName": "com.politedroid_6.apk",
 | 
			
		||||
        "hash": "70c2f776a2bac38a58a7d521f96ee0414c6f0fb1de973c3ca8b10862a009247d",
 | 
			
		||||
        "hashType": "sha256",
 | 
			
		||||
| 
						 | 
				
			
			@ -204,6 +210,9 @@
 | 
			
		|||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "added": 1498176000000,
 | 
			
		||||
        "antiFeatures": [
 | 
			
		||||
          "NoSourceSince"
 | 
			
		||||
        ],
 | 
			
		||||
        "apkName": "com.politedroid_5.apk",
 | 
			
		||||
        "hash": "5bdbfa071cca4b8d05ced41d6b28763595d6e8096cca5bbf0f9253c9a2622e5d",
 | 
			
		||||
        "hashType": "sha256",
 | 
			
		||||
| 
						 | 
				
			
			@ -228,6 +237,9 @@
 | 
			
		|||
      },
 | 
			
		||||
      {
 | 
			
		||||
        "added": 1498176000000,
 | 
			
		||||
        "antiFeatures": [
 | 
			
		||||
          "NoSourceSince"
 | 
			
		||||
        ],
 | 
			
		||||
        "apkName": "com.politedroid_4.apk",
 | 
			
		||||
        "hash": "c809bdff83715fbf919f3840ee09869b038e209378b906e135ee40d3f0e1f075",
 | 
			
		||||
        "hashType": "sha256",
 | 
			
		||||
| 
						 | 
				
			
			@ -266,6 +278,7 @@
 | 
			
		|||
        "added": 1498176000000,
 | 
			
		||||
        "antiFeatures": [
 | 
			
		||||
          "KnownVuln",
 | 
			
		||||
          "NoSourceSince",
 | 
			
		||||
          "NonFreeAssets",
 | 
			
		||||
          "UpstreamNonFree"
 | 
			
		||||
        ],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -237,6 +237,7 @@
 | 
			
		|||
		<tracker>https://github.com/miguelvps/PoliteDroid/issues</tracker>
 | 
			
		||||
		<marketversion>1.5</marketversion>
 | 
			
		||||
		<marketvercode>6</marketvercode>
 | 
			
		||||
		<antifeatures>NoSourceSince</antifeatures>
 | 
			
		||||
		<package>
 | 
			
		||||
			<version>1.5</version>
 | 
			
		||||
			<versioncode>6</versioncode>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue